X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/642110309ace0ec0da270615464d7d04944d5dcf..d6488887ecf69d7f192b94de8dce34fae0b7eb76:/src/generalviewsettingspage.h diff --git a/src/generalviewsettingspage.h b/src/generalviewsettingspage.h index 8f6f7ada6..5aad4be4f 100644 --- a/src/generalviewsettingspage.h +++ b/src/generalviewsettingspage.h @@ -1,6 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006 by Peter Penz * - * peter.penz@gmx.at * + * Copyright (C) 2006 by Peter Penz * * * * 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 * @@ -23,20 +22,22 @@ #include +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 */ 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