-
Notifications
You must be signed in to change notification settings - Fork 9
/
defaultlook.h
338 lines (286 loc) · 11.2 KB
/
defaultlook.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
/**********************************************************************
* defaultlook.h
**********************************************************************
* Copyright (C) 2015 MX Authors
*
* Authors: Dolphin Oracle
* MX Linux <http://mxlinux.org>
*
* This file is part of mx-tweak.
*
* mx-tweak 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 3 of the License, or
* (at your option) any later version.
*
* mx-tweak 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 mx-tweak. If not, see <http://www.gnu.org/licenses/>.
**********************************************************************/
#ifndef DEFAULTLOOK_H
#define DEFAULTLOOK_H
#include <QDialog>
#include <QFile>
#include <QHash>
#include <QMessageBox>
namespace Ui {
class defaultlook;
}
namespace IconSize {
enum {Default, Small, Medium, Large, Larger, Largest};
}
namespace PanelIndex { // location combo index - 0=bottom, 1=left, 2=top, 3=right
enum {Bottom, Left, Top, Right};
}
namespace PanelLocation { // location plasma settings - 4=bottom, 3 top, 5 left, 6 right
enum {Top = 3, Bottom, Left, Right};
}
namespace Tab {
enum {Panel, Theme, Compositor, Display, Config, Fluxbox, Plasma, Superkey, Others};
}
namespace ValueSize { // kde value starts from 1 vs. combobox index 1=0,2=1,3=2,4=3,5=4,6=5
enum {Default = 1, Small, Medium, Large, Larger, Largest};
}
class defaultlook : public QDialog
{
Q_OBJECT
public:
explicit defaultlook(QWidget *parent = 0, const QStringList &args = QStringList());
~defaultlook();
static QString getVersion(const QString &name);
QString version;
QString output;
QStringList panelIDs;
QString panel;
QString plasmaPanelId;
QString plasmataskmanagerID;
bool message_flag{};
QHash<QString, QString> theme_info;
QString pluginidsystray;
QString plugintasklist;
QString originalhostname;
QStringList undotheme;
QString currentdisplaymanager;
bool verbose = false;
bool panelflag{};
bool hibernate_flag{};
bool Intel_flag{};
bool radeon_flag{};
bool amdgpuflag{};
bool bluetoothautoenableflag{};
bool bluetoothbatteryflag{};
bool enable_recommendsflag{};
bool vblankflag{};
bool displayflag = false;
bool themetabflag = false;
bool othertabflag = false;
bool displaysetupflag = false;
bool brightnessflag = false;
bool sandboxflag = false;
bool slitflag = false;
bool fluxcaptionflag = false;
bool fluxiconflag = false;
bool plasmaplacementflag{};
bool plasmaworkspacesflag{};
bool plasmasingleclickflag{};
bool plasmaresetflag{};
bool plasmasystrayiconsizeflag{};
bool themeflag = false;
bool validateflag = false;
bool tasklistflag = false;
bool cursor_size_flag = false;
bool screenblankflag = false;
void thunarsplitview(bool state);
void thunarsplitviewhorizontal(bool state);
void thunarsetupsplitview();
void resetthunar();
void thunarsingleclicksetup();
void thunarsetsingleclick(bool state);
void tasklistchange();
bool isXfce = false;
bool isFluxbox = false;
bool isKDE = false;
bool isLightdm = false;
bool isSuperkey = false;
bool liqKernelUpdateFlag = false;
bool debianKernelUpdateFlag = false;
bool plasmadisoverautostartflag = false;
bool graphicssetupflag=true;
QString g1;
QString g2;
QString g3;
QString vblankinitial;
void setup();
void setupuiselections();
void setuppanel();
void setuptheme();
void setupthemechoosers();
void populatethemelists(const QString &value);
static void settheme(const QString &type, const QString &theme, const QString &desktop);
void setupEtc();
void setupFluxbox();
void setupPlasma();
void setupSuperKey();
QString readPlasmaPanelConfig(const QString &Key) const;
QString readTaskmanagerConfig(const QString &Key) const;
void writePlasmaPanelConfig(const QString &key, const QString &value) const;
void writeTaskmanagerConfig(const QString &key, const QString &value) const;
void setupDisplay();
void setupConfigoptions();
void setupComboTheme();
void setupBrightness();
void fliptohorizontal();
void fliptovertical();
void whichpanel();
void message() const;
bool checkXFCE() const;
bool checkFluxbox() const;
void checkSession();
static bool checklightdm();
bool checkPlasma() const;
void CheckComptonRunning();
void setupCompositor();
void CheckAptNotifierRunning() const;
void set_cursor_size();
void backupPanel();
void migratepanel(const QString &date) const;
int validatearchive(const QString &path) const;
static void restoreDefaultPanel();
void restoreBackup();
void top_or_bottom();
void left_or_right();
static void message2();
void savethemeundo();
void themeundo();
QString get_tasklistid();
void get_cursor_size();
void setBrightness();
void setupscale();
void setscale();
void setupbacklight();
void setbacklight();
void setgtkscaling();
void setupresolutions();
void setresolution();
void setrefreshrate(const QString &display, const QString &resolution, const QString &activeprofile) const;
void setupGamma();
void setmissingxfconfvariables(const QString &activeprofile, const QString &resolution);
void fluxboxchangeinitvariable(const QString &initline, const QString &value) const;
void fluxboxchangedock() const;
void changecomputername(QString hostname);
bool validatecomputername(QString hostname);
void changedisplaymanager(QString dm);
private slots:
static void on_buttonCancel_clicked();
static void on_buttonConfigureXfwm_clicked();
static void on_buttonHelp_clicked();
static void on_pushButtonDocklikeSetttings_clicked();
static void on_pushButtontasklist_clicked();
void on_ApplyFluxboxResets_clicked();
void on_ButtonApplyEtc_clicked();
void on_ButtonApplyMiscDefualts_clicked();
void on_ButtonApplyPlasma_clicked();
void on_buttonAbout_clicked();
void on_buttonApplyDisplayScaling_clicked();
void on_buttonApply_clicked();
void on_buttonCompositorApply_clicked();
void on_buttonConfigureCompton_clicked();
static void on_buttonEditComptonConf_clicked();
void on_buttonGTKscaling_clicked();
void on_buttonSaveBrightness_clicked();
void on_buttonThemeApply_clicked();
void on_buttonThemeUndo_clicked();
void on_buttonapplyresolution_clicked();
void on_checkBoxCSD_clicked();
void on_checkBoxDesktopZoom_clicked();
void on_checkBoxHibernate_clicked();
void on_checkBoxLightdmReset_clicked();
void on_checkBoxMenuMigrate_clicked();
void on_checkBoxMountInternalDrivesNonRoot_clicked();
void on_checkBoxPlasmaShowAllWorkspaces_clicked();
void on_checkBoxPlasmaSingleClick_clicked();
void on_checkBoxSandbox_clicked();
void on_checkBoxShowAllWorkspaces_clicked();
void on_checkBoxSingleClick_clicked();
void on_checkBoxThunarCAReset_clicked();
void on_checkBoxThunarSingleClick_clicked();
void on_checkHorz_clicked();
void on_checkVert_clicked();
void on_checkboxAMDtearfree_clicked();
void on_checkboxIntelDriver_clicked();
void on_checkboxNoEllipse_clicked();
void on_checkboxRadeontearfree_clicked();
void on_checkboxfluxSlitautohide_clicked();
void on_checkboxfluxresetdock_clicked();
void on_checkboxfluxreseteverything_clicked();
void on_checkboxfluxresetmenu_clicked();
void on_checkboxfluxtoolbarautohide_clicked();
void on_checkboxplasmaresetdock_clicked();
void on_comboBoxCompositor_currentIndexChanged(const QString &arg1);
void on_comboBoxDisplay_currentIndexChanged(int index);
void on_comboBoxPlasmaSystrayIcons_currentIndexChanged(int index);
void on_comboBoxfluxIcons_currentIndexChanged(int index);
void on_comboBoxfluxcaptions_currentIndexChanged(int index);
void on_comboBoxvblank_activated(const QString &arg1);
void on_comboPlasmaPanelLocation_currentIndexChanged(int index);
void on_comboTheme_activated(const QString &arg1);
void on_comboboxHorzPostition_currentIndexChanged(const QString &arg1);
void on_comboboxVertpostition_currentIndexChanged(const QString &arg1);
void on_combofluxslitlocation_currentIndexChanged(int index);
void on_combofluxtoolbarlocatoin_currentIndexChanged(int index);
void on_horizontalSliderBrightness_valueChanged(int value);
void on_horizsliderhardwarebacklight_actionTriggered(int action);
void on_listWidgetTheme_currentTextChanged(const QString ¤tText);
void on_listWidgetWMtheme_currentTextChanged(const QString ¤tText) const;
void on_listWidgeticons_currentTextChanged(const QString ¤tText) const;
void on_pushButtonPreview_clicked();
void on_pushButtonRemoveUserThemeSet_clicked();
void on_pushButtonSettingsToThemeSet_clicked();
void on_radioBackupPanel_clicked();
void on_radioDefaultPanel_clicked();
void on_radioRestoreBackup_clicked();
void on_radioSudoRoot_clicked();
void on_radioSudoUser_clicked();
void on_spinBoxFluxToolbarHeight_valueChanged(int arg1);
void on_spinBoxFluxToolbarWidth_valueChanged(int arg1);
void on_tabWidget_currentChanged(int index);
void on_toolButtonXFCEAppearance_clicked();
void on_toolButtonXFCEWMsettings_clicked();
void on_toolButtonXFCEpanelSettings_clicked();
void saveBrightness();
void on_checkBoxFileDialogActionButtonsPosition_clicked();
void on_checkBoxbluetoothAutoEnable_clicked();
void on_checkBoxFluxShowToolbar_clicked();
void on_buttonManageTint2_clicked();
void on_lineEditBackupName_returnPressed();
void on_checkBoxInstallRecommends_clicked();
void on_checkBoxThunarSplitView_clicked();
void on_checkBoxsplitviewhorizontal_clicked();
void on_checkBoxThunarCAReset_2_clicked();
void on_checkBoxThunarSplitView_2_clicked();
void on_checkBoxsplitviewhorizontal_2_clicked();
void on_checkBoxThunarSingleClick_2_clicked();
void on_radioButtonTasklist_clicked();
void on_comboBoxTasklistPlugin_currentIndexChanged(int);
void on_radioButtonSetPanelPluginScales_clicked();
void on_checkBoxDisableFluxboxMenuGeneration_clicked();
void on_listWidgetCursorThemes_currentTextChanged(const QString ¤tText);
void on_spinBoxScreenBlankingTimeout_valueChanged(int arg1);
void on_toolButtonSuperFileBrowser_clicked();
void on_pushButtonSuperKeyApply_clicked();
void on_lineEditSuperCommand_textChanged(const QString &arg1);
void on_checkBoxLiqKernelUpdates_clicked();
void on_checkBoxDebianKernelUpdates_clicked();
void on_spinBoxPointerSize_valueChanged(int arg1);
void on_checkBoxPlasmaDiscoverUpdater_clicked();
void on_checkBoxComputerName_clicked();
void on_checkBoxBluetoothBattery_clicked();
void on_checkBoxDisplayManager_clicked();
private:
Ui::defaultlook *ui;
};
#endif // DEFAULTLOOK_H