File indexing completed on 2024-05-12 17:18:55

0001 /*
0002  * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef VIEWSETTINGSPAGE_H
0007 #define VIEWSETTINGSPAGE_H
0008 
0009 #include "settings/settingspagebase.h"
0010 
0011 class ViewSettingsTab;
0012 class QWidget;
0013 class ContentDisplayTab;
0014 class QTabWidget;
0015 
0016 /**
0017  * @brief Page for the 'View' settings of the Dolphin settings dialog.
0018  *
0019  * The views settings allow to set the properties for the icons mode,
0020  * the details mode and the column mode.
0021  */
0022 class ViewSettingsPage : public SettingsPageBase
0023 {
0024     Q_OBJECT
0025 
0026 public:
0027     explicit ViewSettingsPage(const QUrl &url, QWidget *parent);
0028     ~ViewSettingsPage() override;
0029 
0030     /** @see SettingsPageBase::applySettings() */
0031     void applySettings() override;
0032 
0033     /** @see SettingsPageBase::restoreDefaults() */
0034     void restoreDefaults() override;
0035 
0036 private:
0037     ContentDisplayTab *contentDisplayTab;
0038     QTabWidget *tabWidget;
0039     QList<SettingsPageBase *> m_tabs;
0040 };
0041 
0042 #endif