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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef OPTIONSTATE_H
12 #define OPTIONSTATE_H
13
14 #include "basictypes.h"
15 #include "codeviewerstate.h"
16 #include "codegenerationpolicy.h"
17
18 #include <QDomElement>
19
20 namespace Settings {
21
22 enum Page
23 {
24 page_general = 0,
25 page_font,
26 page_UI,
27 page_class,
28 page_codeimport,
29 page_codegen,
30 page_codeview
31 };
32
33 //public structs
34 class GeneralState {
35 public:
36 GeneralState()
37 : undo(false),
38 tabdiagrams(false),
39 newcodegen(false),
40 angularlines(false),
41 layoutType(Uml::LayoutType::Undefined),
42 footerPrinting(false),
43 autosave(false),
44 time(0),
45 autosavetime(0),
46 loadlast(false),
47 diagram(Uml::DiagramType::Class),
48 defaultLanguage(Uml::ProgrammingLanguage::Cpp),
49 uml2(false)
50 {
51 }
52
53 void load();
54 void save();
55
56 bool undo;
57 bool tabdiagrams;
58 bool newcodegen;
59 bool angularlines;
60 Uml::LayoutType::Enum layoutType;
61 bool footerPrinting;
62 bool autosave;
63 int time;
64 int autosavetime;
65 QString autosavesuffix;
66 bool loadlast;
67 Uml::DiagramType::Enum diagram;
68 Uml::ProgrammingLanguage::Enum defaultLanguage;
69 QString lastFile;
70 bool uml2;
71 };
72
73 class UIState {
74 public:
75 UIState()
76 : useFillColor(false),
77 lineWidth(0)
78 {
79 }
80
81 void load();
82 void save();
83
84 void saveToXMI1(QDomElement& element);
85 bool loadFromXMI1(QDomElement& element);
86
87 bool useFillColor;
88 QColor fillColor;
89 QColor lineColor;
90 uint lineWidth;
91 QColor textColor;
92 QFont font;
93 QColor backgroundColor;
94 QColor gridDotColor;
95 };
96
97 class ClassState {
98 public:
99 ClassState()
100 : showVisibility(false),
101 showAtts(false),
102 showOps(false),
103 showStereoType(false),
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 saveToXMI1(QDomElement& element);
119 bool loadFromXMI1(QDomElement& element);
120
121 bool showVisibility;
122 bool showAtts;
123 bool showOps;
124 bool 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 forceSections(false),
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 bool forceSections;
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 saveToXMI1(QDomElement& element);
272 bool loadFromXMI1(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 saveToXMI1(QDomElement& element);
291 bool loadFromXMI1(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 saveToXMI1(QDomElement& element);
309 bool loadFromXMI1(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 saveToXMI1(QDomElement& element);
322 bool loadFromXMI1(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
Settings::OptionState::uiState
UIState uiState
Definition: optionstate.h:328
Settings::ClassState::showVisibility
bool showVisibility
Definition: optionstate.h:121
UmbrelloSettings::defaultOperationScope
static Uml::Visibility::Enum defaultOperationScope()
Definition: umbrellosettings.h:1095
Settings::setOptionState
void setOptionState(const OptionState &optstate)
Definition: optionstate.cpp:367
UmbrelloSettings::autoGenerateAssocAccessorsJava
static bool autoGenerateAssocAccessorsJava()
Definition: umbrellosettings.h:2544
Uml::ModelType::Enum
Enum
Definition: basictypes.h:41
UmbrelloSettings::autoGenerateAssocAccessorsD
static bool autoGenerateAssocAccessorsD()
Definition: umbrellosettings.h:2460
UmbrelloSettings::setShowStereoType
static void setShowStereoType(bool v)
Definition: umbrellosettings.h:917
UmbrelloSettings::setAccessorMethodsStartWithUpperCase
static void setAccessorMethodsStartWithUpperCase(bool v)
Definition: umbrellosettings.h:2366
UmbrelloSettings::lineWidth
static uint lineWidth()
Definition: umbrellosettings.h:619
UmbrelloSettings::tabdiagrams
static bool tabdiagrams()
Definition: umbrellosettings.h:119
Settings::ClassState::showAttribAssocs
bool showAttribAssocs
Definition: optionstate.h:128
UmbrelloSettings::fillColor
static QColor fillColor()
Definition: umbrellosettings.h:563
UmbrelloSettings::setShowOpSig
static void setShowOpSig(bool v)
Definition: umbrellosettings.h:1029
UmbrelloSettings::setTextColor
static void setTextColor(const QColor &v)
Definition: umbrellosettings.h:637
Settings::CodeGenerationState::RubyCodeGenerationState::RubyCodeGenerationState
RubyCodeGenerationState()
Definition: optionstate.h:243
UmbrelloSettings::loadlast
static bool loadlast()
Definition: umbrellosettings.h:395
Settings::CodeGenerationState::CPPCodeGenerationState::accessorMethodsStartWithUpperCase
bool accessorMethodsStartWithUpperCase
Definition: optionstate.h:210
UmbrelloSettings::setFooterPrinting
static void setFooterPrinting(bool v)
Definition: umbrellosettings.h:221
UmbrelloSettings::setUiFont
static void setUiFont(const QFont &v)
Definition: umbrellosettings.h:693
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
Settings::ClassState::load
void load()
Definition: optionstate.cpp:69
Settings::GeneralState::tabdiagrams
bool tabdiagrams
Definition: optionstate.h:57
Settings::UIState::font
QFont font
Definition: optionstate.h:92
Settings::ClassState::showAttSig
bool showAttSig
Definition: optionstate.h:125
Settings::CodeGenerationState::javaCodeGenerationState
JavaCodeGenerationState javaCodeGenerationState
Definition: optionstate.h:255
UmbrelloSettings::autosavetime
static int autosavetime()
Definition: umbrellosettings.h:339
Settings::CodeGenerationState::indentationType
CodeGenerationPolicy::IndentationType indentationType
Definition: optionstate.h:171
UmbrelloSettings::autosave
static bool autosave()
Definition: umbrellosettings.h:259
Uml::LayoutType::Enum
Enum
Definition: basictypes.h:144
Settings::CodeImportState::createArtifacts
bool createArtifacts
Definition: optionstate.h:274
Settings::ClassState::showPackage
bool showPackage
Definition: optionstate.h:127
Settings::CodeGenerationState
Definition: optionstate.h:135
UmbrelloSettings::vectorClassNameInclude
static QString vectorClassNameInclude()
Definition: umbrellosettings.h:2236
Settings::ClassState::showDocumentation
bool showDocumentation
Definition: optionstate.h:129
UmbrelloSettings::showOpSig
static bool showOpSig()
Definition: umbrellosettings.h:1039
UmbrelloSettings::supportCPP11
static bool supportCPP11()
Definition: umbrellosettings.h:1529
CodeGenerationPolicy::IndentationType
IndentationType
Definition: codegenerationpolicy.h:49
Settings::page_codegen
@ page_codegen
Definition: optionstate.h:29
UmbrelloSettings::setSupportCPP11
static void setSupportCPP11(bool v)
Definition: umbrellosettings.h:1519
Settings::CodeGenerationState::CPPCodeGenerationState
Definition: optionstate.h:177
Settings::ClassState::saveToXMI1
void saveToXMI1(QDomElement &element)
Definition: optionstate.cpp:103
Settings::CodeGenerationState::lineEndingType
CodeGenerationPolicy::NewLineType lineEndingType
Definition: optionstate.h:172
Settings::page_class
@ page_class
Definition: optionstate.h:27
UmbrelloSettings::setLoadlast
static void setLoadlast(bool v)
Definition: umbrellosettings.h:385
UmbrelloSettings::setAutoGenerateAttributeAccessorsD
static void setAutoGenerateAttributeAccessorsD(bool v)
Definition: umbrellosettings.h:2422
Settings::ClassState::defaultOperationScope
Uml::Visibility::Enum defaultOperationScope
Definition: optionstate.h:132
UmbrelloSettings::setShowExportLayout
static void setShowExportLayout(bool v)
Definition: umbrellosettings.h:2702
Settings::ClassState::showPublicOnly
bool showPublicOnly
Definition: optionstate.h:130
UmbrelloSettings::setShowPackage
static void setShowPackage(bool v)
Definition: umbrellosettings.h:889
Settings::OptionState::layoutTypeState
LayoutTypeState layoutTypeState
Definition: optionstate.h:327
Settings::CodeGenerationState::CPPCodeGenerationState::inlineOps
bool inlineOps
Definition: optionstate.h:196
Settings::UIState::save
void save()
Definition: optionstate.cpp:164
Settings::UIState::textColor
QColor textColor
Definition: optionstate.h:91
UmbrelloSettings::useFillColor
static bool useFillColor()
Definition: umbrellosettings.h:535
Settings::AutoLayoutState::saveToXMI1
void saveToXMI1(QDomElement &element)
Settings::OptionState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Definition: optionstate.cpp:414
UmbrelloSettings::setShowAtts
static void setShowAtts(bool v)
Definition: umbrellosettings.h:833
Settings::CodeGenerationState::CPPCodeGenerationState::publicAccessors
bool publicAccessors
Definition: optionstate.h:198
Settings::CodeGenerationState::CPPCodeGenerationState::classMemberPrefix
QString classMemberPrefix
Definition: optionstate.h:204
UmbrelloSettings::lineColor
static QColor lineColor()
Definition: umbrellosettings.h:591
Settings::CodeImportState::load
void load()
Definition: optionstate.cpp:228
UmbrelloSettings::setAutoGenerateAssocAccessorsRuby
static void setAutoGenerateAssocAccessorsRuby(bool v)
Definition: umbrellosettings.h:2618
UmbrelloSettings::createArtifacts
static bool createArtifacts()
Definition: umbrellosettings.h:1473
UmbrelloSettings::showStereoType
static bool showStereoType()
Definition: umbrellosettings.h:927
UmbrelloSettings::autoGenerateAssocAccessorsRuby
static bool autoGenerateAssocAccessorsRuby()
Definition: umbrellosettings.h:2628
Settings::LayoutTypeState::saveToXMI1
void saveToXMI1(QDomElement &element)
Settings::AutoLayoutState::load
void load()
Definition: optionstate.cpp:348
Settings::CodeImportState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Definition: optionstate.cpp:260
UmbrelloSettings::showOps
static bool showOps()
Definition: umbrellosettings.h:871
Settings::AutoLayoutState::showExportLayout
bool showExportLayout
flag for display export layout
Definition: optionstate.h:295
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
UmbrelloSettings::setAutoDotPath
static void setAutoDotPath(bool v)
Definition: umbrellosettings.h:2646
UmbrelloSettings::setUseFillColor
static void setUseFillColor(bool v)
Definition: umbrellosettings.h:525
Settings::ClassState::defaultAttributeScope
Uml::Visibility::Enum defaultAttributeScope
Definition: optionstate.h:131
UmbrelloSettings::stringClassNameInclude
static QString stringClassNameInclude()
Definition: umbrellosettings.h:2152
UmbrelloSettings::setAutosavetime
static void setAutosavetime(int v)
Definition: umbrellosettings.h:317
umbrellosettings.h
Settings::GeneralState::layoutType
Uml::LayoutType::Enum layoutType
Definition: optionstate.h:60
Settings::CodeGenerationState::indentationAmount
int indentationAmount
Definition: optionstate.h:170
UmbrelloSettings::setAutoGenerateAssocAccessorsJava
static void setAutoGenerateAssocAccessorsJava(bool v)
Definition: umbrellosettings.h:2534
Settings::ClassState::ClassState
ClassState()
Definition: optionstate.h:99
Settings::ClassState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Definition: optionstate.cpp:125
UmbrelloSettings::autoGenerateAttributeAccessorsRuby
static bool autoGenerateAttributeAccessorsRuby()
Definition: umbrellosettings.h:2600
UmbrelloSettings::setUndo
static void setUndo(bool v)
Definition: umbrellosettings.h:81
UmbrelloSettings::setVectorClassName
static void setVectorClassName(const QString &v)
Definition: umbrellosettings.h:2198
UmbrelloSettings::vectorClassName
static QString vectorClassName()
Definition: umbrellosettings.h:2208
UmbrelloSettings::autosavesuffix
static QString autosavesuffix()
Definition: umbrellosettings.h:367
UmbrelloSettings::stringIncludeIsGlobal
static bool stringIncludeIsGlobal()
Definition: umbrellosettings.h:2180
Settings::CodeGenerationState::overwritePolicy
CodeGenerationPolicy::OverwritePolicy overwritePolicy
Definition: optionstate.h:175
Settings::CodeImportState::saveToXMI1
void saveToXMI1(QDomElement &element)
Definition: optionstate.cpp:247
UmbrelloSettings::setResolveDependencies
static void setResolveDependencies(bool v)
Definition: umbrellosettings.h:1491
UmbrelloSettings::diagram
static Uml::DiagramType::Enum diagram()
Definition: umbrellosettings.h:423
Settings::GeneralState::newcodegen
bool newcodegen
Definition: optionstate.h:58
Settings::GeneralState::diagram
Uml::DiagramType::Enum diagram
Definition: optionstate.h:67
UmbrelloSettings::setBackgroundColor
static void setBackgroundColor(const QColor &v)
Definition: umbrellosettings.h:721
Settings::CodeGenerationState::CPPCodeGenerationState::autoGenAccessors
bool autoGenAccessors
Definition: optionstate.h:194
Settings::OptionState::generalState
GeneralState generalState
Definition: optionstate.h:326
Settings::page_font
@ page_font
Definition: optionstate.h:25
Settings::CodeGenerationState::forceSections
bool forceSections
Definition: optionstate.h:167
UmbrelloSettings::setVirtualDestructors
static void setVirtualDestructors(bool v)
Definition: umbrellosettings.h:2282
Settings::OptionState::save
void save()
Definition: optionstate.cpp:387
UmbrelloSettings::setPackageIsNamespace
static void setPackageIsNamespace(bool v)
Definition: umbrellosettings.h:2058
Settings::CodeGenerationState::JavaCodeGenerationState
Definition: optionstate.h:227
UmbrelloSettings::setDiagram
static void setDiagram(Uml::DiagramType::Enum v)
Definition: umbrellosettings.h:413
UmbrelloSettings::stringClassName
static QString stringClassName()
Definition: umbrellosettings.h:2124
Settings::CodeGenerationState::DCodeGenerationState::autoGenerateAttributeAccessors
bool autoGenerateAttributeAccessors
Definition: optionstate.h:222
UmbrelloSettings::undo
static bool undo()
Definition: umbrellosettings.h:91
Settings::UIState::backgroundColor
QColor backgroundColor
Definition: optionstate.h:93
Settings::GeneralState::load
void load()
Definition: optionstate.cpp:20
UmbrelloSettings::setCreateArtifacts
static void setCreateArtifacts(bool v)
Definition: umbrellosettings.h:1463
Settings::CodeGenerationState::defaultAttributeAccessorScope
Uml::Visibility::Enum defaultAttributeAccessorScope
Definition: optionstate.h:165
UmbrelloSettings::packageIsNamespace
static bool packageIsNamespace()
Definition: umbrellosettings.h:2068
Settings::page_UI
@ page_UI
Definition: optionstate.h:26
optionstate.h
UmbrelloSettings::newcodegen
static bool newcodegen()
Definition: umbrellosettings.h:147
Settings::CodeGenerationState::CPPCodeGenerationState::stringClassName
QString stringClassName
Definition: optionstate.h:199
Settings::OptionState::codeGenerationState
CodeGenerationState codeGenerationState
Definition: optionstate.h:331
UmbrelloSettings::resolveDependencies
static bool resolveDependencies()
Definition: umbrellosettings.h:1501
CodeGenerationPolicy::CommentStyle
CommentStyle
Definition: codegenerationpolicy.h:50
UmbrelloSettings::publicAccessors
static bool publicAccessors()
Definition: umbrellosettings.h:2096
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:362
Settings::OptionState::OptionState
OptionState()
Definition: optionstate.cpp:372
Settings::CodeGenerationState::RubyCodeGenerationState::autoGenerateAssocAccessors
bool autoGenerateAssocAccessors
Definition: optionstate.h:250
Settings::CodeGenerationState::CPPCodeGenerationState::packageIsNamespace
bool packageIsNamespace
Definition: optionstate.h:197
Settings::AutoLayoutState::dotPath
QString dotPath
path to dot executable
Definition: optionstate.h:294
Settings::UIState::lineColor
QColor lineColor
Definition: optionstate.h:89
Settings::LayoutTypeState::save
void save()
Settings::CodeImportState::CodeImportState
CodeImportState()
Definition: optionstate.h:261
Settings::CodeGenerationState::CPPCodeGenerationState::stringClassNameInclude
QString stringClassNameInclude
Definition: optionstate.h:200
UmbrelloSettings::showAttribAssocs
static bool showAttribAssocs()
Definition: umbrellosettings.h:955
Settings::UIState::gridDotColor
QColor gridDotColor
Definition: optionstate.h:94
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
UmbrelloSettings::showPackage
static bool showPackage()
Definition: umbrellosettings.h:899
Settings::CodeGenerationState::outputDirectory
QDir outputDirectory
Definition: optionstate.h:174
Settings::CodeGenerationState::CPPCodeGenerationState::docToolTag
QString docToolTag
Definition: optionstate.h:205
Settings::GeneralState::GeneralState
GeneralState()
Definition: optionstate.h:36
Settings::GeneralState::angularlines
bool angularlines
Definition: optionstate.h:59
Settings::GeneralState::autosave
bool autosave
Definition: optionstate.h:62
Settings::CodeGenerationState::DCodeGenerationState::buildANTDocument
bool buildANTDocument
Definition: optionstate.h:224
UmbrelloSettings::setInlineOps
static void setInlineOps(bool v)
Definition: umbrellosettings.h:2030
Settings::CodeGenerationState::RubyCodeGenerationState::autoGenerateAttributeAccessors
bool autoGenerateAttributeAccessors
Definition: optionstate.h:249
UmbrelloSettings::setAutoGenerateAttributeAccessorsJava
static void setAutoGenerateAttributeAccessorsJava(bool v)
Definition: umbrellosettings.h:2506
UmbrelloSettings::dotPath
static QString dotPath()
Definition: umbrellosettings.h:2684
UmbrelloSettings::setVectorIncludeIsGlobal
static void setVectorIncludeIsGlobal(bool v)
Definition: umbrellosettings.h:2254
Settings::OptionState::saveToXMI1
void saveToXMI1(QDomElement &element)
Definition: optionstate.cpp:402
UmbrelloSettings::setGetterWithGetPrefix
static void setGetterWithGetPrefix(bool v)
Definition: umbrellosettings.h:2310
UmbrelloSettings::setShowAttribAssocs
static void setShowAttribAssocs(bool v)
Definition: umbrellosettings.h:945
Settings::OptionState::autoLayoutState
AutoLayoutState autoLayoutState
Definition: optionstate.h:333
UmbrelloSettings::setDotPath
static void setDotPath(const QString &v)
Definition: umbrellosettings.h:2674
Uml::LayoutType::Direct
@ Direct
Definition: basictypes.h:146
Settings::CodeGenerationState::load
void load()
Definition: optionstate.cpp:272
Settings::CodeGenerationState::modnamePolicy
CodeGenerationPolicy::ModifyNamePolicy modnamePolicy
Definition: optionstate.h:173
UmbrelloSettings::virtualDestructors
static bool virtualDestructors()
Definition: umbrellosettings.h:2292
Settings::UIState
Definition: optionstate.h:73
UmbrelloSettings::gridDotColor
static QColor gridDotColor()
Definition: umbrellosettings.h:759
Settings::UIState::useFillColor
bool useFillColor
Definition: optionstate.h:87
Settings::ClassState::showOpSig
bool showOpSig
Definition: optionstate.h:126
UmbrelloSettings::autoGenerateAttributeAccessorsJava
static bool autoGenerateAttributeAccessorsJava()
Definition: umbrellosettings.h:2516
Settings::UIState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Definition: optionstate.cpp:198
basictypes.h
Settings::LayoutTypeState::load
void load()
codegenerationpolicy.h
Settings::AutoLayoutState::autoDotPath
bool autoDotPath
determine path to dot executable automatically
Definition: optionstate.h:293
CodeGenerationPolicy::OverwritePolicy
OverwritePolicy
Definition: codegenerationpolicy.h:46
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
Settings::GeneralState::uml2
bool uml2
Definition: optionstate.h:70
UmbrelloSettings::vectorIncludeIsGlobal
static bool vectorIncludeIsGlobal()
Definition: umbrellosettings.h:2264
UmbrelloSettings::setAutosavesuffix
static void setAutosavesuffix(const QString &v)
Definition: umbrellosettings.h:357
Settings::UIState::saveToXMI1
void saveToXMI1(QDomElement &element)
Definition: optionstate.cpp:180
UmbrelloSettings::setShowAttSig
static void setShowAttSig(bool v)
Definition: umbrellosettings.h:1001
UmbrelloSettings::setRemovePrefixFromAccessorMethods
static void setRemovePrefixFromAccessorMethods(bool v)
Definition: umbrellosettings.h:2338
Uml::ProgrammingLanguage::Cpp
@ Cpp
Definition: basictypes.h:274
Settings::ClassState::showOps
bool showOps
Definition: optionstate.h:123
UmbrelloSettings::autoDotPath
static bool autoDotPath()
Definition: umbrellosettings.h:2656
Settings::AutoLayoutState
Definition: optionstate.h:279
Settings::CodeGenerationState::CPPCodeGenerationState::getterWithGetPrefix
bool getterWithGetPrefix
Definition: optionstate.h:208
Settings::ClassState::showStereoType
bool showStereoType
Definition: optionstate.h:124
Settings::UIState::lineWidth
uint lineWidth
Definition: optionstate.h:90
Settings::GeneralState::autosavetime
int autosavetime
Definition: optionstate.h:64
Settings::CodeGenerationState::includeHeadings
bool includeHeadings
Definition: optionstate.h:169
Settings::CodeGenerationState::CPPCodeGenerationState::CPPCodeGenerationState
CPPCodeGenerationState()
Definition: optionstate.h:179
Settings::GeneralState::footerPrinting
bool footerPrinting
Definition: optionstate.h:61
UmbrelloSettings::setLineColor
static void setLineColor(const QColor &v)
Definition: umbrellosettings.h:581
UmbrelloSettings::showVisibility
static bool showVisibility()
Definition: umbrellosettings.h:815
Settings::CodeImportState
Definition: optionstate.h:259
UmbrelloSettings::setFillColor
static void setFillColor(const QColor &v)
Definition: umbrellosettings.h:553
Settings::UIState::load
void load()
Definition: optionstate.cpp:152
UmbrelloSettings::setTabdiagrams
static void setTabdiagrams(bool v)
Definition: umbrellosettings.h:109
Settings::CodeGenerationState::autoGenEmptyConstructors
bool autoGenEmptyConstructors
Definition: optionstate.h:162
Settings::CodeGenerationState::CPPCodeGenerationState::removePrefixFromAccessorMethods
bool removePrefixFromAccessorMethods
Definition: optionstate.h:209
CodeGenerationPolicy::ModifyNamePolicy
ModifyNamePolicy
Definition: codegenerationpolicy.h:47
UmbrelloSettings::setAutoGenAccessors
static void setAutoGenAccessors(bool v)
Definition: umbrellosettings.h:1946
UmbrelloSettings::uiFont
static QFont uiFont()
Definition: umbrellosettings.h:703
Settings::GeneralState::lastFile
QString lastFile
Definition: optionstate.h:69
UmbrelloSettings::autoGenerateAttributeAccessorsD
static bool autoGenerateAttributeAccessorsD()
Definition: umbrellosettings.h:2432
UmbrelloSettings::setShowPublicOnly
static void setShowPublicOnly(bool v)
Definition: umbrellosettings.h:973
UmbrelloSettings::inlineOps
static bool inlineOps()
Definition: umbrellosettings.h:2040
UmbrelloSettings::setGridDotColor
static void setGridDotColor(const QColor &v)
Definition: umbrellosettings.h:749
Uml
Definition: basictypes.cpp:37
Settings::CodeGenerationState::RubyCodeGenerationState
Definition: optionstate.h:241
UmbrelloSettings::setDefaultOperationScope
static void setDefaultOperationScope(Uml::Visibility::Enum v)
Definition: umbrellosettings.h:1085
Settings::page_general
@ page_general
Definition: optionstate.h:24
Settings::CodeGenerationState::DCodeGenerationState
Definition: optionstate.h:213
Settings::CodeViewerState::save
void save()
Definition: codeviewerstate.cpp:33
UmbrelloSettings::setStringIncludeIsGlobal
static void setStringIncludeIsGlobal(bool v)
Definition: umbrellosettings.h:2170
Settings::CodeGenerationState::commentStyle
CodeGenerationPolicy::CommentStyle commentStyle
Definition: optionstate.h:163
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
Settings
Definition: codeviewerstate.cpp:15
Settings::LayoutTypeState
Definition: optionstate.h:298
UmbrelloSettings::setUml2
static void setUml2(bool v)
Definition: umbrellosettings.h:497
Settings::OptionState
Definition: optionstate.h:314
UmbrelloSettings::defaultAttributeScope
static Uml::Visibility::Enum defaultAttributeScope()
Definition: umbrellosettings.h:1067
Settings::CodeGenerationState::DCodeGenerationState::DCodeGenerationState
DCodeGenerationState()
Definition: optionstate.h:215
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:81
Settings::GeneralState::autosavesuffix
QString autosavesuffix
Text input field for suffix of autosave.
Definition: optionstate.h:65
Settings::OptionState::classState
ClassState classState
Definition: optionstate.h:329
Settings::CodeGenerationState::CPPCodeGenerationState::inlineAccessors
bool inlineAccessors
Definition: optionstate.h:195
Settings::CodeGenerationState::CPPCodeGenerationState::vectorClassNameInclude
QString vectorClassNameInclude
Definition: optionstate.h:203
Settings::CodeGenerationState::cppCodeGenerationState
CPPCodeGenerationState cppCodeGenerationState
Definition: optionstate.h:253
Settings::AutoLayoutState::AutoLayoutState
AutoLayoutState()
Definition: optionstate.h:281
Settings::AutoLayoutState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
UmbrelloSettings::setAutosave
static void setAutosave(bool v)
Definition: umbrellosettings.h:249
UmbrelloSettings::setAngularlines
static void setAngularlines(bool v)
Definition: umbrellosettings.h:165
UmbrelloSettings::angularlines
static bool angularlines()
Definition: umbrellosettings.h:175
UmbrelloSettings::setClassMemberPrefix
static void setClassMemberPrefix(const QString &v)
Definition: umbrellosettings.h:1974
UmbrelloSettings::setStringClassName
static void setStringClassName(const QString &v)
Definition: umbrellosettings.h:2114
UmbrelloSettings::showPublicOnly
static bool showPublicOnly()
Definition: umbrellosettings.h:983
UmbrelloSettings::footerPrinting
static bool footerPrinting()
Definition: umbrellosettings.h:231
Settings::OptionState::load
void load()
Definition: optionstate.cpp:376
Settings::GeneralState
Definition: optionstate.h:34
UmbrelloSettings::setLineWidth
static void setLineWidth(uint v)
Definition: umbrellosettings.h:609
UmbrelloSettings::layoutType
static Uml::LayoutType::Enum layoutType()
Definition: umbrellosettings.h:203
Settings::page_codeimport
@ page_codeimport
Definition: optionstate.h:28
CodeGenerationPolicy::NewLineType
NewLineType
Definition: codegenerationpolicy.h:48
UmbrelloSettings::setShowOps
static void setShowOps(bool v)
Definition: umbrellosettings.h:861
Settings::CodeGenerationState::CPPCodeGenerationState::vectorIncludeIsGlobal
bool vectorIncludeIsGlobal
Definition: optionstate.h:206
codeviewerstate.h
Settings::GeneralState::defaultLanguage
Uml::ProgrammingLanguage::Enum defaultLanguage
Definition: optionstate.h:68
UmbrelloSettings::time
static int time()
Definition: umbrellosettings.h:299
Settings::page_codeview
@ page_codeview
Definition: optionstate.h:30
UmbrelloSettings::setDefaultLanguage
static void setDefaultLanguage(Uml::ProgrammingLanguage::Enum v)
Definition: umbrellosettings.h:441
Settings::OptionState::instance
static OptionState & instance()
Definition: optionstate.cpp:422
UmbrelloSettings::autoGenAccessors
static bool autoGenAccessors()
Definition: umbrellosettings.h:1956
Settings::CodeGenerationState::JavaCodeGenerationState::buildANTDocument
bool buildANTDocument
Definition: optionstate.h:238
UmbrelloSettings::setDocToolTag
static void setDocToolTag(const QString &v)
Definition: umbrellosettings.h:2394
UmbrelloSettings::backgroundColor
static QColor backgroundColor()
Definition: umbrellosettings.h:731
Settings::GeneralState::save
void save()
Definition: optionstate.cpp:52
UmbrelloSettings::setAutoGenerateAttributeAccessorsRuby
static void setAutoGenerateAttributeAccessorsRuby(bool v)
Definition: umbrellosettings.h:2590
UmbrelloSettings::setDefaultAttributeScope
static void setDefaultAttributeScope(Uml::Visibility::Enum v)
Definition: umbrellosettings.h:1057
Settings::CodeGenerationState::defaultAssocFieldScope
Uml::Visibility::Enum defaultAssocFieldScope
Definition: optionstate.h:164
Uml::DiagramType::Undefined
@ Undefined
Definition: basictypes.h:80
Settings::GeneralState::time
int time
old autosave time, kept for compatibility
Definition: optionstate.h:63
UmbrelloSettings::setPublicAccessors
static void setPublicAccessors(bool v)
Definition: umbrellosettings.h:2086
Settings::CodeGenerationState::JavaCodeGenerationState::autoGenerateAttributeAccessors
bool autoGenerateAttributeAccessors
Definition: optionstate.h:236
UmbrelloSettings::showAttSig
static bool showAttSig()
Definition: umbrellosettings.h:1011
Settings::CodeGenerationState::CPPCodeGenerationState::stringIncludeIsGlobal
bool stringIncludeIsGlobal
Definition: optionstate.h:201
Settings::AutoLayoutState::save
void save()
Definition: optionstate.cpp:355
Settings::Page
Page
Definition: optionstate.h:23
UmbrelloSettings::defaultLanguage
static Uml::ProgrammingLanguage::Enum defaultLanguage()
Definition: umbrellosettings.h:451
Settings::CodeGenerationState::forceDoc
bool forceDoc
Definition: optionstate.h:166
UmbrelloSettings::setInlineAccessors
static void setInlineAccessors(bool v)
Definition: umbrellosettings.h:2002
UmbrelloSettings::setAutoGenerateAssocAccessorsD
static void setAutoGenerateAssocAccessorsD(bool v)
Definition: umbrellosettings.h:2450
Settings::OptionState::codeViewerState
CodeViewerState codeViewerState
Definition: optionstate.h:330
Settings::GeneralState::undo
bool undo
Definition: optionstate.h:56
Settings::GeneralState::loadlast
bool loadlast
Definition: optionstate.h:66
Settings::UIState::fillColor
QColor fillColor
Definition: optionstate.h:88
Settings::ClassState::showAtts
bool showAtts
Definition: optionstate.h:122
UmbrelloSettings::uml2
static bool uml2()
Definition: umbrellosettings.h:507
Settings::CodeImportState::supportCPP11
bool supportCPP11
Definition: optionstate.h:276
UmbrelloSettings::showAtts
static bool showAtts()
Definition: umbrellosettings.h:843
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:20
Settings::LayoutTypeState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Settings::LayoutTypeState::LayoutTypeState
LayoutTypeState()
Definition: optionstate.h:300
Settings::CodeViewerState::load
void load()
Definition: codeviewerstate.cpp:17
Settings::ClassState::save
void save()
Definition: optionstate.cpp:84
Settings::CodeGenerationState::CPPCodeGenerationState::virtualDestructors
bool virtualDestructors
Definition: optionstate.h:207
Settings::LayoutTypeState::showExportLayout
Uml::LayoutType::Enum showExportLayout
flag for display export layout
Definition: optionstate.h:311
Settings::CodeImportState::save
void save()
Definition: optionstate.cpp:236
Settings::UIState::UIState
UIState()
Definition: optionstate.h:75
UmbrelloSettings::setTime
static void setTime(int v)
Definition: umbrellosettings.h:277
UmbrelloSettings::showExportLayout
static bool showExportLayout()
Definition: umbrellosettings.h:2712
Settings::CodeGenerationState::dCodeGenerationState
DCodeGenerationState dCodeGenerationState
Definition: optionstate.h:254
UmbrelloSettings::inlineAccessors
static bool inlineAccessors()
Definition: umbrellosettings.h:2012
Settings::CodeGenerationState::rubyCodeGenerationState
RubyCodeGenerationState rubyCodeGenerationState
Definition: optionstate.h:256
UmbrelloSettings::textColor
static QColor textColor()
Definition: umbrellosettings.h:647
Settings::CodeImportState::resolveDependencies
bool resolveDependencies
Definition: optionstate.h:275
Settings::CodeGenerationState::DCodeGenerationState::autoGenerateAssocAccessors
bool autoGenerateAssocAccessors
Definition: optionstate.h:223
Settings::ClassState
Definition: optionstate.h:97
Settings::CodeGenerationState::headingsDirectory
QDir headingsDirectory
Definition: optionstate.h:168
UmbrelloSettings::setNewcodegen
static void setNewcodegen(bool v)
Definition: umbrellosettings.h:137
Settings::CodeGenerationState::JavaCodeGenerationState::autoGenerateAssocAccessors
bool autoGenerateAssocAccessors
Definition: optionstate.h:237
Settings::OptionState::codeImportState
CodeImportState codeImportState
Definition: optionstate.h:332
UmbrelloSettings::setVectorClassNameInclude
static void setVectorClassNameInclude(const QString &v)
Definition: umbrellosettings.h:2226
Settings::CodeGenerationState::JavaCodeGenerationState::JavaCodeGenerationState
JavaCodeGenerationState()
Definition: optionstate.h:229
UmbrelloSettings::docToolTag
static QString docToolTag()
Definition: umbrellosettings.h:2404
Settings::CodeGenerationState::save
void save()
Definition: optionstate.cpp:305
Settings::CodeGenerationState::CPPCodeGenerationState::vectorClassName
QString vectorClassName
Definition: optionstate.h:202
UmbrelloSettings::setStringClassNameInclude
static void setStringClassNameInclude(const QString &v)
Definition: umbrellosettings.h:2142
UmbrelloSettings::setShowVisibility
static void setShowVisibility(bool v)
Definition: umbrellosettings.h:805
Settings::CodeGenerationState::CodeGenerationState
CodeGenerationState()
Definition: optionstate.h:137