diff options
| author | Peter Penz <[email protected]> | 2008-03-23 15:54:07 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-03-23 15:54:07 +0000 |
| commit | 6420d5f973bdf63375c02ab5308873d42f859f8d (patch) | |
| tree | 76630564c250a704fae8dafc4fea3a95398c3fe7 /src/generalviewsettingspage.h | |
| parent | cfb135f24e6b1b3eb1253c8ebf7c8e7307974eea (diff) | |
provide a config module for the settings GUI of the Dolphin views, so that it can be embedded into Konqueror
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=789209
Diffstat (limited to 'src/generalviewsettingspage.h')
| -rw-r--r-- | src/generalviewsettingspage.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/generalviewsettingspage.h b/src/generalviewsettingspage.h index c84335dc1..91128f4da 100644 --- a/src/generalviewsettingspage.h +++ b/src/generalviewsettingspage.h @@ -20,7 +20,8 @@ #ifndef GENERALVIEWSETTINGSPAGE_H #define GENERALVIEWSETTINGSPAGE_H -#include <kvbox.h> +#include <kurl.h> +#include <viewsettingspagebase.h> class DolphinMainWindow; class QCheckBox; @@ -32,12 +33,17 @@ class QSpinBox; * @brief Represents the page from the Dolphin Settings which allows * to modify general settings for the view modes. */ -class GeneralViewSettingsPage : public KVBox +class GeneralViewSettingsPage : public ViewSettingsPageBase { Q_OBJECT public: - GeneralViewSettingsPage(DolphinMainWindow* mainWindow, QWidget* parent); + /** + * @param url URL of the currently shown directory, which is used + * to read the viewproperties. + * @param parent Parent widget of the settings page. + */ + GeneralViewSettingsPage(const KUrl& url, QWidget* parent); virtual ~GeneralViewSettingsPage(); /** @@ -45,16 +51,16 @@ public: * The settings are persisted automatically when * closing Dolphin. */ - void applySettings(); + virtual void applySettings(); /** Restores the settings to default values. */ - void restoreDefaults(); + virtual void restoreDefaults(); private: void loadSettings(); private: - DolphinMainWindow* m_mainWindow; + KUrl m_url; QRadioButton* m_localProps; QRadioButton* m_globalProps; QSlider* m_maxPreviewSize; |
