]> cloud.milkyroute.net Git - dolphin.git/blob - src/settings/interface/confirmationssettingspage.h
SVN_SILENT made messages (.desktop file) - always resolve ours
[dolphin.git] / src / settings / interface / confirmationssettingspage.h
1 /*
2 * SPDX-FileCopyrightText: 2012 Peter Penz <peter.penz19@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 #ifndef CONFIRMATIONSSETTINGSPAGE_H
7 #define CONFIRMATIONSSETTINGSPAGE_H
8
9 #include "config-dolphin.h"
10 #include "settings/settingspagebase.h"
11
12 class QCheckBox;
13 class QComboBox;
14
15 /**
16 * @brief Page for the enabling or disabling confirmation dialogs.
17 */
18 class ConfirmationsSettingsPage : public SettingsPageBase
19 {
20 Q_OBJECT
21
22 public:
23 explicit ConfirmationsSettingsPage(QWidget *parent);
24 ~ConfirmationsSettingsPage() override;
25
26 /** @see SettingsPageBase::applySettings() */
27 void applySettings() override;
28
29 /** @see SettingsPageBase::restoreDefaults() */
30 void restoreDefaults() override;
31
32 private:
33 void loadSettings();
34
35 private:
36 QCheckBox *m_confirmMoveToTrash;
37 QCheckBox *m_confirmEmptyTrash;
38 QCheckBox *m_confirmDelete;
39
40 #if HAVE_TERMINAL
41 QCheckBox *m_confirmClosingTerminalRunningProgram;
42 #endif
43
44 QCheckBox *m_confirmClosingMultipleTabs;
45 QComboBox *m_confirmScriptExecution;
46 QCheckBox *m_confirmOpenManyFolders;
47 QCheckBox *m_confirmOpenManyTerminals;
48 QCheckBox *m_confirmRisksOfActingAsAdmin;
49 };
50
51 #endif