diff options
| author | Dimosthenis Krallis <[email protected]> | 2023-08-18 07:07:48 +0000 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2023-08-18 07:07:48 +0000 |
| commit | 489b56b68bb29e81337e115c490eea4403001b71 (patch) | |
| tree | 4d88f18b937387cb2b8b025f1bdf7efde12f7c4f /src/settings/interface/folderstabssettingspage.h | |
| parent | f413e83a2266db274409dfc01bf157b74eea922a (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/interface/folderstabssettingspage.h')
| -rw-r--r-- | src/settings/interface/folderstabssettingspage.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/settings/interface/folderstabssettingspage.h b/src/settings/interface/folderstabssettingspage.h new file mode 100644 index 000000000..89e5c0982 --- /dev/null +++ b/src/settings/interface/folderstabssettingspage.h @@ -0,0 +1,69 @@ +/* + * SPDX-FileCopyrightText: 2008 Peter Penz <[email protected]> + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ +#ifndef FOLDERSTABSSETTINGSPAGE_H +#define FOLDERSTABSSETTINGSPAGE_H + +#include "dolphin_generalsettings.h" +#include "settings/settingspagebase.h" + +#include <QUrl> +#include <qobject.h> + +class QCheckBox; +class QLineEdit; +class QLabel; +class QRadioButton; + +/** + * @brief Tab page for the 'Behavior' settings of the Dolphin settings dialog. + */ +class FoldersTabsSettingsPage : public SettingsPageBase +{ + Q_OBJECT + +public: + FoldersTabsSettingsPage(QWidget *parent); + ~FoldersTabsSettingsPage() override; + + /** @see SettingsPageBase::applySettings() */ + void applySettings() override; + + /** @see SettingsPageBase::restoreDefaults() */ + void restoreDefaults() override; + +public: + QWidget *m_homeUrlBoxLayoutContainer; + QWidget *m_buttonBoxLayoutContainer; + QRadioButton *m_homeUrlRadioButton; + +private Q_SLOTS: + void slotSettingsChanged(); + void updateInitialViewOptions(); + void selectHomeUrl(); + void useCurrentLocation(); + void useDefaultLocation(); + +private: + void loadSettings(); + void showSetDefaultDirectoryError(); + +private: + QUrl m_url; + QLineEdit *m_homeUrl; + QRadioButton *m_rememberOpenedTabsRadioButton; + + QRadioButton *m_openNewTabAfterLastTab; + QRadioButton *m_openNewTabAfterCurrentTab; + + QCheckBox *m_splitView; + QCheckBox *m_filterBar; + QCheckBox *m_showFullPathInTitlebar; + QCheckBox *m_openExternallyCalledFolderInNewTab; + QCheckBox *m_useTabForSplitViewSwitch; + QCheckBox *m_closeActiveSplitView; +}; + +#endif |
