~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/contrib/codesnippets/prefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
    //////////////////////////////////////////////////////////////////////////////
2
 
// File:        prefs.h
3
 
// Purpose:     Test preferences initialization
4
 
// Maintainer:  Otto Wyss
5
 
// Created:     2003-09-01
6
 
// Copyright:   (c) 2004 wxCode
7
 
// Licence:     wxWindows
8
 
//////////////////////////////////////////////////////////////////////////////
9
 
 
10
 
#ifndef _PREFS_H_
11
 
#define _PREFS_H_
12
 
 
13
 
//----------------------------------------------------------------------------
14
 
// information
15
 
//----------------------------------------------------------------------------
16
 
/*
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
20
 
 
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.
25
 
 
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.
30
 
 
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.
34
 
*/
35
 
// RCS-ID: $Id: prefs.h 106 2007-12-01 18:31:55Z Pecan $
36
 
 
37
 
 
38
 
//----------------------------------------------------------------------------
39
 
// headers
40
 
//----------------------------------------------------------------------------
41
 
 
42
 
//! wxWindows headers
43
 
 
44
 
//! wxScintilla headers
45
 
#include <wxscintilla/include/wx/wxscintilla.h>  // scintilla edit control
46
 
 
47
 
//! application headers
48
 
#include "defsext.h"
49
 
 
50
 
//============================================================================
51
 
// declarations
52
 
//============================================================================
53
 
 
54
 
//! general style types
55
 
#define TOKEN_DEFAULT 0
56
 
 
57
 
#define TOKEN_WORD1 1
58
 
#define TOKEN_WORD2 2
59
 
#define TOKEN_WORD3 3
60
 
#define TOKEN_WORD4 4
61
 
#define TOKEN_WORD5 5
62
 
#define TOKEN_WORD6 6
63
 
 
64
 
#define TOKEN_COMMENT 7
65
 
#define TOKEN_COMMENT_DOC 8
66
 
#define TOKEN_COMMENT_LINE 9
67
 
#define TOKEN_COMMENT_SPECIAL 10
68
 
 
69
 
#define TOKEN_CHARACTER 11
70
 
#define TOKEN_CHARACTER_EOL 12
71
 
#define TOKEN_STRING 13
72
 
#define TOKEN_STRING_EOL 14
73
 
 
74
 
#define TOKEN_DELIMITER 15
75
 
 
76
 
#define TOKEN_PUNCTUATION 16
77
 
 
78
 
#define TOKEN_OPERATOR 17
79
 
 
80
 
#define TOKEN_BRACE 18
81
 
 
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
88
 
#define TOKEN_UUID 25
89
 
#define TOKEN_VALUE 26
90
 
 
91
 
#define TOKEN_PREPROCESSOR 27
92
 
#define TOKEN_SCRIPT 28
93
 
 
94
 
#define TOKEN_ERROR 29
95
 
 
96
 
//----------------------------------------------------------------------------
97
 
//! style bits types
98
 
#define TOKEN_STYLE_BOLD 1
99
 
#define TOKEN_STYLE_ITALIC 2
100
 
#define TOKEN_STYLE_UNDERL 4
101
 
#define TOKEN_STYLE_HIDDEN 8
102
 
 
103
 
//----------------------------------------------------------------------------
104
 
//! general folding types
105
 
#define FOLD_TYPE_COMMENT 1
106
 
#define FOLD_TYPE_COMPACT 2
107
 
#define FOLD_TYPE_PREPROC 4
108
 
 
109
 
#define FOLD_TYPE_HTML 16
110
 
#define FOLD_TYPE_HTMLPREP 32
111
 
 
112
 
#define FOLD_TYPE_COMMENTPY 64
113
 
#define FOLD_TYPE_QUOTESPY 128
114
 
 
115
 
//----------------------------------------------------------------------------
116
 
// CommonInfo
117
 
 
118
 
struct CommonInfo {
119
 
    // editor functionality prefs
120
 
    bool syntaxEnable;
121
 
    bool foldEnable;
122
 
    bool indentEnable;
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;
132
 
};
133
 
extern const CommonInfo g_CommonPrefs;
134
 
 
135
 
//----------------------------------------------------------------------------
136
 
// LanguageInfo
137
 
 
138
 
struct LanguageInfo {
139
 
    const wxChar *name;
140
 
    const wxChar *filepattern;
141
 
    int lexer;
142
 
    struct {
143
 
        int type;
144
 
        const wxChar *words;
145
 
    } styles [STYLE_TYPES_COUNT];
146
 
    int folds;
147
 
};
148
 
 
149
 
extern const LanguageInfo g_LanguagePrefs[];
150
 
extern const int g_LanguagePrefsSize;
151
 
 
152
 
//----------------------------------------------------------------------------
153
 
// StyleInfo
154
 
struct StyleInfo {
155
 
    const wxChar *name;
156
 
    const wxChar *foreground;
157
 
    const wxChar *background;
158
 
    const wxChar *fontname;
159
 
    int fontsize;
160
 
    int fontstyle;
161
 
    int lettercase;
162
 
};
163
 
 
164
 
extern const StyleInfo g_StylePrefs[];
165
 
extern const int g_StylePrefsSize;
166
 
 
167
 
#endif // _PREFS_H_