-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheditorsettings.h
62 lines (55 loc) · 1.94 KB
/
editorsettings.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
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QSettings>
// hmm may be settings isn't the best name for this sucker
class QSettings;
class EditorSettings {
public:
EditorSettings();
void load();
void save();
bool displayLineNumbers() { return linenumbers; };
void setLineNumbers(bool b) { linenumbers = b; };
bool displayWhitespace() { return whitespace; };
void setWhitespace( bool b) { whitespace = b; };
bool displayWrapText() { return wraptext ; };
void setWrapText(bool b) { wraptext = b; };
bool displayCodeFolding() { return folding;};
void setCodeFolding(bool b) { folding = b ;};
bool displayAutoComplete() { return autocomplete; };
void setAutoComplete(bool b){ autocomplete = b;};
int autoCompleteThreshold() { return autocompletethresh; };
void setAutoCompleteThreshold(int i) { autocompletethresh = i; };
bool displayBraceMatch() { return bracematch; };
void setBraceMatch(bool b) { bracematch = b; };
bool highlightCurrentLine() { return highlightcurrent; };
void setHighlightCurrentLine(bool b) { highlightcurrent = b; };
bool autoIndent() { return autoindent; };
void setAutoIndent(bool b) { autoindent = b; };
bool displayEdge() { return edgeindication; };
void setDisplayEdge(bool b) { edgeindication = b; };
int edgeColumn() { return edgecol; };
void setEdgeColumn(int i) { edgecol = i; };
QString eolMode() { return eolmode; };
void setEolMode(const QString s) { eolmode = s; };
bool indentUseTabs() { return indenttabs; };
void setIndentUseTabs(bool b) { indenttabs = b; };
int indentWidth() { return indentwidth; };
void setIndentWidth(int i) { indentwidth = i; };
private:
bool linenumbers;
bool whitespace;
bool wraptext;
bool folding;
bool autocomplete;
int autocompletethresh;
bool bracematch;
bool highlightcurrent;
bool autoindent;
bool edgeindication;
int edgecol;
QString eolmode;
bool indenttabs;
int indentwidth;
};
#endif