┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/viewmodes/generalviewsettingspage.h
diff options
context:
space:
mode:
authorDimosthenis Krallis <[email protected]>2023-08-18 07:07:48 +0000
committerMéven Car <[email protected]>2023-08-18 07:07:48 +0000
commit489b56b68bb29e81337e115c490eea4403001b71 (patch)
tree4d88f18b937387cb2b8b025f1bdf7efde12f7c4f /src/settings/viewmodes/generalviewsettingspage.h
parentf413e83a2266db274409dfc01bf157b74eea922a (diff)
Dolphin settings revamp
It includes a move of the settings in the Navigation and Startup sections to the Interface (formerly Behavior) section. It also includes a new tab in the View (formerly View Mode) section, called General where some settings regarding Display style, Browsing and Miscellaneous settings The Interface section has new tabs named Folders & Tabs and Status & Location bars respectively where most of the Startup and Navigation settings moved. The `dolphin/kcms/kcm_dolphinnavigation` kcm is removed.
Diffstat (limited to 'src/settings/viewmodes/generalviewsettingspage.h')
-rw-r--r--src/settings/viewmodes/generalviewsettingspage.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/settings/viewmodes/generalviewsettingspage.h b/src/settings/viewmodes/generalviewsettingspage.h
new file mode 100644
index 000000000..47838b939
--- /dev/null
+++ b/src/settings/viewmodes/generalviewsettingspage.h
@@ -0,0 +1,50 @@
+/*
+ * SPDX-FileCopyrightText: 2006 Peter Penz <[email protected]>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+#ifndef GENERALVIEWSETTINGSPAGE_H
+#define GENERALVIEWSETTINGSPAGE_H
+
+#include "settings/settingspagebase.h"
+#include <qradiobutton.h>
+
+#include <QUrl>
+
+class QCheckBox;
+class QLabel;
+class QRadioButton;
+
+/**
+ * @brief Tab page for the 'View tab' settings of the Dolphin settings dialog.
+ */
+class GeneralViewSettingsPage : public SettingsPageBase
+{
+ Q_OBJECT
+
+public:
+ explicit GeneralViewSettingsPage(const QUrl &url, QWidget *parent);
+ ~GeneralViewSettingsPage() override;
+
+ /** @see SettingsPageBase::applySettings() */
+ void applySettings() override;
+
+ /** @see SettingsPageBase::restoreDefaults() */
+ void restoreDefaults() override;
+
+private:
+ void loadSettings();
+
+private:
+ QUrl m_url;
+ QRadioButton *m_localViewProps;
+ QRadioButton *m_globalViewProps;
+ QCheckBox *m_showToolTips;
+ QLabel *m_configureToolTips;
+ QCheckBox *m_showSelectionToggle;
+ QCheckBox *m_renameInline;
+ QCheckBox *m_openArchivesAsFolder;
+ QCheckBox *m_autoExpandFolders;
+};
+
+#endif