]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/general/behaviorsettingspage.h
Add clang-format and format code as in Frameworks
[dolphin.git] / src / settings / general / behaviorsettingspage.h
index 6e491696c8b9298311e82455c975cf544be690c0..ba8ce6384343e90d3f9ec82750f71cc72d71256c 100644 (file)
@@ -1,26 +1,14 @@
-/***************************************************************************
- *   Copyright (C) 2006 by Peter Penz                                      *
- *   peter.penz@gmx.at                                                     *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
- ***************************************************************************/
+/*
+ * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
 #ifndef BEHAVIORSETTINGSPAGE_H
 #define BEHAVIORSETTINGSPAGE_H
 
-#include <settings/settingspagebase.h>
+#include "dolphin_generalsettings.h"
+#include "settings/settingspagebase.h"
+
 #include <QUrl>
 
 class QCheckBox;
@@ -35,29 +23,37 @@ class BehaviorSettingsPage : public SettingsPageBase
     Q_OBJECT
 
 public:
-    BehaviorSettingsPage(const QUrl &url, QWidgetparent);
-    virtual ~BehaviorSettingsPage();
+    BehaviorSettingsPage(const QUrl &url, QWidget *parent);
+    ~BehaviorSettingsPage() override;
 
     /** @see SettingsPageBase::applySettings() */
-    virtual void applySettings() Q_DECL_OVERRIDE;
+    void applySettings() override;
 
     /** @see SettingsPageBase::restoreDefaults() */
-    virtual void restoreDefaults() Q_DECL_OVERRIDE;
+    void restoreDefaults() override;
 
 private:
     void loadSettings();
+    void setSortingChoiceValue(GeneralSettings *settings);
+    void loadSortingChoiceSettings();
 
 private:
     QUrl m_url;
 
-    QRadioButton* m_localViewProps;
-    QRadioButton* m_globalViewProps;
+    QRadioButton *m_localViewProps;
+    QRadioButton *m_globalViewProps;
+
+    QCheckBox *m_showToolTips;
+    QLabel *m_configureToolTips;
+    QCheckBox *m_showSelectionToggle;
+
+    QRadioButton *m_naturalSorting;
+    QRadioButton *m_caseSensitiveSorting;
+    QRadioButton *m_caseInsensitiveSorting;
 
-    QCheckBox* m_showToolTips;
-    QLabel* m_configureToolTips;
-    QCheckBox* m_showSelectionToggle;
-    QCheckBox* m_naturalSorting;
-    QCheckBox* m_renameInline;
+    QCheckBox *m_renameInline;
+    QCheckBox *m_useTabForSplitViewSwitch;
+    QCheckBox *m_closeActiveSplitView;
 };
 
 #endif