-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathprefsdialog.h
83 lines (59 loc) · 1.74 KB
/
prefsdialog.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
/*
Ted, a simple text editor/IDE.
Copyright 2012, Blitz Research Ltd.
See LICENSE.TXT for licensing terms.
*/
#ifndef PREFSDIALOG_H
#define PREFSDIALOG_H
#include "std.h"
namespace Ui {
class PrefsDialog;
}
class Prefs;
class MainWindow;
class ColorSwatch;
class QColorDialog;
class PrefsDialog : public QDialog
{
Q_OBJECT
public:
explicit PrefsDialog( MainWindow *mainwnd, QWidget *parent=0 );
~PrefsDialog();
void readSettings();
void writeSettings();
void openPathSection();
int exec();
public slots:
void onHighlightLineChanged(bool value);
void onHighlightWordChanged(bool value);
void onFontChanged( const QFont &font );
void onFontSizeChanged( int size );
void onTabSizeChanged( int size );
void onSmoothFontsChanged( bool state );
void onColorChanged();
void onChooseColor(ColorSwatch *sender);
void onBrowseForPath();
void onAnalyzerChanged();
void onCheckUpdatesChanged();
void onShowHelpInDockChanged();
void onReplaceDocsStyleChanged();
private slots:
void on_checkBoxAutoBracket_stateChanged(int arg1);
void on_pushButtonOpenSettingsFolder_clicked();
void on_spinBoxTypedCharsForCompletion_valueChanged(int arg1);
void on_checkBoxAddVoidForMethods_clicked();
void on_comboBoxTheme_currentIndexChanged(const QString &arg1);
void on_labelResetColors_linkActivated(const QString &link);
void on_chbLineNumbers_clicked(bool checked);
void on_checkBoxCapitalizeKeywords_clicked(bool checked);
private:
QColorDialog *_chooser;
QList<ColorSwatch*> _colorWidgets;
MainWindow *_mainwnd;
Ui::PrefsDialog *_ui;
Prefs *_prefs;
bool _used;
bool _isEnableThemeSignal;
void setColors();
};
#endif // PREFSDIALOG_H