]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/generalviewsettingspage.h
Hide the "Sort by Rating" and "Sort by Tags" menu entries for KDE 4.0, as currently...
[dolphin.git] / src / generalviewsettingspage.h
index 8f6f7ada61787d426f09b8ad2fd506aedec22167..5aad4be4fc1146b5ecd8a091f1d03a14bbd40a8b 100644 (file)
@@ -1,6 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2006 by Peter Penz                                      *
- *   peter.penz@gmx.at                                                     *
+ *   Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at>                  *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
 
 #include <kvbox.h>
 
+class DolphinMainWindow;
+class QCheckBox;
 class QRadioButton;
+class QSlider;
+class QSpinBox;
 
 /**
  * @brief Represents the page from the Dolphin Settings which allows
  * to modify general settings for the view modes.
- *
- *  @author Peter Penz <peter.penz@gmx.at>
  */
 class GeneralViewSettingsPage : public KVBox
 {
     Q_OBJECT
 
 public:
-    GeneralViewSettingsPage(QWidget* parent);
+    GeneralViewSettingsPage(DolphinMainWindow* mainWindow, QWidget* parent);
     virtual ~GeneralViewSettingsPage();
 
     /**
@@ -46,9 +47,19 @@ public:
      */
     void applySettings();
 
+    /** Restores the settings to default values. */
+    void restoreDefaults();
+
+private:
+    void loadSettings();
+
 private:
+    DolphinMainWindow* m_mainWindow;
     QRadioButton* m_localProps;
     QRadioButton* m_globalProps;
+    QSlider* m_maxPreviewSize;
+    QSpinBox* m_spinBox;
+    QCheckBox* m_useFileThumbnails;
 };
 
 #endif