/***************************************************************************
- * 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 *
#ifndef DETAILSVIEWSETTINGSPAGE_H
#define DETAILSVIEWSETTINGSPAGE_H
-#include <kvbox.h>
+#include <viewsettingspagebase.h>
-class DolphinMainWindow;
+class DolphinFontRequester;
class QCheckBox;
-class QFontComboBox;
-class QSpinBox;
-class QComboBox;
class QRadioButton;
/**
* @brief Represents the page from the Dolphin Settings which allows
- * to modify the settings for the details view.
+ * to modify the settings for the details view.
*/
-class DetailsViewSettingsPage : public KVBox
+class DetailsViewSettingsPage : public ViewSettingsPageBase
{
Q_OBJECT
public:
- DetailsViewSettingsPage(DolphinMainWindow* mainWindow, QWidget* parent);
+ DetailsViewSettingsPage(QWidget* parent);
virtual ~DetailsViewSettingsPage();
/**
* The settings are persisted automatically when
* closing Dolphin.
*/
- void applySettings();
+ virtual void applySettings();
+
+ /** Restores the settings to default values. */
+ virtual void restoreDefaults();
+
+private:
+ void loadSettings();
private:
- DolphinMainWindow* m_mainWindow;
- QCheckBox* m_dateBox;
- QCheckBox* m_permissionsBox;
- QCheckBox* m_ownerBox;
- QCheckBox* m_groupBox;
QRadioButton* m_smallIconSize;
QRadioButton* m_mediumIconSize;
QRadioButton* m_largeIconSize;
-
- QFontComboBox* m_fontFamilyBox;
- QSpinBox* m_fontSizeBox;
+ DolphinFontRequester* m_fontRequester;
+ QCheckBox* m_expandableFolders;
};
#endif