umbrello: umbrello/uml.h Source File

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

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#if QT_VERSION < 0x050000
15#include <kurl.h>
16#endif
17#include <ksharedconfig.h>
18
19// qt includes
20#include <QPointer>
21#if QT_VERSION >= 0x050000
22#include <QUrl>
23#endif
24
25// forward declaration of the UML classes
26class BirdView;
27class BirdViewDockWidget;
28class CodeDocument;
29class CodeGenerator;
30class CodeGenerationPolicy;
31class CodeGenPolicyExt;
32class DocWindow;
33class UMLAppPrivate;
34class UMLClassifier;
35class UMLDoc;
36class UMLListView;
37class UMLView;
38class WorkToolBar;
39class SettingsDialog;
40class UMLViewImageExporterAll;
41class RefactoringAssistant;
42class XhtmlGenerator;
43class StatusBarToolButton;
44class DiagramPrintPage;
45
46// KDE forward declarations
47class KActionMenu;
48class KRecentFilesAction;
49class KToggleAction;
50class KTabWidget;
51class KMenu;
52#if QT_VERSION < 0x050000
53class KUndoStack;
54#endif
55class KAction;
56
57// Qt forward declarations
58class QStackedWidget;
59class QToolButton;
60class QDockWidget;
61class QVBoxLayout;
62class QKeyEvent;
63class QMenu;
64class QMimeData;
65class QPrinter;
66class QUndoCommand;
67class QUndoView;
68#if QT_VERSION >= 0x050000
69class QUndoStack;
70#endif
71class QPushButton;
72class QLabel;
73class QListWidget;
74class QSlider;
75
94 class UMLApp : public KXmlGuiWindow
95{
96 Q_OBJECT
97public:
98 explicit UMLApp(QWidget* parent = 0);
99 ~UMLApp();
100
101 static UMLApp* app();
102
103#if QT_VERSION >= 0x050000
104 void openDocumentFile(const QUrl& url=QUrl());
105#else
106 void openDocumentFile(const KUrl& url=KUrl());
107#endif
108
109 void newDocument();
110
111 UMLDoc *document() const;
112
113 UMLListView* listView() const;
114 WorkToolBar* workToolBar() const;
115 DocWindow * docWindow() const;
116 QListWidget *logWindow() const;
117 bool logToConsole() const;
118 void log(const QString& s);
119 void logDebug(const QString& s);
120 void logInfo(const QString& s);
121 void logWarn(const QString& s);
122 void logError(const QString& s);
123
124 QCursor defaultCursor() const;
125
126 void setModified(bool _m);
127
128 void enablePrint(bool enable);
129
130 bool isPasteState() const;
131 bool isCutCopyState() const;
132
133 bool isUndoEnabled() const;
134 void enableUndo(bool enable);
135
136 bool isUndoActionEnabled() const;
137 void enableUndoAction(bool enable);
138
139 bool isRedoActionEnabled() const;
140 void enableRedoAction(bool enable);
141
142 bool isSimpleCodeGeneratorActive() const;
143
144 void setGenerator(CodeGenerator* gen, bool giveWarning = true);
145 CodeGenerator* setGenerator(Uml::ProgrammingLanguage::Enum pl);
146 CodeGenerator* generator() const;
147
148 CodeGenerator* createGenerator();
149 void initGenerator();
150
151 void refactor(UMLClassifier* classifier);
152
153 void viewCodeDocument(UMLClassifier* classifier);
154
155 void setDiagramMenuItemsState(bool bState);
156
157 QWidget* mainViewWidget() const;
158
159 void setCurrentView(UMLView* view, bool updateTreeView = true);
160 UMLView* currentView() const;
161
162 void setImageMimeType(const QString& mimeType);
163 QString imageMimeType() const;
164
165 bool editCutCopy(bool bFromView);
166
167#if QT_VERSION >= 0x050000
168 QTabWidget *tabWidget();
169#else
170 KTabWidget *tabWidget();
171#endif
172
173 QString statusBarMsg() const;
174
175 CodeGenerationPolicy *commonPolicy() const;
176
177 void setPolicyExt(CodeGenPolicyExt *policy);
178 CodeGenPolicyExt *policyExt() const;
179
180 void clearUndoStack();
181
182 void undo();
183 void redo();
184
185 void executeCommand(QUndoCommand* cmd);
186
187 void beginMacro(const QString & text);
188 void endMacro();
189
190 void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl);
191 Uml::ProgrammingLanguage::Enum activeLanguage() const;
192 Uml::ProgrammingLanguage::Enum defaultLanguage() const;
193
194 bool activeLanguageIsCaseSensitive() const;
195
196 QString activeLanguageScopeSeparator() const;
197
198 KConfig* config();
199 void importFiles(QStringList& fileList, const QString &rootPath = QString());
200
201 static bool shuttingDown();
202
203protected:
204 virtual void keyPressEvent(QKeyEvent* e);
205 virtual void keyReleaseEvent(QKeyEvent* e);
206
207 virtual void customEvent(QEvent* e);
208
209 void handleCursorKeyReleaseEvent(QKeyEvent* e);
210
211 void saveOptions();
212 void readOptions();
213
214 void initActions();
215 void initStatusBar();
216 void initView();
217
218 virtual bool queryClose();
219
220 virtual void saveProperties(KConfigGroup & cfg);
221 virtual void readProperties(const KConfigGroup & cfg);
222
223 void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage);
224
225public slots:
226 void slotExecGenerationWizard();
227 void slotImportingWizard();
228
229 void slotFileNew();
230 void slotFileOpen();
231
232#if QT_VERSION >= 0x050000
233 void slotFileOpenRecent(const QUrl& url);
234#else
235 void slotFileOpenRecent(const KUrl& url);
236#endif
237 void slotFileSave();
238 bool slotFileSaveAs();
239 void slotFileClose();
240 bool slotPrintSettings();
241 void slotPrintPreview();
242 void slotPrintPreviewPaintRequested(QPrinter *printer);
243 void slotFilePrint();
244 void slotFileQuit();
245 void slotFileExportDocbook();
246 void slotFileExportXhtml();
247 void slotFind();
248 void slotFindNext();
249 void slotFindPrevious();
250 void slotEditCut();
251 void slotEditCopy();
252 void slotEditPaste();
253 void slotStatusMsg(const QString &text);
254 void slotClassDiagram();
255 void slotObjectDiagram();
256 void slotSequenceDiagram();
257 void slotCollaborationDiagram();
258 void slotUseCaseDiagram();
259 void slotStateDiagram();
260 void slotActivityDiagram();
261 void slotComponentDiagram();
262 void slotDeploymentDiagram();
263 void slotEntityRelationshipDiagram();
264 void slotAlignLeft();
265 void slotAlignRight();
266 void slotAlignTop();
267 void slotAlignBottom();
268 void slotAlignVerticalMiddle();
269 void slotAlignHorizontalMiddle();
270 void slotAlignVerticalDistribute();
271 void slotAlignHorizontalDistribute();
272 void slotClipDataChanged();
273 void slotCopyChanged();
274 void slotPrefs(MultiPageDialogBase::PageType page = MultiPageDialogBase::GeneralPage);
275 void slotApplyPrefs();
276 void slotImportClass();
277 void slotImportProject();
278 void slotUpdateViews();
279 void slotShowTreeView(bool state);
280 void slotShowDebugView(bool state);
281 void slotShowDocumentationView(bool state);
282 void slotShowCmdHistoryView(bool state);
283 void slotShowLogView(bool state);
284 void slotShowBirdView(bool state);
285 void slotCurrentViewClearDiagram();
286 void slotCurrentViewToggleSnapToGrid();
287 void slotCurrentViewToggleShowGrid();
288 void slotCurrentViewExportImage();
289 void slotViewsExportImages();
290 void slotCurrentProperties();
291 void slotClassWizard();
292 void slotAddDefaultDatatypes();
293 void slotCurrentViewChanged();
294 void slotSnapToGridToggled(bool gridOn);
295 void slotShowGridToggled(bool gridOn);
296 void slotSelectAll();
297 void slotDeleteSelected();
298 void slotDeleteDiagram();
299#if QT_VERSION >= 0x050000
300 void slotCloseDiagram(int index);
301#else
302 void slotCloseDiagram(QWidget* tab);
303#endif
304 void slotGenerateAllCode();
305
306 void slotSetZoom(QAction* action);
307 void slotZoomSliderMoved(int value);
308 void slotZoomFit();
309 void slotZoom100();
310 void slotZoomOut();
311 void slotZoomIn();
312
313 void slotBirdViewChanged(const QPointF& newCenter);
314
315 void setupZoomMenu();
316
317 void slotEditUndo();
318 void slotEditRedo();
319
320#if QT_VERSION >= 0x050000
321 void slotTabChanged(int index);
322#else
323 void slotTabChanged(QWidget* tab);
324#endif
325 void slotChangeTabLeft();
326 void slotChangeTabRight();
327 void slotMoveTabLeft();
328 void slotMoveTabRight();
329
330 void slotXhtmlDocGenerationFinished(bool status);
331 bool slotOpenFileInEditor(const QUrl &file, int startCursor = 0, int endCursor = 0);
332
333private slots:
334 void setLang_actionscript();
335 void setLang_ada();
336 void setLang_cpp();
337 void setLang_csharp();
338 void setLang_d();
339 void setLang_idl();
340 void setLang_java();
341 void setLang_javascript();
342 void setLang_mysql();
343 void setLang_pascal();
344 void setLang_perl();
345 void setLang_php();
346 void setLang_php5();
347 void setLang_postgresql();
348 void setLang_python();
349 void setLang_ruby();
350 void setLang_sql();
351 void setLang_tcl();
352 void setLang_vala();
353 void setLang_xmlschema();
354 void setLang_none();
355#if QT_VERSION >= 0x050000
356 void slotDiagramPopupMenu(const QPoint& point);
357#endif
358
359private:
360 static UMLApp* s_instance;
361 UMLAppPrivate *m_d;
362
363 QMenu* findMenu(const QString &name);
364
365 QAction* createZoomAction(int zoom, int currentZoom);
366 void setZoom(int zoom, bool withView = true);
367
368 void resetStatusMsg();
369
370 void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char* name, const char* action);
371
372 static bool canDecode(const QMimeData* mimeSource);
373
374 void readOptionState() const;
375
376 void initClip();
377 void initSavedCodeGenerators();
378
379 void createDiagram(Uml::DiagramType::Enum type);
380
381 void createBirdView(UMLView* view);
382
383 QMenu* m_langSelect;
384 QMenu* m_zoomSelect;
385
386 Uml::ProgrammingLanguage::Enum m_activeLanguage;
387 CodeGenerator* m_codegen;
388 CodeGenerationPolicy* m_commoncodegenpolicy;
389 CodeGenPolicyExt* m_policyext;
390 // Only used for new code generators ({Cpp, Java, Ruby, D}CodeGenerator).
391
392 KSharedConfigPtr m_config;
393
400 QPointer<UMLView> m_view;
401
407 UMLDoc* m_doc;
408
409 UMLListView* m_listView;
410
411 QDockWidget* m_mainDock;
412 QDockWidget* m_listDock;
413 QDockWidget* m_debugDock;
414 QDockWidget* m_documentationDock;
415 QDockWidget* m_cmdHistoryDock;
416 QDockWidget* m_propertyDock;
417 QDockWidget* m_logDock;
418 BirdViewDockWidget* m_birdViewDock;
419
420 DocWindow* m_docWindow;
421 QListWidget* m_logWindow;
422 BirdView* m_birdView;
423 QUndoView* m_pQUndoView;
424 RefactoringAssistant* m_refactoringAssist;
425
426 // KAction pointers to enable/disable actions
427 KRecentFilesAction* fileOpenRecent;
428 QAction* printPreview;
429 QAction* filePrint;
430 QAction* editCut;
431 QAction* editCopy;
432 QAction* editPaste;
433 QAction* editUndo;
434 QAction* editRedo;
435
436 QAction* viewShowTree;
437 QAction* viewShowDebug;
438 QAction* viewShowDoc;
439 QAction* viewShowLog;
440 QAction* viewShowCmdHistory;
441 QAction* viewShowBirdView;
442
443 KActionMenu* newDiagram;
444 QAction* viewClearDiagram;
445
446 KToggleAction* viewSnapToGrid;
447 KToggleAction* viewShowGrid;
448 QAction* viewExportImage;
449 QAction* viewProperties;
450
451 QAction* zoom100Action;
452
453 QAction* m_langAct[Uml::ProgrammingLanguage::Reserved + 1];
454#if QT_VERSION >= 0x050000
455 QAction* deleteSelectedWidget;
456 QAction* deleteDiagram;
457#else
458 KAction* deleteSelectedWidget;
459 KAction* deleteDiagram;
460#endif
461 QToolButton* m_newSessionButton;
462 KMenu* m_diagramMenu;
463 WorkToolBar* m_toolsbar;
464 QTimer* m_clipTimer;
465 QTimer* m_copyTimer;
466
467 bool m_loading;
468
473 QStackedWidget* m_viewStack;
474
479#if QT_VERSION >= 0x050000
480 QTabWidget* m_tabWidget;
481#else
482 KTabWidget* m_tabWidget;
483#endif
484
490 QVBoxLayout* m_layout;
491
492 QString m_imageMimeType;
493
494 SettingsDialog* m_settingsDialog;
495
496 UMLViewImageExporterAll* m_imageExporterAll;
497
501 QLabel* m_zoomValueLbl;
502 QPushButton* m_pZoomOutPB;
503 QPushButton* m_pZoomInPB;
504 StatusBarToolButton* m_pZoomFitSBTB;
505 StatusBarToolButton* m_pZoomFullSBTB;
506 QSlider* m_pZoomSlider;
507 QLabel* m_statusBarMessage;
511 XhtmlGenerator* m_xhtmlGenerator;
512
513#if QT_VERSION >= 0x050000
514 QUndoStack* m_pUndoStack;
515#else
516 KUndoStack* m_pUndoStack;
517#endif
518 bool m_undoEnabled;
519
520 bool m_hasBegunMacro;
521
522 QPointer<DiagramPrintPage> m_printSettings;
523 QPrinter *m_printer;
524 static bool s_shuttingDown;
525
526signals:
527 void sigCutSuccessful();
528
529 friend class UMLAppPrivate;
530 friend class UMLView;
531};
532
533#define logDebug0(s) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
534 UMLApp::app()->logDebug(QLatin1String(s))
535#define logInfo0(s) UMLApp::app()->logInfo(QLatin1String(s))
536#define logWarn0(s) UMLApp::app()->logWarn(QLatin1String(s))
537#define logError0(s) UMLApp::app()->logError(QLatin1String(s))
538
539#define logDebug1(s, a) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
540 do { QString fmt = QString(QLatin1String(s)).arg(a); UMLApp::app()->logDebug(fmt); } while (0)
541#define logInfo1(s, a) do { QString fmt = QString(QLatin1String(s)).arg(a); UMLApp::app()->logInfo(fmt); } while (0)
542#define logWarn1(s, a) do { QString fmt = QString(QLatin1String(s)).arg(a); UMLApp::app()->logWarn(fmt); } while (0)
543#define logError1(s, a) do { QString fmt = QString(QLatin1String(s)).arg(a); UMLApp::app()->logError(fmt); } while (0)
544
545#define logDebug2(s, a, b) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
546 do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b); UMLApp::app()->logDebug(fmt); } while (0)
547#define logInfo2(s, a, b) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b); UMLApp::app()->logInfo(fmt); } while (0)
548#define logWarn2(s, a, b) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b); UMLApp::app()->logWarn(fmt); } while (0)
549#define logError2(s, a, b) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b); UMLApp::app()->logError(fmt); } while (0)
550
551#define logDebug3(s, a, b, c) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
552 do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c); UMLApp::app()->logDebug(fmt); } while (0)
553#define logInfo3(s, a, b, c) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c); UMLApp::app()->logInfo(fmt); } while (0)
554#define logWarn3(s, a, b, c) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c); UMLApp::app()->logWarn(fmt); } while (0)
555#define logError3(s, a, b, c) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c); UMLApp::app()->logError(fmt); } while (0)
556
557#define logDebug4(s, a, b, c, d) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
558 do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logDebug(fmt); } while (0)
559#define logInfo4(s, a, b, c, d) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logInfo(fmt); } while (0)
560#define logWarn4(s, a, b, c, d) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logWarn(fmt); } while (0)
561#define logError4(s, a, b, c, d) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logError(fmt); } while (0)
562
563#define logDebug5(s, a, b, c, d, e) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
564 do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \
565 UMLApp::app()->logDebug(fmt); } while (0)
566#define logInfo5(s, a, b, c, d, e) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \
567 UMLApp::app()->logInfo(fmt); } while (0)
568#define logWarn5(s, a, b, c, d, e) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \
569 UMLApp::app()->logWarn(fmt); } while (0)
570#define logError5(s, a, b, c, d, e) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \
571 UMLApp::app()->logError(fmt); } while (0)
572
573#define logDebug6(s, a, b, c, d, e, f) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
574 do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d).arg(e).arg(f); UMLApp::app()->logDebug(fmt); } while (0)
575
576#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:47
StatusBarToolButton
Definition: statusbartoolbutton.h:22
UMLAppPrivate
Definition: umlappprivate.h:56
UMLApp
Definition: uml.h:95
UMLApp::slotClassWizard
void slotClassWizard()
Definition: uml.cpp:2894
UMLApp::slotZoom100
void slotZoom100()
Definition: uml.cpp:726
UMLApp::setImageMimeType
void setImageMimeType(const QString &mimeType)
Definition: uml.cpp:3284
UMLApp::m_debugDock
QDockWidget * m_debugDock
Contains the debug DocWindow widget.
Definition: uml.h:413
UMLApp::slotCloseDiagram
void slotCloseDiagram(QWidget *tab)
Definition: uml.cpp:3000
UMLApp::slotExecGenerationWizard
void slotExecGenerationWizard()
Definition: uml.cpp:2488
UMLApp::slotSelectAll
void slotSelectAll()
Definition: uml.cpp:2942
UMLApp::enableUndo
void enableUndo(bool enable)
Definition: uml.cpp:2234
UMLApp::slotFilePrint
void slotFilePrint()
Definition: uml.cpp:1560
UMLApp::readProperties
virtual void readProperties(const KConfigGroup &cfg)
Definition: uml.cpp:1208
UMLApp::logDebug
void logDebug(const QString &s)
Definition: uml.cpp:1961
UMLApp::deleteDiagram
KAction * deleteDiagram
Definition: uml.h:459
UMLApp::slotTabChanged
void slotTabChanged(QWidget *tab)
Definition: uml.cpp:3316
UMLApp::setLang_postgresql
void setLang_postgresql()
Definition: uml.cpp:2563
UMLApp::m_printer
QPrinter * m_printer
print instance
Definition: uml.h:523
UMLApp::setLang_php
void setLang_php()
Definition: uml.cpp:2553
UMLApp::queryClose
virtual bool queryClose()
Definition: uml.cpp:1252
UMLApp::slotCollaborationDiagram
void slotCollaborationDiagram()
Definition: uml.cpp:1787
UMLApp::slotFileClose
void slotFileClose()
Definition: uml.cpp:1452
UMLApp::m_logDock
QDockWidget * m_logDock
Contains the log window widget.
Definition: uml.h:417
UMLApp::docWindow
DocWindow * docWindow() const
Definition: uml.cpp:1919
UMLApp::saveOptions
void saveOptions()
Definition: uml.cpp:1083
UMLApp::m_commoncodegenpolicy
CodeGenerationPolicy * m_commoncodegenpolicy
Definition: uml.h:388
UMLApp::slotSetZoom
void slotSetZoom(QAction *action)
Definition: uml.cpp:768
UMLApp::slotApplyPrefs
void slotApplyPrefs()
Definition: uml.cpp:2142
UMLApp::slotEditCopy
void slotEditCopy()
Definition: uml.cpp:1701
UMLApp::viewExportImage
QAction * viewExportImage
Definition: uml.h:448
UMLApp::slotDeploymentDiagram
void slotDeploymentDiagram()
Definition: uml.cpp:1827
UMLApp::setZoom
void setZoom(int zoom, bool withView=true)
Definition: uml.cpp:753
UMLApp::s_shuttingDown
static bool s_shuttingDown
Definition: uml.h:524
UMLApp::m_documentationDock
QDockWidget * m_documentationDock
Contains the documentation DocWindow widget.
Definition: uml.h:414
UMLApp::workToolBar
WorkToolBar * workToolBar() const
Definition: uml.cpp:1909
UMLApp::viewCodeDocument
void viewCodeDocument(UMLClassifier *classifier)
Definition: uml.cpp:2338
UMLApp::slotFileQuit
void slotFileQuit()
Definition: uml.cpp:1591
UMLApp::slotCopyChanged
void slotCopyChanged()
Definition: uml.cpp:2108
UMLApp::sigCutSuccessful
void sigCutSuccessful()
UMLApp::m_cmdHistoryDock
QDockWidget * m_cmdHistoryDock
Contains the undo/redo viewer widget.
Definition: uml.h:415
UMLApp::slotFind
void slotFind()
Definition: uml.cpp:1462
UMLApp::viewShowDoc
QAction * viewShowDoc
Definition: uml.h:438
UMLApp::slotEditUndo
void slotEditUndo()
Definition: uml.cpp:1658
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: uml.cpp:2399
UMLApp::m_printSettings
QPointer< DiagramPrintPage > m_printSettings
printer diagram settings
Definition: uml.h:522
UMLApp::m_pZoomFullSBTB
StatusBarToolButton * m_pZoomFullSBTB
Definition: uml.h:505
UMLApp::slotAddDefaultDatatypes
void slotAddDefaultDatatypes()
Definition: uml.cpp:2904
UMLApp::statusBarMsg
QString statusBarMsg() const
Definition: uml.cpp:3481
UMLApp::editUndo
QAction * editUndo
Definition: uml.h:433
UMLApp::m_birdView
BirdView * m_birdView
Bird View window.
Definition: uml.h:422
UMLApp::logError
void logError(const QString &s)
Definition: uml.cpp:2001
UMLApp::slotPrintPreviewPaintRequested
void slotPrintPreviewPaintRequested(QPrinter *printer)
Definition: uml.cpp:1552
UMLApp::slotAlignHorizontalDistribute
void slotAlignHorizontalDistribute()
Definition: uml.cpp:1899
UMLApp::viewShowGrid
KToggleAction * viewShowGrid
Definition: uml.h:447
UMLApp::m_newSessionButton
QToolButton * m_newSessionButton
Definition: uml.h:461
UMLApp::initActions
void initActions()
Definition: uml.cpp:296
UMLApp::m_listView
UMLListView * m_listView
Listview shows the current open file.
Definition: uml.h:409
UMLApp::slotMoveTabRight
void slotMoveTabRight()
Definition: uml.cpp:3417
UMLApp::setLang_d
void setLang_d()
Definition: uml.cpp:2518
UMLApp::m_imageMimeType
QString m_imageMimeType
Default mime type to use for image export.
Definition: uml.h:492
UMLApp::setCurrentView
void setCurrentView(UMLView *view, bool updateTreeView=true)
Definition: uml.cpp:3215
UMLApp::setLang_xmlschema
void setLang_xmlschema()
Definition: uml.cpp:2593
UMLApp::beginMacro
void beginMacro(const QString &text)
Definition: uml.cpp:3569
UMLApp::generator
CodeGenerator * generator() const
Definition: uml.cpp:2455
UMLApp::setLang_idl
void setLang_idl()
Definition: uml.cpp:2523
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1063
UMLApp::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *e)
Definition: uml.cpp:3132
UMLApp::slotZoomIn
void slotZoomIn()
Definition: uml.cpp:742
UMLApp::slotFileExportXhtml
void slotFileExportXhtml()
Definition: uml.cpp:1632
UMLApp::slotClassDiagram
void slotClassDiagram()
Definition: uml.cpp:1763
UMLApp::setLang_python
void setLang_python()
Definition: uml.cpp:2568
UMLApp::createGenerator
CodeGenerator * createGenerator()
UMLApp::slotFileSave
void slotFileSave()
Definition: uml.cpp:1368
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2383
UMLApp::slotPrintSettings
bool slotPrintSettings()
Definition: uml.cpp:1496
UMLApp::clearUndoStack
void clearUndoStack()
Definition: uml.cpp:3490
UMLApp::createDiagram
void createDiagram(Uml::DiagramType::Enum type)
Definition: uml.cpp:1753
UMLApp::m_hasBegunMacro
bool m_hasBegunMacro
Macro creation flag.
Definition: uml.h:520
UMLApp::printPreview
QAction * printPreview
Definition: uml.h:428
UMLApp::endMacro
void endMacro()
Definition: uml.cpp:3588
UMLApp::slotAlignRight
void slotAlignRight()
Definition: uml.cpp:1851
UMLApp::executeCommand
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3547
UMLApp::logInfo
void logInfo(const QString &s)
Definition: uml.cpp:1977
UMLApp::isRedoActionEnabled
bool isRedoActionEnabled() const
Definition: uml.cpp:2270
UMLApp::slotMoveTabLeft
void slotMoveTabLeft()
Definition: uml.cpp:3395
UMLApp::m_viewStack
QStackedWidget * m_viewStack
Definition: uml.h:473
UMLApp::m_zoomValueLbl
QLabel * m_zoomValueLbl
Definition: uml.h:501
UMLApp::slotBirdViewChanged
void slotBirdViewChanged(const QPointF &newCenter)
Definition: uml.cpp:3197
UMLApp::m_langAct
QAction * m_langAct[Uml::ProgrammingLanguage::Reserved+1]
Definition: uml.h:453
UMLApp::setDiagramMenuItemsState
void setDiagramMenuItemsState(bool bState)
Definition: uml.cpp:2755
UMLApp::m_pZoomOutPB
QPushButton * m_pZoomOutPB
Definition: uml.h:502
UMLApp::isUndoEnabled
bool isUndoEnabled() const
Definition: uml.cpp:2224
UMLApp::viewProperties
QAction * viewProperties
Definition: uml.h:449
UMLApp::slotClipDataChanged
void slotClipDataChanged()
Definition: uml.cpp:2097
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:276
UMLApp::isCutCopyState
bool isCutCopyState() const
Definition: uml.cpp:2214
UMLApp::m_zoomSelect
QMenu * m_zoomSelect
Popup menu for zoom selection.
Definition: uml.h:384
UMLApp::m_tabWidget
KTabWidget * m_tabWidget
Definition: uml.h:482
UMLApp::slotShowDocumentationView
void slotShowDocumentationView(bool state)
Definition: uml.cpp:2667
UMLApp::slotCurrentViewExportImage
void slotCurrentViewExportImage()
Definition: uml.cpp:2720
UMLApp::slotDeleteSelected
void slotDeleteSelected()
Definition: uml.cpp:2950
UMLApp::slotFindNext
void slotFindNext()
Definition: uml.cpp:1478
UMLApp::slotAlignBottom
void slotAlignBottom()
Definition: uml.cpp:1867
UMLApp::logWarn
void logWarn(const QString &s)
Definition: uml.cpp:1989
UMLApp::m_config
KSharedConfigPtr m_config
The configuration object of the application.
Definition: uml.h:392
UMLApp::initClip
void initClip()
Definition: uml.cpp:2053
UMLApp::setLang_mysql
void setLang_mysql()
Definition: uml.cpp:2538
UMLApp::setLang_ruby
void setLang_ruby()
Definition: uml.cpp:2573
UMLApp::m_birdViewDock
BirdViewDockWidget * m_birdViewDock
Contains the bird's eye view.
Definition: uml.h:418
UMLApp::slotEditPaste
void slotEditPaste()
Definition: uml.cpp:1713
UMLApp::slotFindPrevious
void slotFindPrevious()
Definition: uml.cpp:1487
UMLApp::slotAlignLeft
void slotAlignLeft()
Definition: uml.cpp:1843
UMLApp::slotSequenceDiagram
void slotSequenceDiagram()
Definition: uml.cpp:1779
UMLApp::slotAlignVerticalMiddle
void slotAlignVerticalMiddle()
Definition: uml.cpp:1875
UMLApp::viewSnapToGrid
KToggleAction * viewSnapToGrid
Definition: uml.h:446
UMLApp::m_pZoomFitSBTB
StatusBarToolButton * m_pZoomFitSBTB
Definition: uml.h:504
UMLApp::setLang_javascript
void setLang_javascript()
Definition: uml.cpp:2533
UMLApp::m_copyTimer
QTimer * m_copyTimer
Definition: uml.h:465
UMLApp::setLang_pascal
void setLang_pascal()
Definition: uml.cpp:2543
UMLApp::initSavedCodeGenerators
void initSavedCodeGenerators()
UMLApp::enableUndoAction
void enableUndoAction(bool enable)
Definition: uml.cpp:2260
UMLApp::findMenu
QMenu * findMenu(const QString &name)
Definition: uml.cpp:147
UMLApp::setLang_actionscript
void setLang_actionscript()
Definition: uml.cpp:2498
UMLApp::slotActivityDiagram
void slotActivityDiagram()
Definition: uml.cpp:1811
UMLApp::m_listDock
QDockWidget * m_listDock
Contains the UMLListView tree view.
Definition: uml.h:412
UMLApp::filePrint
QAction * filePrint
Definition: uml.h:429
UMLApp::mainViewWidget
QWidget * mainViewWidget() const
Definition: uml.cpp:3169
UMLApp::slotShowTreeView
void slotShowTreeView(bool state)
Definition: uml.cpp:2655
UMLApp::m_clipTimer
QTimer * m_clipTimer
Definition: uml.h:464
UMLApp::slotObjectDiagram
void slotObjectDiagram()
Definition: uml.cpp:1771
UMLApp::logWindow
QListWidget * logWindow() const
Definition: uml.cpp:1929
UMLApp::enablePrint
void enablePrint(bool enable)
Definition: uml.cpp:2044
UMLApp::editPaste
QAction * editPaste
Definition: uml.h:432
UMLApp::initStatusBar
void initStatusBar()
Definition: uml.cpp:830
UMLApp::m_xhtmlGenerator
XhtmlGenerator * m_xhtmlGenerator
Definition: uml.h:511
UMLApp::isUndoActionEnabled
bool isUndoActionEnabled() const
Definition: uml.cpp:2249
UMLApp::viewShowCmdHistory
QAction * viewShowCmdHistory
Definition: uml.h:440
UMLApp::m_codegen
CodeGenerator * m_codegen
Active code generator.
Definition: uml.h:387
UMLApp::setLang_php5
void setLang_php5()
Definition: uml.cpp:2558
UMLApp::viewShowDebug
QAction * viewShowDebug
Definition: uml.h:437
UMLApp::activeLanguage
Uml::ProgrammingLanguage::Enum activeLanguage() const
Definition: uml.cpp:2632
UMLApp::slotFileNew
void slotFileNew()
Definition: uml.cpp:1266
UMLApp::config
KConfig * config()
Definition: uml.cpp:3605
UMLApp::imageMimeType
QString imageMimeType() const
Definition: uml.cpp:3294
UMLApp::m_imageExporterAll
UMLViewImageExporterAll * m_imageExporterAll
Used to export all the views.
Definition: uml.h:496
UMLApp::m_pQUndoView
QUndoView * m_pQUndoView
Undo / Redo Viewer.
Definition: uml.h:423
UMLApp::editRedo
QAction * editRedo
Definition: uml.h:434
UMLApp::redo
void redo()
Definition: uml.cpp:3523
UMLApp::slotStatusMsg
void slotStatusMsg(const QString &text)
Definition: uml.cpp:1735
UMLApp::setProgLangAction
void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char *name, const char *action)
Definition: uml.cpp:284
UMLApp::slotEntityRelationshipDiagram
void slotEntityRelationshipDiagram()
Definition: uml.cpp:1835
UMLApp::slotDeleteDiagram
void slotDeleteDiagram()
Definition: uml.cpp:2974
UMLApp::createBirdView
void createBirdView(UMLView *view)
Definition: uml.cpp:3183
UMLApp::isPasteState
bool isPasteState() const
Definition: uml.cpp:2204
UMLApp::setupZoomMenu
void setupZoomMenu()
Definition: uml.cpp:795
UMLApp::setLang_java
void setLang_java()
Definition: uml.cpp:2528
UMLApp::initGenerator
void initGenerator()
Definition: uml.cpp:3027
UMLApp::slotStateDiagram
void slotStateDiagram()
Definition: uml.cpp:1803
UMLApp::viewShowBirdView
QAction * viewShowBirdView
Definition: uml.h:441
UMLApp::createZoomAction
QAction * createZoomAction(int zoom, int currentZoom)
Definition: uml.cpp:779
UMLApp::deleteSelectedWidget
KAction * deleteSelectedWidget
Definition: uml.h:458
UMLApp::setModified
void setModified(bool _m)
Definition: uml.cpp:2016
UMLApp::canDecode
static bool canDecode(const QMimeData *mimeSource)
Definition: uml.cpp:2076
UMLApp::m_policyext
CodeGenPolicyExt * m_policyext
Active policy extension.
Definition: uml.h:389
UMLApp::slotXhtmlDocGenerationFinished
void slotXhtmlDocGenerationFinished(bool status)
Definition: uml.cpp:3441
UMLApp::m_propertyDock
QDockWidget * m_propertyDock
Contains the property browser widget.
Definition: uml.h:416
UMLApp::slotEditCut
void slotEditCut()
Definition: uml.cpp:1678
UMLApp::slotOpenFileInEditor
bool slotOpenFileInEditor(const QUrl &file, int startCursor=0, int endCursor=0)
Definition: uml.cpp:3459
UMLApp::importFiles
void importFiles(QStringList &fileList, const QString &rootPath=QString())
Definition: uml.cpp:2800
UMLApp::zoom100Action
QAction * zoom100Action
Definition: uml.h:451
UMLApp::openDocumentFile
void openDocumentFile(const KUrl &url=KUrl())
Definition: uml.cpp:1046
UMLApp::setLang_cpp
void setLang_cpp()
Definition: uml.cpp:2508
UMLApp::readOptionState
void readOptionState() const
Definition: uml.cpp:2320
UMLApp::resetStatusMsg
void resetStatusMsg()
Definition: uml.cpp:1744
UMLApp::m_docWindow
DocWindow * m_docWindow
Documentation window.
Definition: uml.h:420
UMLApp::slotChangeTabRight
void slotChangeTabRight()
Definition: uml.cpp:3358
UMLApp::setLang_none
void setLang_none()
Definition: uml.cpp:2598
UMLApp::m_loading
bool m_loading
True if the application is opening an existing document.
Definition: uml.h:467
UMLApp::slotGenerateAllCode
void slotGenerateAllCode()
Definition: uml.cpp:2478
UMLApp::isSimpleCodeGeneratorActive
bool isSimpleCodeGeneratorActive() const
Definition: uml.cpp:2465
UMLApp::listView
UMLListView * listView() const
Definition: uml.cpp:1073
UMLApp::m_langSelect
QMenu * m_langSelect
For selecting the active language.
Definition: uml.h:383
UMLApp::slotCurrentViewChanged
void slotCurrentViewChanged()
Definition: uml.cpp:2912
UMLApp::tabWidget
KTabWidget * tabWidget()
Definition: uml.cpp:3470
UMLApp::m_doc
UMLDoc * m_doc
Definition: uml.h:407
UMLApp::undo
void undo()
Definition: uml.cpp:3499
UMLApp::slotPrefs
void slotPrefs(MultiPageDialogBase::PageType page=MultiPageDialogBase::GeneralPage)
Definition: uml.cpp:2123
UMLApp::slotAlignHorizontalMiddle
void slotAlignHorizontalMiddle()
Definition: uml.cpp:1883
UMLApp::slotZoomFit
void slotZoomFit()
Definition: uml.cpp:695
UMLApp::slotShowBirdView
void slotShowBirdView(bool state)
Definition: uml.cpp:2685
UMLApp::setPolicyExt
void setPolicyExt(CodeGenPolicyExt *policy)
Definition: uml.cpp:2391
UMLApp::slotShowDebugView
void slotShowDebugView(bool state)
Definition: uml.cpp:2661
UMLApp::slotShowCmdHistoryView
void slotShowCmdHistoryView(bool state)
Definition: uml.cpp:2673
UMLApp::handleCursorKeyReleaseEvent
void handleCursorKeyReleaseEvent(QKeyEvent *e)
Definition: uml.cpp:3092
UMLApp::m_settingsDialog
SettingsDialog * m_settingsDialog
The global UML settings dialog.
Definition: uml.h:494
UMLApp::updateLangSelectMenu
void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage)
Definition: uml.cpp:3043
UMLApp::slotFileExportDocbook
void slotFileExportDocbook()
Definition: uml.cpp:1607
UMLApp::setLang_ada
void setLang_ada()
Definition: uml.cpp:2503
UMLApp::slotChangeTabLeft
void slotChangeTabLeft()
Definition: uml.cpp:3328
UMLApp::slotComponentDiagram
void slotComponentDiagram()
Definition: uml.cpp:1819
UMLApp::slotViewsExportImages
void slotViewsExportImages()
Definition: uml.cpp:2728
UMLApp::defaultLanguage
Uml::ProgrammingLanguage::Enum defaultLanguage() const
Definition: uml.cpp:3018
UMLApp::slotFileSaveAs
bool slotFileSaveAs()
Definition: uml.cpp:1385
UMLApp::slotCurrentProperties
void slotCurrentProperties()
Definition: uml.cpp:2741
UMLApp::slotAlignVerticalDistribute
void slotAlignVerticalDistribute()
Definition: uml.cpp:1891
UMLApp::slotFileOpenRecent
void slotFileOpenRecent(const KUrl &url)
Definition: uml.cpp:1333
UMLApp::currentView
UMLView * currentView() const
Definition: uml.cpp:3275
UMLApp::setGenerator
void setGenerator(CodeGenerator *gen, bool giveWarning=true)
UMLApp::m_view
QPointer< UMLView > m_view
Definition: uml.h:400
UMLApp::slotCurrentViewToggleShowGrid
void slotCurrentViewToggleShowGrid()
Definition: uml.cpp:2711
UMLApp::refactor
void refactor(UMLClassifier *classifier)
Definition: uml.cpp:2370
UMLApp::setLang_vala
void setLang_vala()
Definition: uml.cpp:2588
UMLApp::slotImportClass
void slotImportClass()
Definition: uml.cpp:2830
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: uml.cpp:2623
UMLApp::slotEditRedo
void slotEditRedo()
Definition: uml.cpp:1668
UMLApp::defaultCursor
QCursor defaultCursor() const
UMLApp::slotImportProject
void slotImportProject()
Definition: uml.cpp:2866
UMLApp::fileOpenRecent
KRecentFilesAction * fileOpenRecent
Definition: uml.h:427
UMLApp::m_toolsbar
WorkToolBar * m_toolsbar
Definition: uml.h:463
UMLApp::m_pZoomInPB
QPushButton * m_pZoomInPB
Definition: uml.h:503
UMLApp::m_statusBarMessage
QLabel * m_statusBarMessage
Definition: uml.h:507
UMLApp::saveProperties
virtual void saveProperties(KConfigGroup &cfg)
Definition: uml.cpp:1179
UMLApp::slotZoomSliderMoved
void slotZoomSliderMoved(int value)
Definition: uml.cpp:687
UMLApp::slotSnapToGridToggled
void slotSnapToGridToggled(bool gridOn)
Definition: uml.cpp:2926
UMLApp::setLang_perl
void setLang_perl()
Definition: uml.cpp:2548
UMLApp::enableRedoAction
void enableRedoAction(bool enable)
Definition: uml.cpp:2281
UMLApp::m_refactoringAssist
RefactoringAssistant * m_refactoringAssist
Refactoring assistant.
Definition: uml.h:424
UMLApp::m_d
UMLAppPrivate * m_d
Definition: uml.h:361
UMLApp::activeLanguageScopeSeparator
QString activeLanguageScopeSeparator() const
Definition: uml.cpp:2649
UMLApp::UMLApp
UMLApp(QWidget *parent=0)
Definition: uml.cpp:160
UMLApp::slotAlignTop
void slotAlignTop()
Definition: uml.cpp:1859
UMLApp::~UMLApp
~UMLApp()
Definition: uml.cpp:242
UMLApp::slotShowLogView
void slotShowLogView(bool state)
Definition: uml.cpp:2679
UMLApp::m_pUndoStack
KUndoStack * m_pUndoStack
UndoStack used to store actions, to provide Undo/Redo feature.
Definition: uml.h:516
UMLApp::slotPrintPreview
void slotPrintPreview()
Definition: uml.cpp:1533
UMLApp::initView
void initView()
Definition: uml.cpp:902
UMLApp::slotUseCaseDiagram
void slotUseCaseDiagram()
Definition: uml.cpp:1795
UMLApp::slotFileOpen
void slotFileOpen()
Definition: uml.cpp:1284
UMLApp::log
void log(const QString &s)
Definition: uml.cpp:1949
UMLApp::readOptions
void readOptions()
Definition: uml.cpp:1133
UMLApp::editCut
QAction * editCut
Definition: uml.h:430
UMLApp::m_activeLanguage
Uml::ProgrammingLanguage::Enum m_activeLanguage
Active language.
Definition: uml.h:386
UMLApp::activeLanguageIsCaseSensitive
bool activeLanguageIsCaseSensitive() const
Definition: uml.cpp:2640
UMLApp::customEvent
virtual void customEvent(QEvent *e)
Definition: uml.cpp:3080
UMLApp::slotZoomOut
void slotZoomOut()
Definition: uml.cpp:734
UMLApp::m_logWindow
QListWidget * m_logWindow
Logging window.
Definition: uml.h:421
UMLApp::slotImportingWizard
void slotImportingWizard()
Definition: uml.cpp:2884
UMLApp::m_layout
QVBoxLayout * m_layout
Definition: uml.h:490
UMLApp::setLang_tcl
void setLang_tcl()
Definition: uml.cpp:2583
UMLApp::newDiagram
KActionMenu * newDiagram
Definition: uml.h:443
UMLApp::m_mainDock
QDockWidget * m_mainDock
The widget which shows the diagrams.
Definition: uml.h:411
UMLApp::m_pZoomSlider
QSlider * m_pZoomSlider
Definition: uml.h:506
UMLApp::m_diagramMenu
KMenu * m_diagramMenu
Definition: uml.h:462
UMLApp::slotShowGridToggled
void slotShowGridToggled(bool gridOn)
Definition: uml.cpp:2934
UMLApp::slotCurrentViewToggleSnapToGrid
void slotCurrentViewToggleSnapToGrid()
Definition: uml.cpp:2702
UMLApp::editCopy
QAction * editCopy
Definition: uml.h:431
UMLApp::setLang_csharp
void setLang_csharp()
Definition: uml.cpp:2513
UMLApp::viewShowTree
QAction * viewShowTree
Definition: uml.h:436
UMLApp::slotUpdateViews
void slotUpdateViews()
Definition: uml.cpp:2774
UMLApp::logToConsole
bool logToConsole() const
Definition: uml.cpp:1941
UMLApp::s_instance
static UMLApp * s_instance
The last created instance of this class.
Definition: uml.h:360
UMLApp::editCutCopy
bool editCutCopy(bool bFromView)
Definition: uml.cpp:2295
UMLApp::shuttingDown
static bool shuttingDown()
Definition: uml.cpp:3054
UMLApp::viewShowLog
QAction * viewShowLog
Definition: uml.h:439
UMLApp::keyPressEvent
virtual void keyPressEvent(QKeyEvent *e)
Definition: uml.cpp:3062
UMLApp::slotCurrentViewClearDiagram
void slotCurrentViewClearDiagram()
Definition: uml.cpp:2694
UMLApp::m_undoEnabled
bool m_undoEnabled
Undo enabled flag.
Definition: uml.h:518
UMLApp::setLang_sql
void setLang_sql()
Definition: uml.cpp:2578
UMLApp::newDocument
void newDocument()
Definition: uml.cpp:3159
UMLApp::viewClearDiagram
QAction * viewClearDiagram
Definition: uml.h:444
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
UMLDoc
Definition: umldoc.h:70
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:38
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
UniqueID::gen
Uml::ID::Type gen()
Definition: uniqueid.cpp:21