]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/generalsettingspage.h
Use the "new" bug dialog opening bugs.kde.org that will also check for already report...
[dolphin.git] / src / generalsettingspage.h
index 246b150edcd92b19b54fb897e226d7c5c9486aa8..7bcf75c9e3835d11b3b80646733de04e5d4a883d 100644 (file)
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
  ***************************************************************************/
 #ifndef GENERALSETTINGSPAGE_H
 #define GENERALSETTINGSPAGE_H
 
 #include <settingspagebase.h>
+
+class DolphinMainWindow;
 class QLineEdit;
-class QRadioButton;
 class QCheckBox;
 
 /**
  * @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
 {
     Q_OBJECT
 
 public:
-    GeneralSettingsPage(QWidget* parent);
-
+    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:
+    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;
 };
 
 #endif