1
//////////////////////////////////////////////////////////////////////////////
3
// Purpose: Test preferences initialization
4
// Maintainer: Otto Wyss
6
// Copyright: (c) 2004 wxCode
8
//////////////////////////////////////////////////////////////////////////////
13
//----------------------------------------------------------------------------
15
//----------------------------------------------------------------------------
17
This file is part of Code Snippets, a plugin for Code::Blocks
18
Copyright (C) 2006 Arto Jonsson
19
Copyright (C) 2007 Pecan Heber
21
This program is free software; you can redistribute it and/or
22
modify it under the terms of the GNU General Public License
23
as published by the Free Software Foundation; either version 2
24
of the License, or (at your option) any later version.
26
This program is distributed in the hope that it will be useful,
27
but WITHOUT ANY WARRANTY; without even the implied warranty of
28
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29
GNU General Public License for more details.
31
You should have received a copy of the GNU General Public License
32
along with this program; if not, write to the Free Software
33
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
35
// RCS-ID: $Id: prefs.h 106 2007-12-01 18:31:55Z Pecan $
38
//----------------------------------------------------------------------------
40
//----------------------------------------------------------------------------
44
//! wxScintilla headers
45
#include <wxscintilla/include/wx/wxscintilla.h> // scintilla edit control
47
//! application headers
50
//============================================================================
52
//============================================================================
54
//! general style types
55
#define TOKEN_DEFAULT 0
64
#define TOKEN_COMMENT 7
65
#define TOKEN_COMMENT_DOC 8
66
#define TOKEN_COMMENT_LINE 9
67
#define TOKEN_COMMENT_SPECIAL 10
69
#define TOKEN_CHARACTER 11
70
#define TOKEN_CHARACTER_EOL 12
71
#define TOKEN_STRING 13
72
#define TOKEN_STRING_EOL 14
74
#define TOKEN_DELIMITER 15
76
#define TOKEN_PUNCTUATION 16
78
#define TOKEN_OPERATOR 17
80
#define TOKEN_BRACE 18
82
#define TOKEN_COMMAND 19
83
#define TOKEN_IDENTIFIER 20
84
#define TOKEN_LABEL 21
85
#define TOKEN_NUMBER 22
86
#define TOKEN_PARAMETER 23
87
#define TOKEN_REGEX 24
89
#define TOKEN_VALUE 26
91
#define TOKEN_PREPROCESSOR 27
92
#define TOKEN_SCRIPT 28
94
#define TOKEN_ERROR 29
96
//----------------------------------------------------------------------------
98
#define TOKEN_STYLE_BOLD 1
99
#define TOKEN_STYLE_ITALIC 2
100
#define TOKEN_STYLE_UNDERL 4
101
#define TOKEN_STYLE_HIDDEN 8
103
//----------------------------------------------------------------------------
104
//! general folding types
105
#define FOLD_TYPE_COMMENT 1
106
#define FOLD_TYPE_COMPACT 2
107
#define FOLD_TYPE_PREPROC 4
109
#define FOLD_TYPE_HTML 16
110
#define FOLD_TYPE_HTMLPREP 32
112
#define FOLD_TYPE_COMMENTPY 64
113
#define FOLD_TYPE_QUOTESPY 128
115
//----------------------------------------------------------------------------
119
// editor functionality prefs
123
// display defaults prefs
124
bool readOnlyInitial;
125
bool overTypeInitial;
126
bool wrapModeInitial;
127
bool displayEOLEnable;
128
bool indentGuideEnable;
129
bool lineNumberEnable;
130
bool longLineOnEnable;
131
bool whiteSpaceEnable;
133
extern const CommonInfo g_CommonPrefs;
135
//----------------------------------------------------------------------------
138
struct LanguageInfo {
140
const wxChar *filepattern;
145
} styles [STYLE_TYPES_COUNT];
149
extern const LanguageInfo g_LanguagePrefs[];
150
extern const int g_LanguagePrefsSize;
152
//----------------------------------------------------------------------------
156
const wxChar *foreground;
157
const wxChar *background;
158
const wxChar *fontname;
164
extern const StyleInfo g_StylePrefs[];
165
extern const int g_StylePrefsSize;