]> cloud.milkyroute.net Git - dolphin.git/blob - src/settings/interface/folderstabssettingspage.h
Clazy fix
[dolphin.git] / src / settings / interface / folderstabssettingspage.h
1 /*
2 * SPDX-FileCopyrightText: 2008 Peter Penz <peter.penz19@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 #ifndef FOLDERSTABSSETTINGSPAGE_H
7 #define FOLDERSTABSSETTINGSPAGE_H
8
9 #include "dolphin_generalsettings.h"
10 #include "settings/settingspagebase.h"
11
12 #include <QUrl>
13 #include <qobject.h>
14
15 class QCheckBox;
16 class QLineEdit;
17 class QLabel;
18 class QRadioButton;
19
20 /**
21 * @brief Tab page for the 'Behavior' settings of the Dolphin settings dialog.
22 */
23 class FoldersTabsSettingsPage : public SettingsPageBase
24 {
25 Q_OBJECT
26
27 public:
28 FoldersTabsSettingsPage(QWidget *parent);
29 ~FoldersTabsSettingsPage() override;
30
31 /** @see SettingsPageBase::applySettings() */
32 void applySettings() override;
33
34 /** @see SettingsPageBase::restoreDefaults() */
35 void restoreDefaults() override;
36
37 public:
38 QWidget *m_homeUrlBoxLayoutContainer;
39 QWidget *m_buttonBoxLayoutContainer;
40 QRadioButton *m_homeUrlRadioButton;
41
42 private Q_SLOTS:
43 void slotSettingsChanged();
44 void updateInitialViewOptions();
45 void selectHomeUrl();
46 void useCurrentLocation();
47 void useDefaultLocation();
48
49 private:
50 void loadSettings();
51 void showSetDefaultDirectoryError();
52
53 private:
54 QUrl m_url;
55 QLineEdit *m_homeUrl;
56 QRadioButton *m_rememberOpenedTabsRadioButton;
57
58 QRadioButton *m_openNewTabAfterLastTab;
59 QRadioButton *m_openNewTabAfterCurrentTab;
60
61 QCheckBox *m_splitView;
62 QCheckBox *m_filterBar;
63 QCheckBox *m_showFullPathInTitlebar;
64 QCheckBox *m_openExternallyCalledFolderInNewTab;
65 QCheckBox *m_useTabForSplitViewSwitch;
66 QCheckBox *m_closeActiveSplitView;
67 };
68
69 #endif