tdebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

konq_profiledlg.h 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /* This file is part of the KDE project
  2. Copyright (C) 1999 Simon Hausmann <hausmann@kde.org>
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14. */
  15. #ifndef __konq_profiledlg_h__
  16. #define __konq_profiledlg_h__
  17. #include <kdialogbase.h>
  18. #include <tqlistview.h>
  19. #include <tqmap.h>
  20. class KonqViewManager;
  21. class TQListViewItem;
  22. class TQGridLayout;
  23. class TQCheckBox;
  24. class TQLineEdit;
  25. class KPushButton;
  26. class TDEListView;
  27. typedef TQMap<TQString, TQString> KonqProfileMap;
  28. class KonqProfileItem : public TQListViewItem
  29. {
  30. public:
  31. KonqProfileItem( TDEListView *, const TQString & );
  32. ~KonqProfileItem() {}
  33. TQString m_profileName;
  34. };
  35. class KonqProfileDlg : public KDialogBase
  36. {
  37. Q_OBJECT
  38. public:
  39. KonqProfileDlg( KonqViewManager *manager, const TQString &preselectProfile, TQWidget *parent = 0L );
  40. ~KonqProfileDlg();
  41. /**
  42. * Find, read and return all available profiles
  43. * @return a map with < name, full path >
  44. */
  45. static KonqProfileMap readAllProfiles();
  46. protected slots:
  47. virtual void slotUser1(); // User1 is "Rename Profile" button
  48. virtual void slotUser2(); // User2 is "Delete Profile" button
  49. virtual void slotUser3(); // User3 is Save button
  50. void slotTextChanged( const TQString & );
  51. void slotSelectionChanged( TQListViewItem * item );
  52. void slotItemRenamed( TQListViewItem * );
  53. private:
  54. void loadAllProfiles(const TQString & = TQString::null);
  55. KonqViewManager *m_pViewManager;
  56. KonqProfileMap m_mapEntries;
  57. TQLineEdit *m_pProfileNameLineEdit;
  58. TQCheckBox *m_cbSaveURLs;
  59. TQCheckBox *m_cbSaveSize;
  60. TDEListView *m_pListView;
  61. };
  62. #endif