]> cloud.milkyroute.net Git - dolphin.git/blob - src/settings/general/behaviorsettingspage.h
Merge branch 'release/20.04'
[dolphin.git] / src / settings / general / behaviorsettingspage.h
1 /***************************************************************************
2 * Copyright (C) 2006 by Peter Penz *
3 * peter.penz@gmx.at *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
20 #ifndef BEHAVIORSETTINGSPAGE_H
21 #define BEHAVIORSETTINGSPAGE_H
22
23 #include "dolphin_generalsettings.h"
24 #include "settings/settingspagebase.h"
25
26 #include <QUrl>
27
28 class QCheckBox;
29 class QLabel;
30 class QRadioButton;
31
32 /**
33 * @brief Tab page for the 'Behavior' settings of the Dolphin settings dialog.
34 */
35 class BehaviorSettingsPage : public SettingsPageBase
36 {
37 Q_OBJECT
38
39 public:
40 BehaviorSettingsPage(const QUrl &url, QWidget* parent);
41 ~BehaviorSettingsPage() override;
42
43 /** @see SettingsPageBase::applySettings() */
44 void applySettings() override;
45
46 /** @see SettingsPageBase::restoreDefaults() */
47 void restoreDefaults() override;
48
49 private:
50 void loadSettings();
51 void setSortingChoiceValue(GeneralSettings* settings);
52 void loadSortingChoiceSettings();
53
54 private:
55 QUrl m_url;
56
57 QRadioButton* m_localViewProps;
58 QRadioButton* m_globalViewProps;
59
60 QCheckBox* m_showToolTips;
61 QLabel* m_configureToolTips;
62 QCheckBox* m_showSelectionToggle;
63
64 QRadioButton* m_naturalSorting;
65 QRadioButton* m_caseSensitiveSorting;
66 QRadioButton* m_caseInsensitiveSorting;
67
68 QCheckBox* m_renameInline;
69 QCheckBox* m_useTabForSplitViewSwitch;
70 QCheckBox* m_closeActiveSplitView;
71 };
72
73 #endif