1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : tags_options_data.h
7
// -------------------------------------------------------------------------
10
// / __ \ | | | | (_) |
11
// | / \/ ___ __| | ___| | _| |_ ___
12
// | | / _ \ / _ |/ _ \ | | | __/ _ )
13
// | \__/\ (_) | (_| | __/ |___| | || __/
14
// \____/\___/ \__,_|\___\_____/_|\__\___|
18
// This program is free software; you can redistribute it and/or modify
19
// it under the terms of the GNU General Public License as published by
20
// the Free Software Foundation; either version 2 of the License, or
21
// (at your option) any later version.
23
//////////////////////////////////////////////////////////////////////////////
24
//////////////////////////////////////////////////////////////////////////////
25
#ifndef TAGS_OPTIONS_DATA_H
26
#define TAGS_OPTIONS_DATA_H
28
#include "serialized_object.h"
29
#include "wx/filename.h"
32
enum CodeCompletionOpts {
33
CC_PARSE_COMMENTS = 0x00000001,
34
CC_DISP_COMMENTS = 0x00000002,
35
CC_DISP_TYPE_INFO = 0x00000004,
36
CC_DISP_FUNC_CALLTIP = 0x00000008,
37
CC_LOAD_EXT_DB = 0x00000010,
38
CC_LOAD_EXT_DB_TO_MEMORY = 0x00000020,
39
CC_PARSE_EXT_LESS_FILES = 0x00000040,
40
CC_COLOUR_VARS = 0x00000080,
41
CC_COLOUR_WORKSPACE_TAGS = 0x00000100,
42
CC_CPP_KEYWORD_ASISST = 0x00000200,
43
CC_CACHE_WORKSPACE_TAGS = 0x00000400,
44
CC_DISABLE_AUTO_PARSING = 0x00000800,
45
CC_MARK_TAGS_FILES_IN_BOLD = 0x00001000,
46
CC_USE_FULL_RETAGGING = 0x00002000,
47
CC_RETAG_WORKSPACE_ON_STARTUP = 0x00004000,
48
CC_ACCURATE_SCOPE_RESOLVING = 0x00008000
51
enum CodeCompletionColourOpts {
52
CC_COLOUR_CLASS = 0x00000001,
53
CC_COLOUR_STRUCT = 0x00000002,
54
CC_COLOUR_FUNCTION = 0x00000004,
55
CC_COLOUR_ENUM = 0x00000008,
56
CC_COLOUR_UNION = 0x00000010,
57
CC_COLOUR_PROTOTYPE = 0x00000020,
58
CC_COLOUR_TYPEDEF = 0x00000040,
59
CC_COLOUR_MACRO = 0x00000080,
60
CC_COLOUR_NAMESPACE = 0x00000100,
61
CC_COLOUR_ENUMERATOR = 0x00000200,
62
CC_COLOUR_VARIABLE = 0x00000400,
63
CC_COLOUR_MEMBER = 0x00000800,
64
CC_COLOUR_DEFAULT = CC_COLOUR_CLASS | CC_COLOUR_STRUCT | CC_COLOUR_FUNCTION |
65
CC_COLOUR_ENUM | CC_COLOUR_PROTOTYPE
68
class TagsOptionsData : public SerializedObject
71
size_t m_ccColourFlags;
75
wxArrayString m_languages;
80
virtual ~TagsOptionsData();
83
void SetFlags(const size_t &flags) {
86
void SetFileSpec(const wxString &filespec) {
87
m_fileSpec = filespec;
89
void SetPreprocessor(const wxArrayString& prep) {
92
void SetLanguages(const wxArrayString &langs) {
95
void SetLanguageSelection(const wxString &lang);
97
const wxArrayString &GetLanguages() const {
100
const wxArrayString& GetPreprocessor() const {
103
std::map<std::string, std::string> GetPreprocessorAsMap() const;
104
std::map<wxString, wxString> GetPreprocessorAsWxMap() const;
106
const size_t& GetFlags() const {
109
const wxString &GetFileSpec() const {
114
void SetMinWordLen(const int& minWordLen) {
115
this->m_minWordLen = minWordLen;
118
const int& GetMinWordLen() const {
123
void Serialize(Archive &arch);
124
void DeSerialize(Archive &arch);
126
wxString ToString() const;
128
void SetCcColourFlags(const size_t& ccColourFlags) {
129
this->m_ccColourFlags = ccColourFlags;
132
const size_t& GetCcColourFlags() const {
133
return m_ccColourFlags;
137
#endif //TAGS_OPTIONS_DATA_H
1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : tags_options_data.h
7
// -------------------------------------------------------------------------
10
// / __ \ | | | | (_) |
11
// | / \/ ___ __| | ___| | _| |_ ___
12
// | | / _ \ / _ |/ _ \ | | | __/ _ )
13
// | \__/\ (_) | (_| | __/ |___| | || __/
14
// \____/\___/ \__,_|\___\_____/_|\__\___|
18
// This program is free software; you can redistribute it and/or modify
19
// it under the terms of the GNU General Public License as published by
20
// the Free Software Foundation; either version 2 of the License, or
21
// (at your option) any later version.
23
//////////////////////////////////////////////////////////////////////////////
24
//////////////////////////////////////////////////////////////////////////////
25
#ifndef TAGS_OPTIONS_DATA_H
26
#define TAGS_OPTIONS_DATA_H
28
#include "serialized_object.h"
29
#include "wx/filename.h"
32
enum CodeCompletionOpts {
33
CC_PARSE_COMMENTS = 0x00000001,
34
CC_DISP_COMMENTS = 0x00000002,
35
CC_DISP_TYPE_INFO = 0x00000004,
36
CC_DISP_FUNC_CALLTIP = 0x00000008,
37
CC_LOAD_EXT_DB = 0x00000010,
38
CC_PARSE_EXT_LESS_FILES = 0x00000040,
39
CC_COLOUR_VARS = 0x00000080,
40
CC_COLOUR_WORKSPACE_TAGS = 0x00000100,
41
CC_CPP_KEYWORD_ASISST = 0x00000200,
42
CC_DISABLE_AUTO_PARSING = 0x00000800,
43
CC_MARK_TAGS_FILES_IN_BOLD = 0x00001000,
44
// CC_USE_FULL_RETAGGING = 0x00002000,
45
CC_RETAG_WORKSPACE_ON_STARTUP = 0x00004000,
46
CC_ACCURATE_SCOPE_RESOLVING = 0x00008000
49
enum CodeCompletionColourOpts {
50
CC_COLOUR_CLASS = 0x00000001,
51
CC_COLOUR_STRUCT = 0x00000002,
52
CC_COLOUR_FUNCTION = 0x00000004,
53
CC_COLOUR_ENUM = 0x00000008,
54
CC_COLOUR_UNION = 0x00000010,
55
CC_COLOUR_PROTOTYPE = 0x00000020,
56
CC_COLOUR_TYPEDEF = 0x00000040,
57
CC_COLOUR_MACRO = 0x00000080,
58
CC_COLOUR_NAMESPACE = 0x00000100,
59
CC_COLOUR_ENUMERATOR = 0x00000200,
60
CC_COLOUR_VARIABLE = 0x00000400,
61
CC_COLOUR_MEMBER = 0x00000800,
62
CC_COLOUR_ALL = CC_COLOUR_CLASS | CC_COLOUR_STRUCT | CC_COLOUR_FUNCTION |
63
CC_COLOUR_ENUM | CC_COLOUR_UNION | CC_COLOUR_PROTOTYPE | CC_COLOUR_TYPEDEF | CC_COLOUR_MACRO |
64
CC_COLOUR_NAMESPACE | CC_COLOUR_ENUMERATOR | CC_COLOUR_VARIABLE | CC_COLOUR_MEMBER,
65
CC_COLOUR_DEFAULT = CC_COLOUR_CLASS | CC_COLOUR_STRUCT | CC_COLOUR_FUNCTION |
66
CC_COLOUR_ENUM | CC_COLOUR_PROTOTYPE
69
class TagsOptionsData : public SerializedObject
72
size_t m_ccColourFlags;
75
wxArrayString m_languages;
77
wxArrayString m_parserSearchPaths;
78
wxArrayString m_parserExcludePaths;
80
int m_maxItemToColour;
83
virtual ~TagsOptionsData();
86
void SetFlags(const size_t &flags) {
89
void SetFileSpec(const wxString &filespec) {
90
m_fileSpec = filespec;
92
void SetPreprocessor(const wxArrayString& prep) {
95
void SetLanguages(const wxArrayString &langs) {
98
void SetLanguageSelection(const wxString &lang);
100
const wxArrayString &GetLanguages() const {
103
const wxArrayString& GetPreprocessor() const {
106
std::map<std::string, std::string> GetPreprocessorAsMap() const;
107
std::map<wxString, wxString> GetPreprocessorAsWxMap() const;
109
const size_t& GetFlags() const {
112
const wxString &GetFileSpec() const {
117
void SetMinWordLen(const int& minWordLen) {
118
this->m_minWordLen = minWordLen;
121
const int& GetMinWordLen() const {
126
void Serialize(Archive &arch);
127
void DeSerialize(Archive &arch);
129
wxString ToString() const;
131
void SetCcColourFlags(const size_t& ccColourFlags) {
132
this->m_ccColourFlags = ccColourFlags;
135
const size_t& GetCcColourFlags() const {
136
return m_ccColourFlags;
138
void SetParserEnabled(const bool& parserEnabled) {
139
this->m_parserEnabled = parserEnabled;
141
void SetParserSearchPaths(const wxArrayString& parserSearchPaths) {
142
this->m_parserSearchPaths = parserSearchPaths;
144
const bool& GetParserEnabled() const {
145
return m_parserEnabled;
147
const wxArrayString& GetParserSearchPaths() const {
148
return m_parserSearchPaths;
150
void SetParserExcludePaths(const wxArrayString& parserExcludePaths) {
151
this->m_parserExcludePaths = parserExcludePaths;
153
const wxArrayString& GetParserExcludePaths() const {
154
return m_parserExcludePaths;
156
void SetMaxItemToColour(int maxItemToColour) {
157
this->m_maxItemToColour = maxItemToColour;
159
int GetMaxItemToColour() const {
160
return m_maxItemToColour;
164
#endif //TAGS_OPTIONS_DATA_H