]> cloud.milkyroute.net Git - dolphin.git/blob - src/settings/viewmodes/generalviewsettingspage.h
view: Add setting to trigger user set action with double click
[dolphin.git] / src / settings / viewmodes / generalviewsettingspage.h
1 /*
2 * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 #ifndef GENERALVIEWSETTINGSPAGE_H
7 #define GENERALVIEWSETTINGSPAGE_H
8
9 #include "config-dolphin.h"
10 #include "settings/settingspagebase.h"
11 #include <qradiobutton.h>
12
13 #include <QUrl>
14
15 class QCheckBox;
16 class QComboBox;
17 class QLabel;
18 class QLineEdit;
19 class QRadioButton;
20
21 /**
22 * @brief Tab page for the 'View tab' settings of the Dolphin settings dialog.
23 */
24 class GeneralViewSettingsPage : public SettingsPageBase
25 {
26 Q_OBJECT
27
28 public:
29 explicit GeneralViewSettingsPage(const QUrl &url, QWidget *parent);
30 ~GeneralViewSettingsPage() override;
31
32 /** @see SettingsPageBase::applySettings() */
33 void applySettings() override;
34
35 /** @see SettingsPageBase::restoreDefaults() */
36 void restoreDefaults() override;
37
38 private:
39 void loadSettings();
40 void updateCustomActionVisibility(int doubleClickViewComboBoxCurrentIndex);
41
42 private:
43 QUrl m_url;
44 QRadioButton *m_localViewProps = nullptr;
45 QRadioButton *m_globalViewProps = nullptr;
46 #if HAVE_BALOO
47 QCheckBox *m_showToolTips = nullptr;
48 #endif
49 QCheckBox *m_showSelectionToggle = nullptr;
50 QCheckBox *m_renameInline = nullptr;
51 QCheckBox *m_openArchivesAsFolder = nullptr;
52 QCheckBox *m_autoExpandFolders = nullptr;
53 QCheckBox *m_hideXtrashFiles = nullptr;
54 QComboBox *m_doubleClickViewComboBox = nullptr;
55 QLineEdit *m_doubleClickViewCustomAction = nullptr;
56 QLabel *m_doubleClickViewCustomActionInfo = nullptr;
57 };
58
59 #endif