umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

optionstate.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef OPTIONSTATE_H
7#define OPTIONSTATE_H
8
9#include "basictypes.h"
10#include "codeviewerstate.h"
11#include "codegenerationpolicy.h"
12
13#include <QDomElement>
14#include <QXmlStreamWriter>
15
16 namespace Settings {
17
18 enum Page
19{
20 page_general = 0,
21 page_font,
22 page_UI,
23 page_class,
24 page_codeimport,
25 page_codegen,
26 page_codeview
27};
28
29//public structs
30 class GeneralState {
31 public:
32 GeneralState()
33 : undo(false),
34 tabdiagrams(false),
35 newcodegen(false),
36 angularlines(false),
37 layoutType(Uml::LayoutType::Undefined),
38 footerPrinting(false),
39 autosave(false),
40 time(0),
41 autosavetime(0),
42 loadlast(false),
43 diagram(Uml::DiagramType::Class),
44 defaultLanguage(Uml::ProgrammingLanguage::Cpp),
45 uml2(false)
46 {
47 }
48
49 void load();
50 void save();
51
52 bool undo;
53 bool tabdiagrams;
54 bool newcodegen;
55 bool angularlines;
56 Uml::LayoutType::Enum layoutType;
57 bool footerPrinting;
58 bool autosave;
59 int time;
60 int autosavetime;
61 QString autosavesuffix;
62 bool loadlast;
63 Uml::DiagramType::Enum diagram;
64 Uml::ProgrammingLanguage::Enum defaultLanguage;
65 QString lastFile;
66 bool uml2;
67};
68
69 class UIState {
70 public:
71 UIState()
72 : useFillColor(false),
73 lineWidth(0)
74 {
75 }
76
77 void load();
78 void save();
79
80 void saveToXMI1(QXmlStreamWriter& writer);
81 bool loadFromXMI1(QDomElement& element);
82
83 bool useFillColor;
84 QColor fillColor;
85 QColor lineColor;
86 uint lineWidth;
87 QColor textColor;
88 QFont font;
89 QColor backgroundColor;
90 QColor gridDotColor;
91};
92
93 class ClassState {
94 public:
95 ClassState()
96 : showVisibility(false),
97 showAtts(false),
98 showOps(false),
99 showStereoType(Uml::ShowStereoType::None),
100 showAttSig(false),
101 showOpSig(false),
102 showPackage(false),
103 showAttribAssocs(false),
104 showDocumentation(false),
105 showPublicOnly(false),
106 defaultAttributeScope(Uml::Visibility::Public),
107 defaultOperationScope(Uml::Visibility::Public)
108 {
109 }
110
111 void load();
112 void save();
113
114 void saveToXMI1(QXmlStreamWriter& writer);
115 bool loadFromXMI1(QDomElement& element);
116
117 bool showVisibility;
118 bool showAtts;
119 bool showOps;
120 Uml::ShowStereoType::Enum showStereoType;
121 bool showAttSig;
122 bool showOpSig;
123 bool showPackage;
124 bool showAttribAssocs;
125 bool showDocumentation;
126 bool showPublicOnly;
127 Uml::Visibility::Enum defaultAttributeScope;
128 Uml::Visibility::Enum defaultOperationScope;
129};
130
131 class CodeGenerationState {
132 public:
133 CodeGenerationState()
134 : autoGenEmptyConstructors(false),
135 commentStyle(CodeGenerationPolicy::SingleLine),
136 defaultAssocFieldScope(Uml::Visibility::Public),
137 defaultAttributeAccessorScope(Uml::Visibility::Public),
138 forceDoc(false),
139 forceSections(false),
140 includeHeadings(false),
141 indentationAmount(false),
142 indentationType(CodeGenerationPolicy::NONE),
143#ifdef Q_OS_WIN
144 lineEndingType(CodeGenerationPolicy::DOS),
145#elif defined(Q_OS_MAC)
146 lineEndingType(CodeGenerationPolicy::MAC),
147#else
148 lineEndingType(CodeGenerationPolicy::UNIX),
149#endif
150 modnamePolicy(CodeGenerationPolicy::No),
151 overwritePolicy(CodeGenerationPolicy::Ok)
152 {
153 }
154
155 void load();
156 void save();
157
158 bool autoGenEmptyConstructors;
159 CodeGenerationPolicy::CommentStyle commentStyle;
160 Uml::Visibility::Enum defaultAssocFieldScope;
161 Uml::Visibility::Enum defaultAttributeAccessorScope;
162 bool forceDoc;
163 bool forceSections;
164 QDir headingsDirectory;
165 bool includeHeadings;
166 int indentationAmount;
167 CodeGenerationPolicy::IndentationType indentationType;
168 CodeGenerationPolicy::NewLineType lineEndingType;
169 CodeGenerationPolicy::ModifyNamePolicy modnamePolicy;
170 QDir outputDirectory;
171 CodeGenerationPolicy::OverwritePolicy overwritePolicy;
172
173 class CPPCodeGenerationState {
174 public:
175 CPPCodeGenerationState()
176 : autoGenAccessors(false),
177 inlineAccessors(false),
178 inlineOps(false),
179 packageIsNamespace(false),
180 publicAccessors(false),
181 stringIncludeIsGlobal(false),
182 vectorIncludeIsGlobal(false),
183 virtualDestructors(false),
184 getterWithGetPrefix(false),
185 removePrefixFromAccessorMethods(false),
186 accessorMethodsStartWithUpperCase(false)
187 {
188 }
189
190 bool autoGenAccessors;
191 bool inlineAccessors;
192 bool inlineOps;
193 bool packageIsNamespace;
194 bool publicAccessors;
195 QString stringClassName;
196 QString stringClassNameInclude;
197 bool stringIncludeIsGlobal;
198 QString vectorClassName;
199 QString vectorClassNameInclude;
200 QString classMemberPrefix;
201 QString docToolTag;
202 bool vectorIncludeIsGlobal;
203 bool virtualDestructors;
204 bool getterWithGetPrefix;
205 bool removePrefixFromAccessorMethods;
206 bool accessorMethodsStartWithUpperCase;
207 };
208
209 class DCodeGenerationState {
210 public:
211 DCodeGenerationState()
212 : autoGenerateAttributeAccessors(false),
213 autoGenerateAssocAccessors(false),
214 buildANTDocument(false)
215 {
216 }
217
218 bool autoGenerateAttributeAccessors;
219 bool autoGenerateAssocAccessors;
220 bool buildANTDocument;
221 };
222
223 class JavaCodeGenerationState {
224 public:
225 JavaCodeGenerationState()
226 : autoGenerateAttributeAccessors(false),
227 autoGenerateAssocAccessors(false),
228 buildANTDocument(false)
229 {
230 }
231
232 bool autoGenerateAttributeAccessors;
233 bool autoGenerateAssocAccessors;
234 bool buildANTDocument;
235 };
236
237 class RubyCodeGenerationState {
238 public:
239 RubyCodeGenerationState()
240 : autoGenerateAttributeAccessors(false),
241 autoGenerateAssocAccessors(false)
242 {
243 }
244
245 bool autoGenerateAttributeAccessors;
246 bool autoGenerateAssocAccessors;
247 };
248
249 CPPCodeGenerationState cppCodeGenerationState;
250 DCodeGenerationState dCodeGenerationState;
251 JavaCodeGenerationState javaCodeGenerationState;
252 RubyCodeGenerationState rubyCodeGenerationState;
253};
254
255 class CodeImportState {
256 public:
257 CodeImportState()
258 : createArtifacts(false),
259 resolveDependencies(false),
260 supportCPP11(true)
261 {
262 }
263
264 void load();
265 void save();
266
267 void saveToXMI1(QXmlStreamWriter& writer);
268 bool loadFromXMI1(QDomElement& element);
269
270 bool createArtifacts;
271 bool resolveDependencies;
272 bool supportCPP11;
273};
274
275 class AutoLayoutState {
276 public:
277 AutoLayoutState()
278 : autoDotPath(false),
279 showExportLayout(false)
280 {
281 }
282
283 void load();
284 void save();
285
286 void saveToXMI1(QXmlStreamWriter& writer);
287 bool loadFromXMI1(QDomElement& element);
288
289 bool autoDotPath;
290 QString dotPath;
291 bool showExportLayout;
292};
293
294 class LayoutTypeState {
295 public:
296 LayoutTypeState()
297 : showExportLayout(Uml::LayoutType::Enum::Direct)
298 {
299 }
300
301 void load();
302 void save();
303
304 void saveToXMI1(QXmlStreamWriter& writer);
305 bool loadFromXMI1(QDomElement& element);
306
307 Uml::LayoutType::Enum showExportLayout;
308};
309
310 class OptionState {
311 public:
312 OptionState();
313
314 void load();
315 void save();
316
317 void saveToXMI1(QXmlStreamWriter& writer);
318 bool loadFromXMI1(QDomElement& element);
319
320 static OptionState &instance();
321
322 GeneralState generalState;
323 LayoutTypeState layoutTypeState;
324 UIState uiState;
325 ClassState classState;
326 CodeViewerState codeViewerState;
327 CodeGenerationState codeGenerationState;
328 CodeImportState codeImportState;
329 AutoLayoutState autoLayoutState;
330};
331
332 OptionState& optionState();
333 void setOptionState(const OptionState& optstate);
334
335} // namespace Settings
336
337#endif
basictypes.h
CodeGenerationPolicy
Definition: codegenerationpolicy.h:26
CodeGenerationPolicy::ModifyNamePolicy
ModifyNamePolicy
Definition: codegenerationpolicy.h:43
CodeGenerationPolicy::NewLineType
NewLineType
Definition: codegenerationpolicy.h:44
CodeGenerationPolicy::IndentationType
IndentationType
Definition: codegenerationpolicy.h:45
CodeGenerationPolicy::OverwritePolicy
OverwritePolicy
Definition: codegenerationpolicy.h:42
CodeGenerationPolicy::CommentStyle
CommentStyle
Definition: codegenerationpolicy.h:46
Settings::AutoLayoutState
Definition: optionstate.h:275
Settings::AutoLayoutState::autoDotPath
bool autoDotPath
determine path to dot executable automatically
Definition: optionstate.h:289
Settings::AutoLayoutState::dotPath
QString dotPath
path to dot executable
Definition: optionstate.h:290
Settings::AutoLayoutState::save
void save()
Definition: optionstate.cpp:350
Settings::AutoLayoutState::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Settings::AutoLayoutState::showExportLayout
bool showExportLayout
flag for display export layout
Definition: optionstate.h:291
Settings::AutoLayoutState::AutoLayoutState
AutoLayoutState()
Definition: optionstate.h:277
Settings::AutoLayoutState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Settings::AutoLayoutState::load
void load()
Definition: optionstate.cpp:343
Settings::ClassState
Definition: optionstate.h:93
Settings::ClassState::showAttribAssocs
bool showAttribAssocs
Definition: optionstate.h:124
Settings::ClassState::showDocumentation
bool showDocumentation
Definition: optionstate.h:125
Settings::ClassState::showPublicOnly
bool showPublicOnly
Definition: optionstate.h:126
Settings::ClassState::load
void load()
Definition: optionstate.cpp:64
Settings::ClassState::showVisibility
bool showVisibility
Definition: optionstate.h:117
Settings::ClassState::defaultAttributeScope
Uml::Visibility::Enum defaultAttributeScope
Definition: optionstate.h:127
Settings::ClassState::showAtts
bool showAtts
Definition: optionstate.h:118
Settings::ClassState::showAttSig
bool showAttSig
Definition: optionstate.h:121
Settings::ClassState::defaultOperationScope
Uml::Visibility::Enum defaultOperationScope
Definition: optionstate.h:128
Settings::ClassState::showOpSig
bool showOpSig
Definition: optionstate.h:122
Settings::ClassState::showOps
bool showOps
Definition: optionstate.h:119
Settings::ClassState::ClassState
ClassState()
Definition: optionstate.h:95
Settings::ClassState::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: optionstate.cpp:98
Settings::ClassState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Definition: optionstate.cpp:120
Settings::ClassState::save
void save()
Definition: optionstate.cpp:79
Settings::ClassState::showStereoType
Uml::ShowStereoType::Enum showStereoType
Definition: optionstate.h:120
Settings::ClassState::showPackage
bool showPackage
Definition: optionstate.h:123
Settings::CodeGenerationState::CPPCodeGenerationState
Definition: optionstate.h:173
Settings::CodeGenerationState::CPPCodeGenerationState::vectorClassName
QString vectorClassName
Definition: optionstate.h:198
Settings::CodeGenerationState::CPPCodeGenerationState::autoGenAccessors
bool autoGenAccessors
Definition: optionstate.h:190
Settings::CodeGenerationState::CPPCodeGenerationState::CPPCodeGenerationState
CPPCodeGenerationState()
Definition: optionstate.h:175
Settings::CodeGenerationState::CPPCodeGenerationState::accessorMethodsStartWithUpperCase
bool accessorMethodsStartWithUpperCase
Definition: optionstate.h:206
Settings::CodeGenerationState::CPPCodeGenerationState::vectorIncludeIsGlobal
bool vectorIncludeIsGlobal
Definition: optionstate.h:202
Settings::CodeGenerationState::CPPCodeGenerationState::publicAccessors
bool publicAccessors
Definition: optionstate.h:194
Settings::CodeGenerationState::CPPCodeGenerationState::vectorClassNameInclude
QString vectorClassNameInclude
Definition: optionstate.h:199
Settings::CodeGenerationState::CPPCodeGenerationState::stringClassNameInclude
QString stringClassNameInclude
Definition: optionstate.h:196
Settings::CodeGenerationState::CPPCodeGenerationState::virtualDestructors
bool virtualDestructors
Definition: optionstate.h:203
Settings::CodeGenerationState::CPPCodeGenerationState::classMemberPrefix
QString classMemberPrefix
Definition: optionstate.h:200
Settings::CodeGenerationState::CPPCodeGenerationState::packageIsNamespace
bool packageIsNamespace
Definition: optionstate.h:193
Settings::CodeGenerationState::CPPCodeGenerationState::stringIncludeIsGlobal
bool stringIncludeIsGlobal
Definition: optionstate.h:197
Settings::CodeGenerationState::CPPCodeGenerationState::inlineOps
bool inlineOps
Definition: optionstate.h:192
Settings::CodeGenerationState::CPPCodeGenerationState::stringClassName
QString stringClassName
Definition: optionstate.h:195
Settings::CodeGenerationState::CPPCodeGenerationState::inlineAccessors
bool inlineAccessors
Definition: optionstate.h:191
Settings::CodeGenerationState::CPPCodeGenerationState::removePrefixFromAccessorMethods
bool removePrefixFromAccessorMethods
Definition: optionstate.h:205
Settings::CodeGenerationState::CPPCodeGenerationState::docToolTag
QString docToolTag
Definition: optionstate.h:201
Settings::CodeGenerationState::CPPCodeGenerationState::getterWithGetPrefix
bool getterWithGetPrefix
Definition: optionstate.h:204
Settings::CodeGenerationState::DCodeGenerationState
Definition: optionstate.h:209
Settings::CodeGenerationState::DCodeGenerationState::buildANTDocument
bool buildANTDocument
Definition: optionstate.h:220
Settings::CodeGenerationState::DCodeGenerationState::DCodeGenerationState
DCodeGenerationState()
Definition: optionstate.h:211
Settings::CodeGenerationState::DCodeGenerationState::autoGenerateAttributeAccessors
bool autoGenerateAttributeAccessors
Definition: optionstate.h:218
Settings::CodeGenerationState::DCodeGenerationState::autoGenerateAssocAccessors
bool autoGenerateAssocAccessors
Definition: optionstate.h:219
Settings::CodeGenerationState::JavaCodeGenerationState
Definition: optionstate.h:223
Settings::CodeGenerationState::JavaCodeGenerationState::autoGenerateAttributeAccessors
bool autoGenerateAttributeAccessors
Definition: optionstate.h:232
Settings::CodeGenerationState::JavaCodeGenerationState::autoGenerateAssocAccessors
bool autoGenerateAssocAccessors
Definition: optionstate.h:233
Settings::CodeGenerationState::JavaCodeGenerationState::JavaCodeGenerationState
JavaCodeGenerationState()
Definition: optionstate.h:225
Settings::CodeGenerationState::JavaCodeGenerationState::buildANTDocument
bool buildANTDocument
Definition: optionstate.h:234
Settings::CodeGenerationState::RubyCodeGenerationState
Definition: optionstate.h:237
Settings::CodeGenerationState::RubyCodeGenerationState::autoGenerateAssocAccessors
bool autoGenerateAssocAccessors
Definition: optionstate.h:246
Settings::CodeGenerationState::RubyCodeGenerationState::autoGenerateAttributeAccessors
bool autoGenerateAttributeAccessors
Definition: optionstate.h:245
Settings::CodeGenerationState::RubyCodeGenerationState::RubyCodeGenerationState
RubyCodeGenerationState()
Definition: optionstate.h:239
Settings::CodeGenerationState
Definition: optionstate.h:131
Settings::CodeGenerationState::javaCodeGenerationState
JavaCodeGenerationState javaCodeGenerationState
Definition: optionstate.h:251
Settings::CodeGenerationState::lineEndingType
CodeGenerationPolicy::NewLineType lineEndingType
Definition: optionstate.h:168
Settings::CodeGenerationState::autoGenEmptyConstructors
bool autoGenEmptyConstructors
Definition: optionstate.h:158
Settings::CodeGenerationState::CodeGenerationState
CodeGenerationState()
Definition: optionstate.h:133
Settings::CodeGenerationState::rubyCodeGenerationState
RubyCodeGenerationState rubyCodeGenerationState
Definition: optionstate.h:252
Settings::CodeGenerationState::forceSections
bool forceSections
Definition: optionstate.h:163
Settings::CodeGenerationState::headingsDirectory
QDir headingsDirectory
Definition: optionstate.h:164
Settings::CodeGenerationState::indentationAmount
int indentationAmount
Definition: optionstate.h:166
Settings::CodeGenerationState::forceDoc
bool forceDoc
Definition: optionstate.h:162
Settings::CodeGenerationState::dCodeGenerationState
DCodeGenerationState dCodeGenerationState
Definition: optionstate.h:250
Settings::CodeGenerationState::load
void load()
Definition: optionstate.cpp:267
Settings::CodeGenerationState::outputDirectory
QDir outputDirectory
Definition: optionstate.h:170
Settings::CodeGenerationState::includeHeadings
bool includeHeadings
Definition: optionstate.h:165
Settings::CodeGenerationState::defaultAssocFieldScope
Uml::Visibility::Enum defaultAssocFieldScope
Definition: optionstate.h:160
Settings::CodeGenerationState::modnamePolicy
CodeGenerationPolicy::ModifyNamePolicy modnamePolicy
Definition: optionstate.h:169
Settings::CodeGenerationState::defaultAttributeAccessorScope
Uml::Visibility::Enum defaultAttributeAccessorScope
Definition: optionstate.h:161
Settings::CodeGenerationState::commentStyle
CodeGenerationPolicy::CommentStyle commentStyle
Definition: optionstate.h:159
Settings::CodeGenerationState::indentationType
CodeGenerationPolicy::IndentationType indentationType
Definition: optionstate.h:167
Settings::CodeGenerationState::cppCodeGenerationState
CPPCodeGenerationState cppCodeGenerationState
Definition: optionstate.h:249
Settings::CodeGenerationState::overwritePolicy
CodeGenerationPolicy::OverwritePolicy overwritePolicy
Definition: optionstate.h:171
Settings::CodeGenerationState::save
void save()
Definition: optionstate.cpp:300
Settings::CodeImportState
Definition: optionstate.h:255
Settings::CodeImportState::createArtifacts
bool createArtifacts
Definition: optionstate.h:270
Settings::CodeImportState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Definition: optionstate.cpp:255
Settings::CodeImportState::save
void save()
Definition: optionstate.cpp:231
Settings::CodeImportState::load
void load()
Definition: optionstate.cpp:223
Settings::CodeImportState::supportCPP11
bool supportCPP11
Definition: optionstate.h:272
Settings::CodeImportState::resolveDependencies
bool resolveDependencies
Definition: optionstate.h:271
Settings::CodeImportState::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: optionstate.cpp:242
Settings::CodeImportState::CodeImportState
CodeImportState()
Definition: optionstate.h:257
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:15
Settings::GeneralState
Definition: optionstate.h:30
Settings::GeneralState::undo
bool undo
Definition: optionstate.h:52
Settings::GeneralState::autosavetime
int autosavetime
Definition: optionstate.h:60
Settings::GeneralState::angularlines
bool angularlines
Definition: optionstate.h:55
Settings::GeneralState::autosavesuffix
QString autosavesuffix
Text input field for suffix of autosave.
Definition: optionstate.h:61
Settings::GeneralState::autosave
bool autosave
Definition: optionstate.h:58
Settings::GeneralState::lastFile
QString lastFile
Definition: optionstate.h:65
Settings::GeneralState::newcodegen
bool newcodegen
Definition: optionstate.h:54
Settings::GeneralState::save
void save()
Definition: optionstate.cpp:47
Settings::GeneralState::tabdiagrams
bool tabdiagrams
Definition: optionstate.h:53
Settings::GeneralState::layoutType
Uml::LayoutType::Enum layoutType
Definition: optionstate.h:56
Settings::GeneralState::loadlast
bool loadlast
Definition: optionstate.h:62
Settings::GeneralState::time
int time
old autosave time, kept for compatibility
Definition: optionstate.h:59
Settings::GeneralState::load
void load()
Definition: optionstate.cpp:15
Settings::GeneralState::uml2
bool uml2
Definition: optionstate.h:66
Settings::GeneralState::defaultLanguage
Uml::ProgrammingLanguage::Enum defaultLanguage
Definition: optionstate.h:64
Settings::GeneralState::GeneralState
GeneralState()
Definition: optionstate.h:32
Settings::GeneralState::footerPrinting
bool footerPrinting
Definition: optionstate.h:57
Settings::GeneralState::diagram
Uml::DiagramType::Enum diagram
Definition: optionstate.h:63
Settings::LayoutTypeState
Definition: optionstate.h:294
Settings::LayoutTypeState::LayoutTypeState
LayoutTypeState()
Definition: optionstate.h:296
Settings::LayoutTypeState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Settings::LayoutTypeState::load
void load()
Settings::LayoutTypeState::showExportLayout
Uml::LayoutType::Enum showExportLayout
flag for display export layout
Definition: optionstate.h:307
Settings::LayoutTypeState::save
void save()
Settings::LayoutTypeState::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Settings::OptionState
Definition: optionstate.h:310
Settings::OptionState::classState
ClassState classState
Definition: optionstate.h:325
Settings::OptionState::codeImportState
CodeImportState codeImportState
Definition: optionstate.h:328
Settings::OptionState::codeViewerState
CodeViewerState codeViewerState
Definition: optionstate.h:326
Settings::OptionState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Definition: optionstate.cpp:409
Settings::OptionState::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: optionstate.cpp:397
Settings::OptionState::codeGenerationState
CodeGenerationState codeGenerationState
Definition: optionstate.h:327
Settings::OptionState::layoutTypeState
LayoutTypeState layoutTypeState
Definition: optionstate.h:323
Settings::OptionState::generalState
GeneralState generalState
Definition: optionstate.h:322
Settings::OptionState::load
void load()
Definition: optionstate.cpp:371
Settings::OptionState::instance
static OptionState & instance()
Definition: optionstate.cpp:417
Settings::OptionState::autoLayoutState
AutoLayoutState autoLayoutState
Definition: optionstate.h:329
Settings::OptionState::OptionState
OptionState()
Definition: optionstate.cpp:367
Settings::OptionState::uiState
UIState uiState
Definition: optionstate.h:324
Settings::OptionState::save
void save()
Definition: optionstate.cpp:382
Settings::UIState
Definition: optionstate.h:69
Settings::UIState::gridDotColor
QColor gridDotColor
Definition: optionstate.h:90
Settings::UIState::lineColor
QColor lineColor
Definition: optionstate.h:85
Settings::UIState::UIState
UIState()
Definition: optionstate.h:71
Settings::UIState::lineWidth
uint lineWidth
Definition: optionstate.h:86
Settings::UIState::backgroundColor
QColor backgroundColor
Definition: optionstate.h:89
Settings::UIState::load
void load()
Definition: optionstate.cpp:147
Settings::UIState::textColor
QColor textColor
Definition: optionstate.h:87
Settings::UIState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Definition: optionstate.cpp:193
Settings::UIState::fillColor
QColor fillColor
Definition: optionstate.h:84
Settings::UIState::useFillColor
bool useFillColor
Definition: optionstate.h:83
Settings::UIState::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: optionstate.cpp:175
Settings::UIState::save
void save()
Definition: optionstate.cpp:159
Settings::UIState::font
QFont font
Definition: optionstate.h:88
codegenerationpolicy.h
codeviewerstate.h
Settings
Definition: codeviewerstate.cpp:10
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:357
Settings::setOptionState
void setOptionState(const OptionState &optstate)
Definition: optionstate.cpp:362
Settings::Page
Page
Definition: optionstate.h:19
Settings::page_UI
@ page_UI
Definition: optionstate.h:22
Settings::page_codeimport
@ page_codeimport
Definition: optionstate.h:24
Settings::page_codegen
@ page_codegen
Definition: optionstate.h:25
Settings::page_class
@ page_class
Definition: optionstate.h:23
Settings::page_codeview
@ page_codeview
Definition: optionstate.h:26
Settings::page_font
@ page_font
Definition: optionstate.h:21
Settings::page_general
@ page_general
Definition: optionstate.h:20
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:63
Uml::DiagramType::Undefined
@ Undefined
Definition: basictypes.h:66
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:67
Uml::LayoutType::Enum
Enum
Definition: basictypes.h:130
Uml::LayoutType::Direct
@ Direct
Definition: basictypes.h:132
Uml::ModelType::Enum
Enum
Definition: basictypes.h:27
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
Uml::ProgrammingLanguage::Cpp
@ Cpp
Definition: basictypes.h:294
Uml::ShowStereoType::Enum
Enum
Definition: basictypes.h:148
Uml::ShowStereoType::None
@ None
no display of stereotype
Definition: basictypes.h:149
Uml::Visibility::Enum
Enum
Definition: basictypes.h:45
Uml::Visibility::Public
@ Public
Definition: basictypes.h:46
Uml
Definition: basictypes.cpp:23