]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/generalsettingspage.h
Make it configurable whether a browsing through archives should be done. The default...
[dolphin.git] / src / generalsettingspage.h
index f65fb29cff9c6203f0643a4962440fff1c1d9ec1..824cfa9b7ececb811822160fe5e3c00449432dc5 100644 (file)
 #define GENERALSETTINGSPAGE_H
 
 #include <settingspagebase.h>
+
+class DolphinMainWindow;
 class QLineEdit;
-class QRadioButton;
 class QCheckBox;
-class DolphinMainWindow;
 
 /**
  * @brief Page for the 'General' settings of the Dolphin settings dialog.
  *
- * The general settings allow to set the home Url, the default view mode
- * and the split view mode.
- *
- *     @author Peter Penz <peter.penz@gmx.at>
+ * The general settings allow to set the home URL and to configure the
+ * state of the view mode, split mode and the filter bar when starting Dolphin.
  */
 class GeneralSettingsPage : public SettingsPageBase
 {
@@ -40,25 +38,35 @@ class GeneralSettingsPage : public SettingsPageBase
 
 public:
     GeneralSettingsPage(DolphinMainWindow* mainWindow, QWidget* parent);
-
     virtual ~GeneralSettingsPage();
 
-    /** @see SettingsPageBase::applySettings */
+    /** @see SettingsPageBase::applySettings() */
     virtual void applySettings();
 
+    /** @see SettingsPageBase::restoreDefaults() */
+    virtual void restoreDefaults();
+
 private slots:
     void selectHomeUrl();
     void useCurrentLocation();
-    void useDefaulLocation();
+    void useDefaultLocation();
 
 private:
-    DolphinMainWindow *m_mainWindow;
+    void loadSettings();
+
+private:
+    DolphinMainWindow* m_mainWindow;
     QLineEdit* m_homeUrl;
-    QRadioButton* m_iconsView;
-    QRadioButton* m_detailsView;
-    QRadioButton* m_previewsView;
-    QCheckBox* m_startSplit;
-    QCheckBox* m_startEditable;
+
+    QCheckBox* m_splitView;
+    QCheckBox* m_editableUrl;
+    QCheckBox* m_filterBar;
+
+    QCheckBox* m_showDeleteCommand;
+    QCheckBox* m_confirmMoveToTrash;
+    QCheckBox* m_confirmDelete;
+
+    QCheckBox* m_browseThroughArchives;
 };
 
 #endif