add more spacing
[personal-kdebase.git] / apps / konqueror / src / konqprofiledlg.h
blob4522060a7f5395b9fc81853125cb86aa8a845594
1 /* This file is part of the KDE project
2 Copyright (C) 1999 Simon Hausmann <hausmann@kde.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __konq_profiledlg_h__
21 #define __konq_profiledlg_h__
23 #include <kdialog.h>
25 #include <QtCore/QMap>
27 class KonqViewManager;
28 class QListWidgetItem;
30 typedef QMap<QString, QString> KonqProfileMap;
32 class KonqProfileDlg : public KDialog
34 Q_OBJECT
35 public:
36 KonqProfileDlg( KonqViewManager *manager, const QString &preselectProfile, QWidget *parent = 0L );
37 ~KonqProfileDlg();
39 /**
40 * Find, read and return all available profiles
41 * @return a map with < name, full path >
43 static KonqProfileMap readAllProfiles();
45 class KonqProfileItem;
47 protected Q_SLOTS:
48 void slotRenameProfile();
49 void slotDeleteProfile();
50 void slotSave();
51 void slotTextChanged( const QString & );
52 void slotSelectionChanged();
54 void slotItemRenamed( QListWidgetItem * );
56 private:
57 class KonqProfileDlgPrivate;
58 KonqProfileDlgPrivate * const d;
59 void loadAllProfiles(const QString & = QString());
62 #endif