From 6420d5f973bdf63375c02ab5308873d42f859f8d Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 23 Mar 2008 15:54:07 +0000 Subject: provide a config module for the settings GUI of the Dolphin views, so that it can be embedded into Konqueror CCMAIL: faure@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=789209 --- src/generalviewsettingspage.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/generalviewsettingspage.h') 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 +#include +#include 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; -- cgit v1.3