umbrello: umbrello/uml.h Source File

umbrello 2.38.2 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

uml.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UML_H
7#define UML_H
8
9#include "basictypes.h"
10#include "multipagedialogbase.h"
11
12// kde includes
13#include <kxmlguiwindow.h>
14#include <ksharedconfig.h>
15
16// qt includes
17#include <QPointer>
18#include <QUrl>
19
20// forward declaration of the UML classes
21class BirdView;
22class BirdViewDockWidget;
23class CodeDocument;
24class CodeGenerator;
25class CodeGenerationPolicy;
26class CodeGenPolicyExt;
27class DocWindow;
28class UMLAppPrivate;
29class UMLClassifier;
30class UMLDoc;
31class UMLListView;
32class UMLView;
33class WorkToolBar;
34class SettingsDialog;
35class UMLViewImageExporterAll;
36class RefactoringAssistant;
37class XhtmlGenerator;
38class StatusBarToolButton;
39class DiagramPrintPage;
40
41// KDE forward declarations
42class KActionMenu;
43class KRecentFilesAction;
44class KToggleAction;
45class KTabWidget;
46class QMenu;
47class KAction;
48
49// Qt forward declarations
50class QStackedWidget;
51class QToolButton;
52class QDockWidget;
53class QVBoxLayout;
54class QKeyEvent;
55class QMenu;
56class QMimeData;
57class QPrinter;
58class QUndoCommand;
59class QUndoView;
60class QUndoStack;
61class QPushButton;
62class QLabel;
63class QListWidget;
64class QSlider;
65
84 class UMLApp : public KXmlGuiWindow
85{
86 Q_OBJECT
87public:
88 explicit UMLApp(QWidget* parent = 0);
89 ~UMLApp();
90
91 void setup();
92
93 static UMLApp* app();
94
95 void openDocumentFile(const QUrl& url=QUrl());
96
97 void newDocument();
98
99 UMLDoc *document() const;
100
101 UMLListView* listView() const;
102 WorkToolBar* workToolBar() const;
103 DocWindow * docWindow() const;
104 QListWidget *logWindow() const;
105 bool logToConsole() const;
106 void log(const QString& s);
107 void logDebug(const QString& s);
108 void logInfo(const QString& s);
109 void logWarn(const QString& s);
110 void logError(const QString& s);
111
112 QCursor defaultCursor() const;
113
114 void setModified(bool _m);
115
116 void enablePrint(bool enable);
117
118 bool isPasteState() const;
119 bool isCutCopyState() const;
120
121 bool isUndoEnabled() const;
122 void enableUndo(bool enable);
123
124 bool isUndoActionEnabled() const;
125 void enableUndoAction(bool enable);
126
127 bool isRedoActionEnabled() const;
128 void enableRedoAction(bool enable);
129
130 bool isSimpleCodeGeneratorActive() const;
131
132 void setGenerator(CodeGenerator* gen, bool giveWarning = true);
133 CodeGenerator* setGenerator(Uml::ProgrammingLanguage::Enum pl);
134 CodeGenerator* generator() const;
135
136 CodeGenerator* createGenerator();
137 void initGenerator();
138
139 void refactor(UMLClassifier* classifier);
140
141 void viewCodeDocument(UMLClassifier* classifier);
142
143 void setDiagramMenuItemsState(bool bState);
144
145 QWidget* mainViewWidget() const;
146
147 void setCurrentView(UMLView* view, bool updateTreeView = true);
148 UMLView* currentView() const;
149
150 void setImageMimeType(const QString& mimeType);
151 QString imageMimeType() const;
152
153 bool editCutCopy(bool bFromView);
154
155 QTabWidget *tabWidget();
156
157 QString statusBarMsg() const;
158
159 CodeGenerationPolicy *commonPolicy() const;
160
161 void setPolicyExt(CodeGenPolicyExt *policy);
162 CodeGenPolicyExt *policyExt() const;
163
164 void clearUndoStack();
165
166 void undo();
167 void redo();
168
169 void executeCommand(QUndoCommand* cmd);
170
171 void beginMacro(const QString & text);
172 void endMacro();
173
174 void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl);
175 Uml::ProgrammingLanguage::Enum activeLanguage() const;
176 Uml::ProgrammingLanguage::Enum defaultLanguage() const;
177
178 bool activeLanguageIsCaseSensitive() const;
179
180 QString activeLanguageScopeSeparator() const;
181
182 KConfig* config();
183 void importFiles(QStringList& fileList, const QString &rootPath = QString());
184
185 static bool shuttingDown();
186
187protected:
188 virtual void keyPressEvent(QKeyEvent* e);
189 virtual void keyReleaseEvent(QKeyEvent* e);
190
191 virtual void customEvent(QEvent* e);
192
193 void handleCursorKeyReleaseEvent(QKeyEvent* e);
194
195 void saveOptions();
196 void readOptions();
197
198 void initActions();
199 void initStatusBar();
200 void initView();
201
202 virtual bool queryClose();
203
204 virtual void saveProperties(KConfigGroup & cfg);
205 virtual void readProperties(const KConfigGroup & cfg);
206
207 void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage);
208
209public slots:
210 void slotExecGenerationWizard();
211 void slotImportingWizard();
212
213 void slotFileNew();
214 void slotFileOpen();
215
216 void slotFileOpenRecent(const QUrl& url);
217 void slotFileSave();
218 bool slotFileSaveAs();
219 void slotFileClose();
220 bool slotPrintSettings();
221 void slotPrintPreview();
222 void slotPrintPreviewPaintRequested(QPrinter *printer);
223 void slotFilePrint();
224 void slotFileQuit();
225 void slotFileExportDocbook();
226 void slotFileExportXhtml();
227 void slotFind();
228 void slotFindNext();
229 void slotFindPrevious();
230 void slotEditCut();
231 void slotEditCopy();
232 void slotEditPaste();
233 void slotStatusMsg(const QString &text);
234 void slotClassDiagram();
235 void slotObjectDiagram();
236 void slotSequenceDiagram();
237 void slotCollaborationDiagram();
238 void slotUseCaseDiagram();
239 void slotStateDiagram();
240 void slotActivityDiagram();
241 void slotComponentDiagram();
242 void slotDeploymentDiagram();
243 void slotEntityRelationshipDiagram();
244 void slotAlignLeft();
245 void slotAlignRight();
246 void slotAlignTop();
247 void slotAlignBottom();
248 void slotAlignVerticalMiddle();
249 void slotAlignHorizontalMiddle();
250 void slotAlignVerticalDistribute();
251 void slotAlignHorizontalDistribute();
252 void slotClipDataChanged();
253 void slotCopyChanged();
254 void slotPrefs(MultiPageDialogBase::PageType page = MultiPageDialogBase::GeneralPage);
255 void slotApplyPrefs();
256 void slotImportClass();
257 void slotImportProject();
258 void slotUpdateViews();
259 void slotShowTreeView(bool state);
260 void slotShowDebugView(bool state);
261 void slotShowDocumentationView(bool state);
262 void slotShowCmdHistoryView(bool state);
263 void slotShowLogView(bool state);
264 void slotShowBirdView(bool state);
265 void slotCurrentViewClearDiagram();
266 void slotCurrentViewToggleSnapToGrid();
267 void slotCurrentViewToggleShowGrid();
268 void slotCurrentViewExportImage();
269 void slotViewsExportImages();
270 void slotCurrentProperties();
271 void slotClassWizard();
272 void slotAddDefaultDatatypes();
273 void slotCurrentViewChanged();
274 void slotSnapToGridToggled(bool gridOn);
275 void slotShowGridToggled(bool gridOn);
276 void slotSelectAll();
277 void slotDeleteSelected();
278 void slotDeleteDiagram();
279 void slotCloseDiagram(int index);
280 void slotGenerateAllCode();
281
282 void slotSetZoom(QAction* action);
283 void slotZoomSliderMoved(int value);
284 void slotZoomFit();
285 void slotZoom100();
286 void slotZoomOut();
287 void slotZoomIn();
288
289 void slotBirdViewChanged(const QPointF& newCenter);
290
291 void setupZoomMenu();
292
293 void slotEditUndo();
294 void slotEditRedo();
295
296 void slotTabChanged(int index);
297 void slotChangeTabLeft();
298 void slotChangeTabRight();
299 void slotMoveTabLeft();
300 void slotMoveTabRight();
301
302 void slotXhtmlDocGenerationFinished(bool status);
303 bool slotOpenFileInEditor(const QUrl &file, int startCursor = 0, int endCursor = 0);
304
305private slots:
306 void setLang_actionscript();
307 void setLang_ada();
308 void setLang_cpp();
309 void setLang_csharp();
310 void setLang_d();
311 void setLang_idl();
312 void setLang_java();
313 void setLang_javascript();
314 void setLang_mysql();
315 void setLang_pascal();
316 void setLang_perl();
317 void setLang_php();
318 void setLang_php5();
319 void setLang_postgresql();
320 void setLang_python();
321 void setLang_ruby();
322 void setLang_sql();
323 void setLang_tcl();
324 void setLang_vala();
325 void setLang_xmlschema();
326 void setLang_none();
327 void slotDiagramPopupMenu(const QPoint& point);
328
329private:
330 static UMLApp* s_instance;
331 UMLAppPrivate *m_d;
332
333 QMenu* findMenu(const QString &name);
334
335 QAction* createZoomAction(int zoom, int currentZoom);
336 void setZoom(int zoom, bool withView = true);
337
338 void resetStatusMsg();
339
340 void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char* name, const char* action);
341
342 static bool canDecode(const QMimeData* mimeSource);
343
344 void readOptionState() const;
345
346 void initClip();
347 void initSavedCodeGenerators();
348
349 void createDiagram(Uml::DiagramType::Enum type);
350
351 void createBirdView(UMLView* view);
352
353 QMenu* m_langSelect;
354 QMenu* m_zoomSelect;
355
356 Uml::ProgrammingLanguage::Enum m_activeLanguage;
357 CodeGenerator* m_codegen;
358 CodeGenerationPolicy* m_commoncodegenpolicy;
359 CodeGenPolicyExt* m_policyext;
360 // Only used for new code generators ({Cpp, Java, Ruby, D}CodeGenerator).
361
362 KSharedConfigPtr m_config;
363
370 QPointer<UMLView> m_view;
371
377 UMLDoc* m_doc;
378
379 UMLListView* m_listView;
380
381 QDockWidget* m_mainDock;
382 QDockWidget* m_listDock;
383 QDockWidget* m_debugDock;
384 QDockWidget* m_documentationDock;
385 QDockWidget* m_cmdHistoryDock;
386 QDockWidget* m_propertyDock;
387 QDockWidget* m_logDock;
388 BirdViewDockWidget* m_birdViewDock;
389
390 DocWindow* m_docWindow;
391 BirdView* m_birdView;
392 QUndoView* m_pQUndoView;
393 RefactoringAssistant* m_refactoringAssist;
394
395 // KAction pointers to enable/disable actions
396 KRecentFilesAction* fileOpenRecent;
397 QAction* printPreview;
398 QAction* filePrint;
399 QAction* editCut;
400 QAction* editCopy;
401 QAction* editPaste;
402 QAction* editUndo;
403 QAction* editRedo;
404
405 QAction* viewShowTree;
406 QAction* viewShowDebug;
407 QAction* viewShowDoc;
408 QAction* viewShowLog;
409 QAction* viewShowCmdHistory;
410 QAction* viewShowBirdView;
411
412 KActionMenu* newDiagram;
413 QAction* viewClearDiagram;
414
415 KToggleAction* viewSnapToGrid;
416 KToggleAction* viewShowGrid;
417 QAction* viewExportImage;
418 QAction* viewProperties;
419
420 QAction* zoom100Action;
421
422 QAction* m_langAct[Uml::ProgrammingLanguage::Reserved + 1];
423 QAction* deleteSelectedWidget;
424 QAction* deleteDiagram;
425 QToolButton* m_newSessionButton;
426 WorkToolBar* m_toolsbar;
427 QTimer* m_clipTimer;
428 QTimer* m_copyTimer;
429
430 bool m_loading;
431
436 QStackedWidget* m_viewStack;
437
442 QTabWidget* m_tabWidget;
443
449 QVBoxLayout* m_layout;
450
451 QString m_imageMimeType;
452
453 SettingsDialog* m_settingsDialog;
454
455 UMLViewImageExporterAll* m_imageExporterAll;
456
460 QLabel* m_zoomValueLbl;
461 QWidget* m_defaultZoomWdg;
462 QPushButton* m_pZoomOutPB;
463 QPushButton* m_pZoomInPB;
464 StatusBarToolButton* m_pZoomFitSBTB;
465 StatusBarToolButton* m_pZoomFullSBTB;
466 QSlider* m_pZoomSlider;
467 QLabel* m_statusBarMessage;
471 XhtmlGenerator* m_xhtmlGenerator;
472
473 QUndoStack* m_pUndoStack;
474 bool m_undoEnabled;
475
476 bool m_hasBegunMacro;
477
478 QPointer<DiagramPrintPage> m_printSettings;
479 QPrinter *m_printer;
480 static bool s_shuttingDown;
481
482signals:
483 void sigCutSuccessful();
484
485 friend class UMLAppPrivate;
486 friend class UMLView;
487};
488
489#define logDebug0(s) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
490 UMLApp::app()->logDebug(QStringLiteral(s))
491#define logInfo0(s) UMLApp::app()->logInfo(QStringLiteral(s))
492#define logWarn0(s) UMLApp::app()->logWarn(QStringLiteral(s))
493#define logError0(s) UMLApp::app()->logError(QStringLiteral(s))
494
495#define logDebug1(s, a) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
496 do { QString fmt = QString(QStringLiteral(s)).arg(a); UMLApp::app()->logDebug(fmt); } while (0)
497#define logInfo1(s, a) do { QString fmt = QString(QStringLiteral(s)).arg(a); UMLApp::app()->logInfo(fmt); } while (0)
498#define logWarn1(s, a) do { QString fmt = QString(QStringLiteral(s)).arg(a); UMLApp::app()->logWarn(fmt); } while (0)
499#define logError1(s, a) do { QString fmt = QString(QStringLiteral(s)).arg(a); UMLApp::app()->logError(fmt); } while (0)
500
501#define logDebug2(s, a, b) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
502 do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b); UMLApp::app()->logDebug(fmt); } while (0)
503#define logInfo2(s, a, b) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b); UMLApp::app()->logInfo(fmt); } while (0)
504#define logWarn2(s, a, b) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b); UMLApp::app()->logWarn(fmt); } while (0)
505#define logError2(s, a, b) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b); UMLApp::app()->logError(fmt); } while (0)
506
507#define logDebug3(s, a, b, c) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
508 do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c); UMLApp::app()->logDebug(fmt); } while (0)
509#define logInfo3(s, a, b, c) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c); UMLApp::app()->logInfo(fmt); } while (0)
510#define logWarn3(s, a, b, c) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c); UMLApp::app()->logWarn(fmt); } while (0)
511#define logError3(s, a, b, c) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c); UMLApp::app()->logError(fmt); } while (0)
512
513#define logDebug4(s, a, b, c, d) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
514 do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logDebug(fmt); } while (0)
515#define logInfo4(s, a, b, c, d) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logInfo(fmt); } while (0)
516#define logWarn4(s, a, b, c, d) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logWarn(fmt); } while (0)
517#define logError4(s, a, b, c, d) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logError(fmt); } while (0)
518
519#define logDebug5(s, a, b, c, d, e) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
520 do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \
521 UMLApp::app()->logDebug(fmt); } while (0)
522#define logInfo5(s, a, b, c, d, e) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \
523 UMLApp::app()->logInfo(fmt); } while (0)
524#define logWarn5(s, a, b, c, d, e) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \
525 UMLApp::app()->logWarn(fmt); } while (0)
526#define logError5(s, a, b, c, d, e) do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \
527 UMLApp::app()->logError(fmt); } while (0)
528
529#define logDebug6(s, a, b, c, d, e, f) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
530 do { QString fmt = QString(QStringLiteral(s)).arg(a).arg(b).arg(c).arg(d).arg(e).arg(f); UMLApp::app()->logDebug(fmt); } while (0)
531
532#endif // UML_H
basictypes.h
BirdViewDockWidget
The class BirdViewDockWidget contains the bird view.
Definition: birdview.h:27
BirdView
The class BirdView controls the view of the whole scene.
Definition: birdview.h:51
CodeDocument
Definition: codedocument.h:30
CodeGenPolicyExt
Definition: codegenpolicyext.h:23
CodeGenerationPolicy
Definition: codegenerationpolicy.h:26
CodeGenerator
Definition: codegenerator.h:54
DiagramPrintPage
A print dialog page.
Definition: diagramprintpage.h:33
DocWindow
Definition: docwindow.h:25
MultiPageDialogBase::PageType
PageType
Available page types.
Definition: multipagedialogbase.h:52
MultiPageDialogBase::GeneralPage
@ GeneralPage
Definition: multipagedialogbase.h:59
RefactoringAssistant
Definition: refactoringassistant.h:24
SettingsDialog
Definition: settingsdialog.h:40
StatusBarToolButton
Definition: statusbartoolbutton.h:22
UMLAppPrivate
Definition: umlappprivate.h:50
UMLApp
Definition: uml.h:85
UMLApp::slotClassWizard
void slotClassWizard()
Definition: uml.cpp:2782
UMLApp::slotZoom100
void slotZoom100()
Definition: uml.cpp:736
UMLApp::setImageMimeType
void setImageMimeType(const QString &mimeType)
Definition: uml.cpp:3142
UMLApp::m_debugDock
QDockWidget * m_debugDock
Contains the debug DocWindow widget.
Definition: uml.h:383
UMLApp::slotExecGenerationWizard
void slotExecGenerationWizard()
Definition: uml.cpp:2386
UMLApp::slotSelectAll
void slotSelectAll()
Definition: uml.cpp:2830
UMLApp::enableUndo
void enableUndo(bool enable)
Definition: uml.cpp:2136
UMLApp::slotFilePrint
void slotFilePrint()
Definition: uml.cpp:1488
UMLApp::readProperties
virtual void readProperties(const KConfigGroup &cfg)
Definition: uml.cpp:1181
UMLApp::logDebug
void logDebug(const QString &s)
Definition: uml.cpp:1867
UMLApp::setLang_postgresql
void setLang_postgresql()
Definition: uml.cpp:2461
UMLApp::m_printer
QPrinter * m_printer
print instance
Definition: uml.h:479
UMLApp::setLang_php
void setLang_php()
Definition: uml.cpp:2451
UMLApp::queryClose
virtual bool queryClose()
Definition: uml.cpp:1220
UMLApp::slotCollaborationDiagram
void slotCollaborationDiagram()
Definition: uml.cpp:1693
UMLApp::slotFileClose
void slotFileClose()
Definition: uml.cpp:1388
UMLApp::m_logDock
QDockWidget * m_logDock
Contains the log window widget.
Definition: uml.h:387
UMLApp::docWindow
DocWindow * docWindow() const
Definition: uml.cpp:1825
UMLApp::saveOptions
void saveOptions()
Definition: uml.cpp:1071
UMLApp::m_commoncodegenpolicy
CodeGenerationPolicy * m_commoncodegenpolicy
Definition: uml.h:358
UMLApp::slotSetZoom
void slotSetZoom(QAction *action)
Definition: uml.cpp:778
UMLApp::slotApplyPrefs
void slotApplyPrefs()
Definition: uml.cpp:2048
UMLApp::slotEditCopy
void slotEditCopy()
Definition: uml.cpp:1607
UMLApp::slotCloseDiagram
void slotCloseDiagram(int index)
Definition: uml.cpp:2871
UMLApp::viewExportImage
QAction * viewExportImage
Definition: uml.h:417
UMLApp::slotDeploymentDiagram
void slotDeploymentDiagram()
Definition: uml.cpp:1733
UMLApp::setZoom
void setZoom(int zoom, bool withView=true)
Definition: uml.cpp:763
UMLApp::s_shuttingDown
static bool s_shuttingDown
Definition: uml.h:480
UMLApp::m_documentationDock
QDockWidget * m_documentationDock
Contains the documentation DocWindow widget.
Definition: uml.h:384
UMLApp::workToolBar
WorkToolBar * workToolBar() const
Definition: uml.cpp:1815
UMLApp::viewCodeDocument
void viewCodeDocument(UMLClassifier *classifier)
Definition: uml.cpp:2236
UMLApp::slotFileQuit
void slotFileQuit()
Definition: uml.cpp:1513
UMLApp::slotCopyChanged
void slotCopyChanged()
Definition: uml.cpp:2014
UMLApp::sigCutSuccessful
void sigCutSuccessful()
UMLApp::m_cmdHistoryDock
QDockWidget * m_cmdHistoryDock
Contains the undo/redo viewer widget.
Definition: uml.h:385
UMLApp::slotFind
void slotFind()
Definition: uml.cpp:1398
UMLApp::viewShowDoc
QAction * viewShowDoc
Definition: uml.h:407
UMLApp::slotEditUndo
void slotEditUndo()
Definition: uml.cpp:1564
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: uml.cpp:2297
UMLApp::m_printSettings
QPointer< DiagramPrintPage > m_printSettings
printer diagram settings
Definition: uml.h:478
UMLApp::m_pZoomFullSBTB
StatusBarToolButton * m_pZoomFullSBTB
Definition: uml.h:465
UMLApp::slotAddDefaultDatatypes
void slotAddDefaultDatatypes()
Definition: uml.cpp:2792
UMLApp::statusBarMsg
QString statusBarMsg() const
Definition: uml.cpp:3313
UMLApp::editUndo
QAction * editUndo
Definition: uml.h:402
UMLApp::m_birdView
BirdView * m_birdView
Bird View window.
Definition: uml.h:391
UMLApp::logError
void logError(const QString &s)
Definition: uml.cpp:1907
UMLApp::slotPrintPreviewPaintRequested
void slotPrintPreviewPaintRequested(QPrinter *printer)
Definition: uml.cpp:1480
UMLApp::slotAlignHorizontalDistribute
void slotAlignHorizontalDistribute()
Definition: uml.cpp:1805
UMLApp::viewShowGrid
KToggleAction * viewShowGrid
Definition: uml.h:416
UMLApp::m_newSessionButton
QToolButton * m_newSessionButton
Definition: uml.h:425
UMLApp::initActions
void initActions()
Definition: uml.cpp:326
UMLApp::m_listView
UMLListView * m_listView
Listview shows the current open file.
Definition: uml.h:379
UMLApp::slotMoveTabRight
void slotMoveTabRight()
Definition: uml.cpp:3257
UMLApp::setLang_d
void setLang_d()
Definition: uml.cpp:2416
UMLApp::m_imageMimeType
QString m_imageMimeType
Default mime type to use for image export.
Definition: uml.h:451
UMLApp::setCurrentView
void setCurrentView(UMLView *view, bool updateTreeView=true)
Definition: uml.cpp:3085
UMLApp::setLang_xmlschema
void setLang_xmlschema()
Definition: uml.cpp:2491
UMLApp::beginMacro
void beginMacro(const QString &text)
Definition: uml.cpp:3401
UMLApp::generator
CodeGenerator * generator() const
Definition: uml.cpp:2353
UMLApp::setLang_idl
void setLang_idl()
Definition: uml.cpp:2421
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1051
UMLApp::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *e)
Definition: uml.cpp:3002
UMLApp::slotZoomIn
void slotZoomIn()
Definition: uml.cpp:752
UMLApp::slotFileExportXhtml
void slotFileExportXhtml()
Definition: uml.cpp:1546
UMLApp::slotClassDiagram
void slotClassDiagram()
Definition: uml.cpp:1669
UMLApp::setLang_python
void setLang_python()
Definition: uml.cpp:2466
UMLApp::createGenerator
CodeGenerator * createGenerator()
UMLApp::slotFileSave
void slotFileSave()
Definition: uml.cpp:1320
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2281
UMLApp::slotPrintSettings
bool slotPrintSettings()
Definition: uml.cpp:1432
UMLApp::clearUndoStack
void clearUndoStack()
Definition: uml.cpp:3322
UMLApp::createDiagram
void createDiagram(Uml::DiagramType::Enum type)
Definition: uml.cpp:1659
UMLApp::m_hasBegunMacro
bool m_hasBegunMacro
Macro creation flag.
Definition: uml.h:476
UMLApp::printPreview
QAction * printPreview
Definition: uml.h:397
UMLApp::endMacro
void endMacro()
Definition: uml.cpp:3420
UMLApp::slotAlignRight
void slotAlignRight()
Definition: uml.cpp:1757
UMLApp::executeCommand
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3379
UMLApp::logInfo
void logInfo(const QString &s)
Definition: uml.cpp:1883
UMLApp::isRedoActionEnabled
bool isRedoActionEnabled() const
Definition: uml.cpp:2172
UMLApp::slotMoveTabLeft
void slotMoveTabLeft()
Definition: uml.cpp:3239
UMLApp::m_viewStack
QStackedWidget * m_viewStack
Definition: uml.h:436
UMLApp::m_zoomValueLbl
QLabel * m_zoomValueLbl
Definition: uml.h:460
UMLApp::slotBirdViewChanged
void slotBirdViewChanged(const QPointF &newCenter)
Definition: uml.cpp:3067
UMLApp::m_langAct
QAction * m_langAct[Uml::ProgrammingLanguage::Reserved+1]
Definition: uml.h:422
UMLApp::setDiagramMenuItemsState
void setDiagramMenuItemsState(bool bState)
Definition: uml.cpp:2651
UMLApp::m_pZoomOutPB
QPushButton * m_pZoomOutPB
Definition: uml.h:462
UMLApp::isUndoEnabled
bool isUndoEnabled() const
Definition: uml.cpp:2126
UMLApp::viewProperties
QAction * viewProperties
Definition: uml.h:418
UMLApp::slotClipDataChanged
void slotClipDataChanged()
Definition: uml.cpp:2003
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:306
UMLApp::isCutCopyState
bool isCutCopyState() const
Definition: uml.cpp:2116
UMLApp::m_zoomSelect
QMenu * m_zoomSelect
Popup menu for zoom selection.
Definition: uml.h:354
UMLApp::slotShowDocumentationView
void slotShowDocumentationView(bool state)
Definition: uml.cpp:2563
UMLApp::slotCurrentViewExportImage
void slotCurrentViewExportImage()
Definition: uml.cpp:2616
UMLApp::slotDeleteSelected
void slotDeleteSelected()
Definition: uml.cpp:2838
UMLApp::slotFindNext
void slotFindNext()
Definition: uml.cpp:1414
UMLApp::slotAlignBottom
void slotAlignBottom()
Definition: uml.cpp:1773
UMLApp::logWarn
void logWarn(const QString &s)
Definition: uml.cpp:1895
UMLApp::m_config
KSharedConfigPtr m_config
The configuration object of the application.
Definition: uml.h:362
UMLApp::initClip
void initClip()
Definition: uml.cpp:1959
UMLApp::setLang_mysql
void setLang_mysql()
Definition: uml.cpp:2436
UMLApp::setLang_ruby
void setLang_ruby()
Definition: uml.cpp:2471
UMLApp::m_birdViewDock
BirdViewDockWidget * m_birdViewDock
Contains the bird's eye view.
Definition: uml.h:388
UMLApp::slotEditPaste
void slotEditPaste()
Definition: uml.cpp:1619
UMLApp::slotFindPrevious
void slotFindPrevious()
Definition: uml.cpp:1423
UMLApp::slotAlignLeft
void slotAlignLeft()
Definition: uml.cpp:1749
UMLApp::slotSequenceDiagram
void slotSequenceDiagram()
Definition: uml.cpp:1685
UMLApp::slotAlignVerticalMiddle
void slotAlignVerticalMiddle()
Definition: uml.cpp:1781
UMLApp::viewSnapToGrid
KToggleAction * viewSnapToGrid
Definition: uml.h:415
UMLApp::openDocumentFile
void openDocumentFile(const QUrl &url=QUrl())
Definition: uml.cpp:1035
UMLApp::deleteDiagram
QAction * deleteDiagram
Definition: uml.h:424
UMLApp::m_pZoomFitSBTB
StatusBarToolButton * m_pZoomFitSBTB
Definition: uml.h:464
UMLApp::setLang_javascript
void setLang_javascript()
Definition: uml.cpp:2431
UMLApp::m_copyTimer
QTimer * m_copyTimer
Definition: uml.h:428
UMLApp::setLang_pascal
void setLang_pascal()
Definition: uml.cpp:2441
UMLApp::initSavedCodeGenerators
void initSavedCodeGenerators()
UMLApp::enableUndoAction
void enableUndoAction(bool enable)
Definition: uml.cpp:2162
UMLApp::findMenu
QMenu * findMenu(const QString &name)
Definition: uml.cpp:119
UMLApp::setLang_actionscript
void setLang_actionscript()
Definition: uml.cpp:2396
UMLApp::slotActivityDiagram
void slotActivityDiagram()
Definition: uml.cpp:1717
UMLApp::m_listDock
QDockWidget * m_listDock
Contains the UMLListView tree view.
Definition: uml.h:382
UMLApp::filePrint
QAction * filePrint
Definition: uml.h:398
UMLApp::mainViewWidget
QWidget * mainViewWidget() const
Definition: uml.cpp:3039
UMLApp::slotShowTreeView
void slotShowTreeView(bool state)
Definition: uml.cpp:2551
UMLApp::m_clipTimer
QTimer * m_clipTimer
Definition: uml.h:427
UMLApp::slotObjectDiagram
void slotObjectDiagram()
Definition: uml.cpp:1677
UMLApp::logWindow
QListWidget * logWindow() const
Definition: uml.cpp:1835
UMLApp::enablePrint
void enablePrint(bool enable)
Definition: uml.cpp:1950
UMLApp::editPaste
QAction * editPaste
Definition: uml.h:401
UMLApp::initStatusBar
void initStatusBar()
Definition: uml.cpp:840
UMLApp::m_xhtmlGenerator
XhtmlGenerator * m_xhtmlGenerator
Definition: uml.h:471
UMLApp::isUndoActionEnabled
bool isUndoActionEnabled() const
Definition: uml.cpp:2151
UMLApp::viewShowCmdHistory
QAction * viewShowCmdHistory
Definition: uml.h:409
UMLApp::m_codegen
CodeGenerator * m_codegen
Active code generator.
Definition: uml.h:357
UMLApp::setLang_php5
void setLang_php5()
Definition: uml.cpp:2456
UMLApp::viewShowDebug
QAction * viewShowDebug
Definition: uml.h:406
UMLApp::activeLanguage
Uml::ProgrammingLanguage::Enum activeLanguage() const
Definition: uml.cpp:2528
UMLApp::slotFileNew
void slotFileNew()
Definition: uml.cpp:1234
UMLApp::config
KConfig * config()
Definition: uml.cpp:3437
UMLApp::imageMimeType
QString imageMimeType() const
Definition: uml.cpp:3152
UMLApp::m_imageExporterAll
UMLViewImageExporterAll * m_imageExporterAll
Used to export all the views.
Definition: uml.h:455
UMLApp::m_pQUndoView
QUndoView * m_pQUndoView
Undo / Redo Viewer.
Definition: uml.h:392
UMLApp::editRedo
QAction * editRedo
Definition: uml.h:403
UMLApp::redo
void redo()
Definition: uml.cpp:3355
UMLApp::slotStatusMsg
void slotStatusMsg(const QString &text)
Definition: uml.cpp:1641
UMLApp::setProgLangAction
void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char *name, const char *action)
Definition: uml.cpp:314
UMLApp::slotEntityRelationshipDiagram
void slotEntityRelationshipDiagram()
Definition: uml.cpp:1741
UMLApp::slotDiagramPopupMenu
void slotDiagramPopupMenu(const QPoint &point)
Definition: uml.cpp:2505
UMLApp::slotDeleteDiagram
void slotDeleteDiagram()
Definition: uml.cpp:2862
UMLApp::createBirdView
void createBirdView(UMLView *view)
Definition: uml.cpp:3053
UMLApp::isPasteState
bool isPasteState() const
Definition: uml.cpp:2106
UMLApp::setupZoomMenu
void setupZoomMenu()
Definition: uml.cpp:805
UMLApp::setLang_java
void setLang_java()
Definition: uml.cpp:2426
UMLApp::m_defaultZoomWdg
QWidget * m_defaultZoomWdg
Definition: uml.h:461
UMLApp::initGenerator
void initGenerator()
Definition: uml.cpp:2897
UMLApp::slotStateDiagram
void slotStateDiagram()
Definition: uml.cpp:1709
UMLApp::viewShowBirdView
QAction * viewShowBirdView
Definition: uml.h:410
UMLApp::createZoomAction
QAction * createZoomAction(int zoom, int currentZoom)
Definition: uml.cpp:789
UMLApp::setModified
void setModified(bool _m)
Definition: uml.cpp:1922
UMLApp::canDecode
static bool canDecode(const QMimeData *mimeSource)
Definition: uml.cpp:1982
UMLApp::m_policyext
CodeGenPolicyExt * m_policyext
Active policy extension.
Definition: uml.h:359
UMLApp::slotXhtmlDocGenerationFinished
void slotXhtmlDocGenerationFinished(bool status)
Definition: uml.cpp:3277
UMLApp::m_propertyDock
QDockWidget * m_propertyDock
Contains the property browser widget.
Definition: uml.h:386
UMLApp::slotEditCut
void slotEditCut()
Definition: uml.cpp:1584
UMLApp::slotOpenFileInEditor
bool slotOpenFileInEditor(const QUrl &file, int startCursor=0, int endCursor=0)
Definition: uml.cpp:3295
UMLApp::importFiles
void importFiles(QStringList &fileList, const QString &rootPath=QString())
Definition: uml.cpp:2696
UMLApp::zoom100Action
QAction * zoom100Action
Definition: uml.h:420
UMLApp::setLang_cpp
void setLang_cpp()
Definition: uml.cpp:2406
UMLApp::readOptionState
void readOptionState() const
Definition: uml.cpp:2222
UMLApp::resetStatusMsg
void resetStatusMsg()
Definition: uml.cpp:1650
UMLApp::m_docWindow
DocWindow * m_docWindow
Documentation window.
Definition: uml.h:390
UMLApp::slotChangeTabRight
void slotChangeTabRight()
Definition: uml.cpp:3202
UMLApp::setLang_none
void setLang_none()
Definition: uml.cpp:2496
UMLApp::m_loading
bool m_loading
True if the application is opening an existing document.
Definition: uml.h:430
UMLApp::slotGenerateAllCode
void slotGenerateAllCode()
Definition: uml.cpp:2376
UMLApp::isSimpleCodeGeneratorActive
bool isSimpleCodeGeneratorActive() const
Definition: uml.cpp:2363
UMLApp::listView
UMLListView * listView() const
Definition: uml.cpp:1061
UMLApp::m_langSelect
QMenu * m_langSelect
For selecting the active language.
Definition: uml.h:353
UMLApp::slotCurrentViewChanged
void slotCurrentViewChanged()
Definition: uml.cpp:2800
UMLApp::m_doc
UMLDoc * m_doc
Definition: uml.h:377
UMLApp::undo
void undo()
Definition: uml.cpp:3331
UMLApp::slotPrefs
void slotPrefs(MultiPageDialogBase::PageType page=MultiPageDialogBase::GeneralPage)
Definition: uml.cpp:2029
UMLApp::m_pUndoStack
QUndoStack * m_pUndoStack
UndoStack used to store actions, to provide Undo/Redo feature.
Definition: uml.h:473
UMLApp::slotAlignHorizontalMiddle
void slotAlignHorizontalMiddle()
Definition: uml.cpp:1789
UMLApp::slotZoomFit
void slotZoomFit()
Definition: uml.cpp:705
UMLApp::slotShowBirdView
void slotShowBirdView(bool state)
Definition: uml.cpp:2581
UMLApp::setPolicyExt
void setPolicyExt(CodeGenPolicyExt *policy)
Definition: uml.cpp:2289
UMLApp::slotShowDebugView
void slotShowDebugView(bool state)
Definition: uml.cpp:2557
UMLApp::slotShowCmdHistoryView
void slotShowCmdHistoryView(bool state)
Definition: uml.cpp:2569
UMLApp::handleCursorKeyReleaseEvent
void handleCursorKeyReleaseEvent(QKeyEvent *e)
Definition: uml.cpp:2962
UMLApp::m_settingsDialog
SettingsDialog * m_settingsDialog
The global UML settings dialog.
Definition: uml.h:453
UMLApp::updateLangSelectMenu
void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage)
Definition: uml.cpp:2913
UMLApp::slotFileExportDocbook
void slotFileExportDocbook()
Definition: uml.cpp:1529
UMLApp::setLang_ada
void setLang_ada()
Definition: uml.cpp:2401
UMLApp::slotChangeTabLeft
void slotChangeTabLeft()
Definition: uml.cpp:3172
UMLApp::slotComponentDiagram
void slotComponentDiagram()
Definition: uml.cpp:1725
UMLApp::slotViewsExportImages
void slotViewsExportImages()
Definition: uml.cpp:2624
UMLApp::defaultLanguage
Uml::ProgrammingLanguage::Enum defaultLanguage() const
Definition: uml.cpp:2888
UMLApp::slotFileSaveAs
bool slotFileSaveAs()
Definition: uml.cpp:1337
UMLApp::slotCurrentProperties
void slotCurrentProperties()
Definition: uml.cpp:2637
UMLApp::slotAlignVerticalDistribute
void slotAlignVerticalDistribute()
Definition: uml.cpp:1797
UMLApp::currentView
UMLView * currentView() const
Definition: uml.cpp:3133
UMLApp::setGenerator
void setGenerator(CodeGenerator *gen, bool giveWarning=true)
UMLApp::m_view
QPointer< UMLView > m_view
Definition: uml.h:370
UMLApp::slotCurrentViewToggleShowGrid
void slotCurrentViewToggleShowGrid()
Definition: uml.cpp:2607
UMLApp::slotTabChanged
void slotTabChanged(int index)
Definition: uml.cpp:3161
UMLApp::refactor
void refactor(UMLClassifier *classifier)
Definition: uml.cpp:2268
UMLApp::setLang_vala
void setLang_vala()
Definition: uml.cpp:2486
UMLApp::slotImportClass
void slotImportClass()
Definition: uml.cpp:2726
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: uml.cpp:2519
UMLApp::slotEditRedo
void slotEditRedo()
Definition: uml.cpp:1574
UMLApp::defaultCursor
QCursor defaultCursor() const
UMLApp::slotImportProject
void slotImportProject()
Definition: uml.cpp:2758
UMLApp::fileOpenRecent
KRecentFilesAction * fileOpenRecent
Definition: uml.h:396
UMLApp::m_toolsbar
WorkToolBar * m_toolsbar
Definition: uml.h:426
UMLApp::m_pZoomInPB
QPushButton * m_pZoomInPB
Definition: uml.h:463
UMLApp::m_statusBarMessage
QLabel * m_statusBarMessage
Definition: uml.h:467
UMLApp::saveProperties
virtual void saveProperties(KConfigGroup &cfg)
Definition: uml.cpp:1157
UMLApp::slotZoomSliderMoved
void slotZoomSliderMoved(int value)
Definition: uml.cpp:697
UMLApp::slotSnapToGridToggled
void slotSnapToGridToggled(bool gridOn)
Definition: uml.cpp:2814
UMLApp::setLang_perl
void setLang_perl()
Definition: uml.cpp:2446
UMLApp::enableRedoAction
void enableRedoAction(bool enable)
Definition: uml.cpp:2183
UMLApp::m_refactoringAssist
RefactoringAssistant * m_refactoringAssist
Refactoring assistant.
Definition: uml.h:393
UMLApp::m_d
UMLAppPrivate * m_d
Definition: uml.h:331
UMLApp::activeLanguageScopeSeparator
QString activeLanguageScopeSeparator() const
Definition: uml.cpp:2545
UMLApp::slotAlignTop
void slotAlignTop()
Definition: uml.cpp:1765
UMLApp::~UMLApp
~UMLApp()
Definition: uml.cpp:278
UMLApp::tabWidget
QTabWidget * tabWidget()
Definition: uml.cpp:3303
UMLApp::slotShowLogView
void slotShowLogView(bool state)
Definition: uml.cpp:2575
UMLApp::slotPrintPreview
void slotPrintPreview()
Definition: uml.cpp:1461
UMLApp::initView
void initView()
Definition: uml.cpp:903
UMLApp::slotUseCaseDiagram
void slotUseCaseDiagram()
Definition: uml.cpp:1701
UMLApp::slotFileOpen
void slotFileOpen()
Definition: uml.cpp:1252
UMLApp::log
void log(const QString &s)
Definition: uml.cpp:1855
UMLApp::readOptions
void readOptions()
Definition: uml.cpp:1113
UMLApp::editCut
QAction * editCut
Definition: uml.h:399
UMLApp::m_activeLanguage
Uml::ProgrammingLanguage::Enum m_activeLanguage
Active language.
Definition: uml.h:356
UMLApp::activeLanguageIsCaseSensitive
bool activeLanguageIsCaseSensitive() const
Definition: uml.cpp:2536
UMLApp::customEvent
virtual void customEvent(QEvent *e)
Definition: uml.cpp:2950
UMLApp::slotZoomOut
void slotZoomOut()
Definition: uml.cpp:744
UMLApp::deleteSelectedWidget
QAction * deleteSelectedWidget
Definition: uml.h:423
UMLApp::slotImportingWizard
void slotImportingWizard()
Definition: uml.cpp:2772
UMLApp::m_layout
QVBoxLayout * m_layout
Definition: uml.h:449
UMLApp::setLang_tcl
void setLang_tcl()
Definition: uml.cpp:2481
UMLApp::newDiagram
KActionMenu * newDiagram
Definition: uml.h:412
UMLApp::m_mainDock
QDockWidget * m_mainDock
The widget which shows the diagrams.
Definition: uml.h:381
UMLApp::m_pZoomSlider
QSlider * m_pZoomSlider
Definition: uml.h:466
UMLApp::slotShowGridToggled
void slotShowGridToggled(bool gridOn)
Definition: uml.cpp:2822
UMLApp::slotCurrentViewToggleSnapToGrid
void slotCurrentViewToggleSnapToGrid()
Definition: uml.cpp:2598
UMLApp::editCopy
QAction * editCopy
Definition: uml.h:400
UMLApp::setLang_csharp
void setLang_csharp()
Definition: uml.cpp:2411
UMLApp::viewShowTree
QAction * viewShowTree
Definition: uml.h:405
UMLApp::m_tabWidget
QTabWidget * m_tabWidget
Definition: uml.h:442
UMLApp::slotUpdateViews
void slotUpdateViews()
Definition: uml.cpp:2670
UMLApp::logToConsole
bool logToConsole() const
Definition: uml.cpp:1847
UMLApp::s_instance
static UMLApp * s_instance
The last created instance of this class.
Definition: uml.h:330
UMLApp::editCutCopy
bool editCutCopy(bool bFromView)
Definition: uml.cpp:2197
UMLApp::shuttingDown
static bool shuttingDown()
Definition: uml.cpp:2924
UMLApp::viewShowLog
QAction * viewShowLog
Definition: uml.h:408
UMLApp::keyPressEvent
virtual void keyPressEvent(QKeyEvent *e)
Definition: uml.cpp:2932
UMLApp::slotCurrentViewClearDiagram
void slotCurrentViewClearDiagram()
Definition: uml.cpp:2590
UMLApp::m_undoEnabled
bool m_undoEnabled
Undo enabled flag.
Definition: uml.h:474
UMLApp::slotFileOpenRecent
void slotFileOpenRecent(const QUrl &url)
Definition: uml.cpp:1290
UMLApp::setup
void setup()
Definition: uml.cpp:219
UMLApp::setLang_sql
void setLang_sql()
Definition: uml.cpp:2476
UMLApp::newDocument
void newDocument()
Definition: uml.cpp:3029
UMLApp::viewClearDiagram
QAction * viewClearDiagram
Definition: uml.h:413
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
UMLDoc
Definition: umldoc.h:63
UMLListView
Displays the list view for the program.
Definition: umllistview.h:43
UMLViewImageExporterAll
Definition: umlviewimageexporterall.h:20
UMLView
Definition: umlview.h:30
WorkToolBar
The toolbar that is different for each type of diagram.
Definition: worktoolbar.h:36
XhtmlGenerator
Definition: xhtmlgenerator.h:32
multipagedialogbase.h
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:63
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
Uml::ProgrammingLanguage::Reserved
@ Reserved
Definition: basictypes.h:312