* 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 VIEWSETTINGSPAGE_H
#define VIEWSETTINGSPAGE_H
-#include <qwidget.h>
+#include <QtGui/QWidget>
#include <settingspagebase.h>
-class IconsViewSettingsPage;
-class DetailsViewSettingsPage;
+class ViewSettingsPageBase;
+class DolphinMainWindow;
/**
* @brief Page for the 'View' settings of the Dolphin settings dialog.
*
* The views settings allow to set the properties for the icons mode,
- * the details mode and the previews mode.
- *
- * @author Peter Penz <peter.penz@gmx.at>
+ * the details mode and the column mode.
*/
class ViewSettingsPage : public SettingsPageBase
{
Q_OBJECT
public:
- ViewSettingsPage(QWidget* parent);
-
+ ViewSettingsPage(DolphinMainWindow* mainWindow, QWidget* parent);
virtual ~ViewSettingsPage();
- /** @see SettingsPageBase::applySettings */
+ /** @see SettingsPageBase::applySettings() */
virtual void applySettings();
+ /** @see SettingsPageBase::restoreDefaults() */
+ virtual void restoreDefaults();
+
private:
- IconsViewSettingsPage* m_iconsPage;
- DetailsViewSettingsPage* m_detailsPage;
+ QList<ViewSettingsPageBase*> m_pages;
};
#endif