PCManFM-Qt
Loading...
Searching...
No Matches
pcmanfm
preferencesdialog.h
1
/*
2
3
Copyright (C) 2013 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
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 along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
21
#ifndef PCMANFM_PREFERENCESDIALOG_H
22
#define PCMANFM_PREFERENCESDIALOG_H
23
24
#include <QDialog>
25
#include "ui_preferences.h"
26
#include <QString>
27
28
namespace
PCManFM {
29
30
class
Settings;
31
32
class
PreferencesDialog
:
public
QDialog {
33
Q_OBJECT
34
35
public
:
36
// activePage is the name of page to select (general, display, advanced...)
37
explicit
PreferencesDialog
(
const
QString& activePage = QString(), QWidget* parent =
nullptr
);
38
virtual
~PreferencesDialog
();
39
40
virtual
void
accept();
41
42
void
selectPage(
const
QString& name);
43
44
protected
Q_SLOTS:
45
void
lockMargins(
bool
lock);
46
void
terminalContextMenu(
const
QPoint& p);
47
48
private
:
49
void
initIconThemes(
Settings
& settings);
50
void
initArchivers(
Settings
& settings);
51
void
initDisplayPage(
Settings
& settings);
52
void
initUiPage(
Settings
& settings);
53
void
initBehaviorPage(
Settings
& settings);
54
void
initThumbnailPage(
Settings
& settings);
55
void
initVolumePage(
Settings
& settings);
56
void
initAdvancedPage(
Settings
& settings);
57
void
initTerminals(
Settings
& settings);
58
59
void
applyTerminal(
Settings
& settings);
60
61
void
applyUiPage(
Settings
& settings);
62
void
applyDisplayPage(
Settings
& settings);
63
void
applyBehaviorPage(
Settings
& settings);
64
void
applyThumbnailPage(
Settings
& settings);
65
void
applyVolumePage(
Settings
& settings);
66
void
applyAdvancedPage(
Settings
& settings);
67
68
void
initFromSettings();
69
void
applySettings();
70
71
void
restartWarning(
bool
warn);
72
73
private
:
74
Ui::PreferencesDialog ui;
75
int
warningCounter_;
76
};
77
78
}
79
80
#endif
// PCMANFM_PREFERENCESDIALOG_H
PCManFM::PreferencesDialog
Definition
preferencesdialog.h:32
PCManFM::Settings
Definition
settings.h:154
Generated on Thu Jan 4 2024 00:00:00 for PCManFM-Qt by
1.10.0