/***************************************************************************
- * 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 *
#include <kvbox.h>
+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 <peter.penz@gmx.at>
*/
class GeneralViewSettingsPage : public KVBox
{
Q_OBJECT
public:
- GeneralViewSettingsPage(QWidget* parent);
+ GeneralViewSettingsPage(DolphinMainWindow* mainWindow, QWidget* parent);
virtual ~GeneralViewSettingsPage();
/**
*/
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