]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinsettingsdialog.h
There are some extractable strings in subdirs too.
[dolphin.git] / src / dolphinsettingsdialog.h
index 8c9ac3cdb11a8e06edc55d3bd48b12fa9781a9c7..fc17b377403b4712208491f7759bd7ff73d7b4c5 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 DOLPHINSETTINGSDIALOG_H
 #define DOLPHINSETTINGSDIALOG_H
 
-#include <kdialog.h>
-class GeneralSettingsPage;
-class ViewSettingsPage;
-class BookmarksSettingsPage;
+#include <kpagedialog.h>
+
+class DolphinMainWindow;
+class SettingsPageBase;
 
 /**
  * @brief Settings dialog for Dolphin.
  *
- * Contains the pages for general settings, view settings and
- * bookmark settings.
+ * Contains the pages for startup settings, general settings and view settings.
  *
  * @author Peter Penz <peter.penz@gmx.at>
  */
-class DolphinSettingsDialog : public KDialog {
+class DolphinSettingsDialog : public KPageDialog
+{
     Q_OBJECT
 
 public:
-    DolphinSettingsDialog();
+    explicit DolphinSettingsDialog(DolphinMainWindow* mainWindow);
     virtual ~DolphinSettingsDialog();
 
 protected slots:
-    virtual void slotOk();
-    virtual void slotApply();
+    /** @see KDialog::slotButtonClicked() */
+    virtual void slotButtonClicked(int button);
 
-private:
-    GeneralSettingsPage* m_generalSettingsPage;
-    ViewSettingsPage* m_viewSettingsPage;
-    BookmarksSettingsPage* m_bookmarksSettingsPage;
+private slots:
+    /** Enables the Apply button. */
+    void enableApply();
 
+private:
     void applySettings();
+    void restoreDefaults();
+
+private:
+    QList<SettingsPageBase*> m_pages;
 };
 
 #endif