1 //////////////////////////////////////////////////////////////////////////////
3 // Purpose: STC test Preferences initialization
7 // Copyright: (c) wxGuide
8 // Licence: wxWindows licence
9 //////////////////////////////////////////////////////////////////////////////
14 //----------------------------------------------------------------------------
16 //----------------------------------------------------------------------------
19 //----------------------------------------------------------------------------
21 //----------------------------------------------------------------------------
25 //! wxWidgets/contrib headers
26 #include <wx/stc/stc.h> // styled text control
28 //! application headers
31 //============================================================================
33 //============================================================================
35 //! general style types
36 #define mySTC_TYPE_DEFAULT 0
38 #define mySTC_TYPE_WORD1 1
39 #define mySTC_TYPE_WORD2 2
40 #define mySTC_TYPE_WORD3 3
41 #define mySTC_TYPE_WORD4 4
42 #define mySTC_TYPE_WORD5 5
43 #define mySTC_TYPE_WORD6 6
45 #define mySTC_TYPE_COMMENT 7
46 #define mySTC_TYPE_COMMENT_DOC 8
47 #define mySTC_TYPE_COMMENT_LINE 9
48 #define mySTC_TYPE_COMMENT_SPECIAL 10
50 #define mySTC_TYPE_CHARACTER 11
51 #define mySTC_TYPE_CHARACTER_EOL 12
52 #define mySTC_TYPE_STRING 13
53 #define mySTC_TYPE_STRING_EOL 14
55 #define mySTC_TYPE_DELIMITER 15
57 #define mySTC_TYPE_PUNCTUATION 16
59 #define mySTC_TYPE_OPERATOR 17
61 #define mySTC_TYPE_BRACE 18
63 #define mySTC_TYPE_COMMAND 19
64 #define mySTC_TYPE_IDENTIFIER 20
65 #define mySTC_TYPE_LABEL 21
66 #define mySTC_TYPE_NUMBER 22
67 #define mySTC_TYPE_PARAMETER 23
68 #define mySTC_TYPE_REGEX 24
69 #define mySTC_TYPE_UUID 25
70 #define mySTC_TYPE_VALUE 26
72 #define mySTC_TYPE_PREPROCESSOR 27
73 #define mySTC_TYPE_SCRIPT 28
75 #define mySTC_TYPE_ERROR 29
77 //----------------------------------------------------------------------------
79 #define mySTC_STYLE_BOLD 1
80 #define mySTC_STYLE_ITALIC 2
81 #define mySTC_STYLE_UNDERL 4
82 #define mySTC_STYLE_HIDDEN 8
84 //----------------------------------------------------------------------------
85 //! general folding types
86 #define mySTC_FOLD_COMMENT 1
87 #define mySTC_FOLD_COMPACT 2
88 #define mySTC_FOLD_PREPROC 4
90 #define mySTC_FOLD_HTML 16
91 #define mySTC_FOLD_HTMLPREP 32
93 #define mySTC_FOLD_COMMENTPY 64
94 #define mySTC_FOLD_QUOTESPY 128
96 //----------------------------------------------------------------------------
98 #define mySTC_FLAG_WRAPMODE 16
100 //----------------------------------------------------------------------------
104 // editor functionality prefs
108 // display defaults prefs
109 bool readOnlyInitial
;
110 bool overTypeInitial
;
111 bool wrapModeInitial
;
112 bool displayEOLEnable
;
113 bool indentGuideEnable
;
114 bool lineNumberEnable
;
115 bool longLineOnEnable
;
116 bool whiteSpaceEnable
;
118 extern const CommonInfo g_CommonPrefs
;
120 //----------------------------------------------------------------------------
123 struct LanguageInfo
{
130 } styles
[STYLE_TYPES_COUNT
];
134 extern const LanguageInfo g_LanguagePrefs
[];
135 extern const int g_LanguagePrefsSize
;
137 //----------------------------------------------------------------------------
149 extern const StyleInfo g_StylePrefs
[];
150 extern const int g_StylePrefsSize
;