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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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