1 //////////////////////////////////////////////////////////////////////////////
3 // Purpose: STC test Preferences initialization
6 // Copyright: (c) wxGuide
7 // Licence: wxWindows licence
8 //////////////////////////////////////////////////////////////////////////////
13 //----------------------------------------------------------------------------
15 //----------------------------------------------------------------------------
18 //----------------------------------------------------------------------------
20 //----------------------------------------------------------------------------
24 //! wxWidgets/contrib headers
25 #include "wx/stc/stc.h" // styled text control
27 //! application headers
30 //============================================================================
32 //============================================================================
34 //! general style types
35 #define mySTC_TYPE_DEFAULT 0
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
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
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
54 #define mySTC_TYPE_DELIMITER 15
56 #define mySTC_TYPE_PUNCTUATION 16
58 #define mySTC_TYPE_OPERATOR 17
60 #define mySTC_TYPE_BRACE 18
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
71 #define mySTC_TYPE_PREPROCESSOR 27
72 #define mySTC_TYPE_SCRIPT 28
74 #define mySTC_TYPE_ERROR 29
76 //----------------------------------------------------------------------------
78 #define mySTC_STYLE_BOLD 1
79 #define mySTC_STYLE_ITALIC 2
80 #define mySTC_STYLE_UNDERL 4
81 #define mySTC_STYLE_HIDDEN 8
83 //----------------------------------------------------------------------------
84 //! general folding types
85 #define mySTC_FOLD_COMMENT 1
86 #define mySTC_FOLD_COMPACT 2
87 #define mySTC_FOLD_PREPROC 4
89 #define mySTC_FOLD_HTML 16
90 #define mySTC_FOLD_HTMLPREP 32
92 #define mySTC_FOLD_COMMENTPY 64
93 #define mySTC_FOLD_QUOTESPY 128
95 //----------------------------------------------------------------------------
97 #define mySTC_FLAG_WRAPMODE 16
99 //----------------------------------------------------------------------------
103 // editor functionality prefs
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
;
117 extern const CommonInfo g_CommonPrefs
;
119 //----------------------------------------------------------------------------
122 struct LanguageInfo
{
124 const char *filepattern
;
129 } styles
[STYLE_TYPES_COUNT
];
133 extern const LanguageInfo g_LanguagePrefs
[];
134 extern const int g_LanguagePrefsSize
;
136 //----------------------------------------------------------------------------
140 const wxChar
*foreground
;
141 const wxChar
*background
;
142 const wxChar
*fontname
;
148 extern const StyleInfo g_StylePrefs
[];
149 extern const int g_StylePrefsSize
;