00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __konq_profiledlg_h__
00021 #define __konq_profiledlg_h__
00022
00023 #include <kdialogbase.h>
00024
00025 #include <tqlistview.h>
00026 #include <tqmap.h>
00027
00028 class KonqViewManager;
00029 class TQListViewItem;
00030 class TQGridLayout;
00031 class TQCheckBox;
00032 class TQLineEdit;
00033 class KPushButton;
00034 class KListView;
00035
00036 typedef TQMap<TQString, TQString> KonqProfileMap;
00037
00038 class KonqProfileItem : public QListViewItem
00039 {
00040 public:
00041 KonqProfileItem( KListView *, const TQString & );
00042 ~KonqProfileItem() {}
00043
00044 TQString m_profileName;
00045 };
00046
00047 class KonqProfileDlg : public KDialogBase
00048 {
00049 Q_OBJECT
00050 public:
00051 KonqProfileDlg( KonqViewManager *manager, const TQString &preselectProfile, TQWidget *parent = 0L );
00052 ~KonqProfileDlg();
00053
00058 static KonqProfileMap readAllProfiles();
00059
00060 protected slots:
00061 virtual void slotUser1();
00062 virtual void slotUser2();
00063 virtual void slotUser3();
00064 void slotTextChanged( const TQString & );
00065 void slotSelectionChanged( TQListViewItem * item );
00066
00067 void slotItemRenamed( TQListViewItem * );
00068
00069 private:
00070 void loadAllProfiles(const TQString & = TQString::null);
00071 KonqViewManager *m_pViewManager;
00072
00073 KonqProfileMap m_mapEntries;
00074
00075 TQLineEdit *m_pProfileNameLineEdit;
00076
00077 TQCheckBox *m_cbSaveURLs;
00078 TQCheckBox *m_cbSaveSize;
00079
00080 KListView *m_pListView;
00081 };
00082
00083 #endif