#define ICONSVIEWSETTINGSPAGE_H
#include <dolphiniconsview.h>
-#include <kvbox.h>
+#include <viewsettingspagebase.h>
-class DolphinMainWindow;
-class KFontRequester;
-class QComboBox;
+class DolphinFontRequester;
class QCheckBox;
+class QComboBox;
class QPushButton;
-class QSlider;
class QSpinBox;
/**
*
* @see DolphinIconsViewSettings
*/
-class IconsViewSettingsPage : public KVBox
+class IconsViewSettingsPage : public ViewSettingsPageBase
{
Q_OBJECT
public:
- IconsViewSettingsPage(DolphinMainWindow* mainWindow, QWidget* parent);
+ IconsViewSettingsPage(QWidget* parent);
virtual ~IconsViewSettingsPage();
/**
* The settings are persisted automatically when
* closing Dolphin.
*/
- void applySettings();
+ virtual void applySettings();
+
+ /** Restores the settings to default values. */
+ virtual void restoreDefaults();
private slots:
void openIconSizeDialog();
+private:
+ void loadSettings();
+
private:
enum
{
GridSpacingBase = 8,
- GridSpacingInc = 24,
+ GridSpacingInc = 12,
LeftToRightBase = 128,
LeftToRightInc = 64,
- TopToBottomBase = 96,
+ TopToBottomBase = 64,
TopToBottomInc = 32
};
- DolphinMainWindow* m_mainWindow;
int m_iconSize;
int m_previewSize;
QPushButton* m_iconSizeButton;
QComboBox* m_textWidthBox;
- KFontRequester* m_fontRequester;
+ DolphinFontRequester* m_fontRequester;
QSpinBox* m_textlinesCountBox;
QComboBox* m_arrangementBox;