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