┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/generalviewsettingspage.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-03-23 15:54:07 +0000
committerPeter Penz <[email protected]>2008-03-23 15:54:07 +0000
commit6420d5f973bdf63375c02ab5308873d42f859f8d (patch)
tree76630564c250a704fae8dafc4fea3a95398c3fe7 /src/generalviewsettingspage.h
parentcfb135f24e6b1b3eb1253c8ebf7c8e7307974eea (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.h18
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;