]> git.saurik.com Git - wxWidgets.git/blob - samples/stc/prefs.h
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / samples / stc / prefs.h
1 //////////////////////////////////////////////////////////////////////////////
2 // File: prefs.h
3 // Purpose: STC test Preferences initialization
4 // Maintainer: Wyo
5 // Created: 2003-09-01
6 // Copyright: (c) wxGuide
7 // Licence: wxWindows licence
8 //////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _PREFS_H_
11 #define _PREFS_H_
12
13 //----------------------------------------------------------------------------
14 // informations
15 //----------------------------------------------------------------------------
16
17
18 //----------------------------------------------------------------------------
19 // headers
20 //----------------------------------------------------------------------------
21
22 //! wxWidgets headers
23
24 //! wxWidgets/contrib headers
25 #include "wx/stc/stc.h" // styled text control
26
27 //! application headers
28
29
30 //============================================================================
31 // declarations
32 //============================================================================
33
34 //! general style types
35 #define mySTC_TYPE_DEFAULT 0
36
37 #define mySTC_TYPE_WORD1 1
38 #define mySTC_TYPE_WORD2 2
39 #define mySTC_TYPE_WORD3 3
40 #define mySTC_TYPE_WORD4 4
41 #define mySTC_TYPE_WORD5 5
42 #define mySTC_TYPE_WORD6 6
43
44 #define mySTC_TYPE_COMMENT 7
45 #define mySTC_TYPE_COMMENT_DOC 8
46 #define mySTC_TYPE_COMMENT_LINE 9
47 #define mySTC_TYPE_COMMENT_SPECIAL 10
48
49 #define mySTC_TYPE_CHARACTER 11
50 #define mySTC_TYPE_CHARACTER_EOL 12
51 #define mySTC_TYPE_STRING 13
52 #define mySTC_TYPE_STRING_EOL 14
53
54 #define mySTC_TYPE_DELIMITER 15
55
56 #define mySTC_TYPE_PUNCTUATION 16
57
58 #define mySTC_TYPE_OPERATOR 17
59
60 #define mySTC_TYPE_BRACE 18
61
62 #define mySTC_TYPE_COMMAND 19
63 #define mySTC_TYPE_IDENTIFIER 20
64 #define mySTC_TYPE_LABEL 21
65 #define mySTC_TYPE_NUMBER 22
66 #define mySTC_TYPE_PARAMETER 23
67 #define mySTC_TYPE_REGEX 24
68 #define mySTC_TYPE_UUID 25
69 #define mySTC_TYPE_VALUE 26
70
71 #define mySTC_TYPE_PREPROCESSOR 27
72 #define mySTC_TYPE_SCRIPT 28
73
74 #define mySTC_TYPE_ERROR 29
75
76 //----------------------------------------------------------------------------
77 //! style bits types
78 #define mySTC_STYLE_BOLD 1
79 #define mySTC_STYLE_ITALIC 2
80 #define mySTC_STYLE_UNDERL 4
81 #define mySTC_STYLE_HIDDEN 8
82
83 //----------------------------------------------------------------------------
84 //! general folding types
85 #define mySTC_FOLD_COMMENT 1
86 #define mySTC_FOLD_COMPACT 2
87 #define mySTC_FOLD_PREPROC 4
88
89 #define mySTC_FOLD_HTML 16
90 #define mySTC_FOLD_HTMLPREP 32
91
92 #define mySTC_FOLD_COMMENTPY 64
93 #define mySTC_FOLD_QUOTESPY 128
94
95 //----------------------------------------------------------------------------
96 //! flags
97 #define mySTC_FLAG_WRAPMODE 16
98
99 //----------------------------------------------------------------------------
100 // CommonInfo
101
102 struct CommonInfo {
103 // editor functionality prefs
104 bool syntaxEnable;
105 bool foldEnable;
106 bool indentEnable;
107 // display defaults prefs
108 bool readOnlyInitial;
109 bool overTypeInitial;
110 bool wrapModeInitial;
111 bool displayEOLEnable;
112 bool indentGuideEnable;
113 bool lineNumberEnable;
114 bool longLineOnEnable;
115 bool whiteSpaceEnable;
116 };
117 extern const CommonInfo g_CommonPrefs;
118
119 //----------------------------------------------------------------------------
120 // LanguageInfo
121
122 struct LanguageInfo {
123 const char *name;
124 const char *filepattern;
125 int lexer;
126 struct {
127 int type;
128 const char *words;
129 } styles [STYLE_TYPES_COUNT];
130 int folds;
131 };
132
133 extern const LanguageInfo g_LanguagePrefs[];
134 extern const int g_LanguagePrefsSize;
135
136 //----------------------------------------------------------------------------
137 // StyleInfo
138 struct StyleInfo {
139 const wxChar *name;
140 const wxChar *foreground;
141 const wxChar *background;
142 const wxChar *fontname;
143 int fontsize;
144 int fontstyle;
145 int lettercase;
146 };
147
148 extern const StyleInfo g_StylePrefs[];
149 extern const int g_StylePrefsSize;
150
151 #endif // _PREFS_H_