umbrello: umbrello/uml.h Source File

umbrello 2.37.0 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#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 void setup();
102
103 static UMLApp* app();
104
105#if QT_VERSION >= 0x050000
106 void openDocumentFile(const QUrl& url=QUrl());
107#else
108 void openDocumentFile(const KUrl& url=KUrl());
109#endif
110
111 void newDocument();
112
113 UMLDoc *document() const;
114
115 UMLListView* listView() const;
116 WorkToolBar* workToolBar() const;
117 DocWindow * docWindow() const;
118 QListWidget *logWindow() const;
119 bool logToConsole() const;
120 void log(const QString& s);
121 void logDebug(const QString& s);
122 void logInfo(const QString& s);
123 void logWarn(const QString& s);
124 void logError(const QString& s);
125
126 QCursor defaultCursor() const;
127
128 void setModified(bool _m);
129
130 void enablePrint(bool enable);
131
132 bool isPasteState() const;
133 bool isCutCopyState() const;
134
135 bool isUndoEnabled() const;
136 void enableUndo(bool enable);
137
138 bool isUndoActionEnabled() const;
139 void enableUndoAction(bool enable);
140
141 bool isRedoActionEnabled() const;
142 void enableRedoAction(bool enable);
143
144 bool isSimpleCodeGeneratorActive() const;
145
146 void setGenerator(CodeGenerator* gen, bool giveWarning = true);
147 CodeGenerator* setGenerator(Uml::ProgrammingLanguage::Enum pl);
148 CodeGenerator* generator() const;
149
150 CodeGenerator* createGenerator();
151 void initGenerator();
152
153 void refactor(UMLClassifier* classifier);
154
155 void viewCodeDocument(UMLClassifier* classifier);
156
157 void setDiagramMenuItemsState(bool bState);
158
159 QWidget* mainViewWidget() const;
160
161 void setCurrentView(UMLView* view, bool updateTreeView = true);
162 UMLView* currentView() const;
163
164 void setImageMimeType(const QString& mimeType);
165 QString imageMimeType() const;
166
167 bool editCutCopy(bool bFromView);
168
169#if QT_VERSION >= 0x050000
170 QTabWidget *tabWidget();
171#else
172 KTabWidget *tabWidget();
173#endif
174
175 QString statusBarMsg() const;
176
177 CodeGenerationPolicy *commonPolicy() const;
178
179 void setPolicyExt(CodeGenPolicyExt *policy);
180 CodeGenPolicyExt *policyExt() const;
181
182 void clearUndoStack();
183
184 void undo();
185 void redo();
186
187 void executeCommand(QUndoCommand* cmd);
188
189 void beginMacro(const QString & text);
190 void endMacro();
191
192 void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl);
193 Uml::ProgrammingLanguage::Enum activeLanguage() const;
194 Uml::ProgrammingLanguage::Enum defaultLanguage() const;
195
196 bool activeLanguageIsCaseSensitive() const;
197
198 QString activeLanguageScopeSeparator() const;
199
200 KConfig* config();
201 void importFiles(QStringList& fileList, const QString &rootPath = QString());
202
203 static bool shuttingDown();
204
205protected:
206 virtual void keyPressEvent(QKeyEvent* e);
207 virtual void keyReleaseEvent(QKeyEvent* e);
208
209 virtual void customEvent(QEvent* e);
210
211 void handleCursorKeyReleaseEvent(QKeyEvent* e);
212
213 void saveOptions();
214 void readOptions();
215
216 void initActions();
217 void initStatusBar();
218 void initView();
219
220 virtual bool queryClose();
221
222 virtual void saveProperties(KConfigGroup & cfg);
223 virtual void readProperties(const KConfigGroup & cfg);
224
225 void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage);
226
227public slots:
228 void slotExecGenerationWizard();
229 void slotImportingWizard();
230
231 void slotFileNew();
232 void slotFileOpen();
233
234#if QT_VERSION >= 0x050000
235 void slotFileOpenRecent(const QUrl& url);
236#else
237 void slotFileOpenRecent(const KUrl& url);
238#endif
239 void slotFileSave();
240 bool slotFileSaveAs();
241 void slotFileClose();
242 bool slotPrintSettings();
243 void slotPrintPreview();
244 void slotPrintPreviewPaintRequested(QPrinter *printer);
245 void slotFilePrint();
246 void slotFileQuit();
247 void slotFileExportDocbook();
248 void slotFileExportXhtml();
249 void slotFind();
250 void slotFindNext();
251 void slotFindPrevious();
252 void slotEditCut();
253 void slotEditCopy();
254 void slotEditPaste();
255 void slotStatusMsg(const QString &text);
256 void slotClassDiagram();
257 void slotObjectDiagram();
258 void slotSequenceDiagram();
259 void slotCollaborationDiagram();
260 void slotUseCaseDiagram();
261 void slotStateDiagram();
262 void slotActivityDiagram();
263 void slotComponentDiagram();
264 void slotDeploymentDiagram();
265 void slotEntityRelationshipDiagram();
266 void slotAlignLeft();
267 void slotAlignRight();
268 void slotAlignTop();
269 void slotAlignBottom();
270 void slotAlignVerticalMiddle();
271 void slotAlignHorizontalMiddle();
272 void slotAlignVerticalDistribute();
273 void slotAlignHorizontalDistribute();
274 void slotClipDataChanged();
275 void slotCopyChanged();
276 void slotPrefs(MultiPageDialogBase::PageType page = MultiPageDialogBase::GeneralPage);
277 void slotApplyPrefs();
278 void slotImportClass();
279 void slotImportProject();
280 void slotUpdateViews();
281 void slotShowTreeView(bool state);
282 void slotShowDebugView(bool state);
283 void slotShowDocumentationView(bool state);
284 void slotShowCmdHistoryView(bool state);
285 void slotShowLogView(bool state);
286 void slotShowBirdView(bool state);
287 void slotCurrentViewClearDiagram();
288 void slotCurrentViewToggleSnapToGrid();
289 void slotCurrentViewToggleShowGrid();
290 void slotCurrentViewExportImage();
291 void slotViewsExportImages();
292 void slotCurrentProperties();
293 void slotClassWizard();
294 void slotAddDefaultDatatypes();
295 void slotCurrentViewChanged();
296 void slotSnapToGridToggled(bool gridOn);
297 void slotShowGridToggled(bool gridOn);
298 void slotSelectAll();
299 void slotDeleteSelected();
300 void slotDeleteDiagram();
301#if QT_VERSION >= 0x050000
302 void slotCloseDiagram(int index);
303#else
304 void slotCloseDiagram(QWidget* tab);
305#endif
306 void slotGenerateAllCode();
307
308 void slotSetZoom(QAction* action);
309 void slotZoomSliderMoved(int value);
310 void slotZoomFit();
311 void slotZoom100();
312 void slotZoomOut();
313 void slotZoomIn();
314
315 void slotBirdViewChanged(const QPointF& newCenter);
316
317 void setupZoomMenu();
318
319 void slotEditUndo();
320 void slotEditRedo();
321
322#if QT_VERSION >= 0x050000
323 void slotTabChanged(int index);
324#else
325 void slotTabChanged(QWidget* tab);
326#endif
327 void slotChangeTabLeft();
328 void slotChangeTabRight();
329 void slotMoveTabLeft();
330 void slotMoveTabRight();
331
332 void slotXhtmlDocGenerationFinished(bool status);
333 bool slotOpenFileInEditor(const QUrl &file, int startCursor = 0, int endCursor = 0);
334
335private slots:
336 void setLang_actionscript();
337 void setLang_ada();
338 void setLang_cpp();
339 void setLang_csharp();
340 void setLang_d();
341 void setLang_idl();
342 void setLang_java();
343 void setLang_javascript();
344 void setLang_mysql();
345 void setLang_pascal();
346 void setLang_perl();
347 void setLang_php();
348 void setLang_php5();
349 void setLang_postgresql();
350 void setLang_python();
351 void setLang_ruby();
352 void setLang_sql();
353 void setLang_tcl();
354 void setLang_vala();
355 void setLang_xmlschema();
356 void setLang_none();
357#if QT_VERSION >= 0x050000
358 void slotDiagramPopupMenu(const QPoint& point);
359#endif
360
361private:
362 static UMLApp* s_instance;
363 UMLAppPrivate *m_d;
364
365 QMenu* findMenu(const QString &name);
366
367 QAction* createZoomAction(int zoom, int currentZoom);
368 void setZoom(int zoom, bool withView = true);
369
370 void resetStatusMsg();
371
372 void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char* name, const char* action);
373
374 static bool canDecode(const QMimeData* mimeSource);
375
376 void readOptionState() const;
377
378 void initClip();
379 void initSavedCodeGenerators();
380
381 void createDiagram(Uml::DiagramType::Enum type);
382
383 void createBirdView(UMLView* view);
384
385 QMenu* m_langSelect;
386 QMenu* m_zoomSelect;
387
388 Uml::ProgrammingLanguage::Enum m_activeLanguage;
389 CodeGenerator* m_codegen;
390 CodeGenerationPolicy* m_commoncodegenpolicy;
391 CodeGenPolicyExt* m_policyext;
392 // Only used for new code generators ({Cpp, Java, Ruby, D}CodeGenerator).
393
394 KSharedConfigPtr m_config;
395
402 QPointer<UMLView> m_view;
403
409 UMLDoc* m_doc;
410
411 UMLListView* m_listView;
412
413 QDockWidget* m_mainDock;
414 QDockWidget* m_listDock;
415 QDockWidget* m_debugDock;
416 QDockWidget* m_documentationDock;
417 QDockWidget* m_cmdHistoryDock;
418 QDockWidget* m_propertyDock;
419 QDockWidget* m_logDock;
420 BirdViewDockWidget* m_birdViewDock;
421
422 DocWindow* m_docWindow;
423 BirdView* m_birdView;
424 QUndoView* m_pQUndoView;
425 RefactoringAssistant* m_refactoringAssist;
426
427 // KAction pointers to enable/disable actions
428 KRecentFilesAction* fileOpenRecent;
429 QAction* printPreview;
430 QAction* filePrint;
431 QAction* editCut;
432 QAction* editCopy;
433 QAction* editPaste;
434 QAction* editUndo;
435 QAction* editRedo;
436
437 QAction* viewShowTree;
438 QAction* viewShowDebug;
439 QAction* viewShowDoc;
440 QAction* viewShowLog;
441 QAction* viewShowCmdHistory;
442 QAction* viewShowBirdView;
443
444 KActionMenu* newDiagram;
445 QAction* viewClearDiagram;
446
447 KToggleAction* viewSnapToGrid;
448 KToggleAction* viewShowGrid;
449 QAction* viewExportImage;
450 QAction* viewProperties;
451
452 QAction* zoom100Action;
453
454 QAction* m_langAct[Uml::ProgrammingLanguage::Reserved + 1];
455#if QT_VERSION >= 0x050000
456 QAction* deleteSelectedWidget;
457 QAction* deleteDiagram;
458#else
459 KAction* deleteSelectedWidget;
460 KAction* deleteDiagram;
461#endif
462 QToolButton* m_newSessionButton;
463 KMenu* m_diagramMenu;
464 WorkToolBar* m_toolsbar;
465 QTimer* m_clipTimer;
466 QTimer* m_copyTimer;
467
468 bool m_loading;
469
474 QStackedWidget* m_viewStack;
475
480#if QT_VERSION >= 0x050000
481 QTabWidget* m_tabWidget;
482#else
483 KTabWidget* m_tabWidget;
484#endif
485
491 QVBoxLayout* m_layout;
492
493 QString m_imageMimeType;
494
495 SettingsDialog* m_settingsDialog;
496
497 UMLViewImageExporterAll* m_imageExporterAll;
498
502 QLabel* m_zoomValueLbl;
503 QWidget* m_defaultZoomWdg;
504 QPushButton* m_pZoomOutPB;
505 QPushButton* m_pZoomInPB;
506 StatusBarToolButton* m_pZoomFitSBTB;
507 StatusBarToolButton* m_pZoomFullSBTB;
508 QSlider* m_pZoomSlider;
509 QLabel* m_statusBarMessage;
513 XhtmlGenerator* m_xhtmlGenerator;
514
515#if QT_VERSION >= 0x050000
516 QUndoStack* m_pUndoStack;
517#else
518 KUndoStack* m_pUndoStack;
519#endif
520 bool m_undoEnabled;
521
522 bool m_hasBegunMacro;
523
524 QPointer<DiagramPrintPage> m_printSettings;
525 QPrinter *m_printer;
526 static bool s_shuttingDown;
527
528signals:
529 void sigCutSuccessful();
530
531 friend class UMLAppPrivate;
532 friend class UMLView;
533};
534
535#define logDebug0(s) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
536 UMLApp::app()->logDebug(QLatin1String(s))
537#define logInfo0(s) UMLApp::app()->logInfo(QLatin1String(s))
538#define logWarn0(s) UMLApp::app()->logWarn(QLatin1String(s))
539#define logError0(s) UMLApp::app()->logError(QLatin1String(s))
540
541#define logDebug1(s, a) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
542 do { QString fmt = QString(QLatin1String(s)).arg(a); UMLApp::app()->logDebug(fmt); } while (0)
543#define logInfo1(s, a) do { QString fmt = QString(QLatin1String(s)).arg(a); UMLApp::app()->logInfo(fmt); } while (0)
544#define logWarn1(s, a) do { QString fmt = QString(QLatin1String(s)).arg(a); UMLApp::app()->logWarn(fmt); } while (0)
545#define logError1(s, a) do { QString fmt = QString(QLatin1String(s)).arg(a); UMLApp::app()->logError(fmt); } while (0)
546
547#define logDebug2(s, a, b) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
548 do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b); UMLApp::app()->logDebug(fmt); } while (0)
549#define logInfo2(s, a, b) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b); UMLApp::app()->logInfo(fmt); } while (0)
550#define logWarn2(s, a, b) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b); UMLApp::app()->logWarn(fmt); } while (0)
551#define logError2(s, a, b) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b); UMLApp::app()->logError(fmt); } while (0)
552
553#define logDebug3(s, a, b, c) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
554 do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c); UMLApp::app()->logDebug(fmt); } while (0)
555#define logInfo3(s, a, b, c) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c); UMLApp::app()->logInfo(fmt); } while (0)
556#define logWarn3(s, a, b, c) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c); UMLApp::app()->logWarn(fmt); } while (0)
557#define logError3(s, a, b, c) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c); UMLApp::app()->logError(fmt); } while (0)
558
559#define logDebug4(s, a, b, c, d) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
560 do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d); UMLApp::app()->logDebug(fmt); } while (0)
561#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)
562#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)
563#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)
564
565#define logDebug5(s, a, b, c, d, e) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
566 do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \
567 UMLApp::app()->logDebug(fmt); } while (0)
568#define logInfo5(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()->logInfo(fmt); } while (0)
570#define logWarn5(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()->logWarn(fmt); } while (0)
572#define logError5(s, a, b, c, d, e) do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d).arg(e); \
573 UMLApp::app()->logError(fmt); } while (0)
574
575#define logDebug6(s, a, b, c, d, e, f) if (UMLApp::app()->logToConsole() || Tracer::instance()->isEnabled(DBG_SRC)) \
576 do { QString fmt = QString(QLatin1String(s)).arg(a).arg(b).arg(c).arg(d).arg(e).arg(f); UMLApp::app()->logDebug(fmt); } while (0)
577
578#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:2970
UMLApp::slotZoom100
void slotZoom100()
Definition: uml.cpp:803
UMLApp::setImageMimeType
void setImageMimeType(const QString &mimeType)
Definition: uml.cpp:3360
UMLApp::m_debugDock
QDockWidget * m_debugDock
Contains the debug DocWindow widget.
Definition: uml.h:415
UMLApp::slotCloseDiagram
void slotCloseDiagram(QWidget *tab)
Definition: uml.cpp:3076
UMLApp::slotExecGenerationWizard
void slotExecGenerationWizard()
Definition: uml.cpp:2564
UMLApp::slotSelectAll
void slotSelectAll()
Definition: uml.cpp:3018
UMLApp::enableUndo
void enableUndo(bool enable)
Definition: uml.cpp:2310
UMLApp::slotFilePrint
void slotFilePrint()
Definition: uml.cpp:1636
UMLApp::readProperties
virtual void readProperties(const KConfigGroup &cfg)
Definition: uml.cpp:1284
UMLApp::logDebug
void logDebug(const QString &s)
Definition: uml.cpp:2037
UMLApp::deleteDiagram
KAction * deleteDiagram
Definition: uml.h:460
UMLApp::slotTabChanged
void slotTabChanged(QWidget *tab)
Definition: uml.cpp:3392
UMLApp::setLang_postgresql
void setLang_postgresql()
Definition: uml.cpp:2639
UMLApp::m_printer
QPrinter * m_printer
print instance
Definition: uml.h:525
UMLApp::setLang_php
void setLang_php()
Definition: uml.cpp:2629
UMLApp::queryClose
virtual bool queryClose()
Definition: uml.cpp:1328
UMLApp::slotCollaborationDiagram
void slotCollaborationDiagram()
Definition: uml.cpp:1863
UMLApp::slotFileClose
void slotFileClose()
Definition: uml.cpp:1528
UMLApp::m_logDock
QDockWidget * m_logDock
Contains the log window widget.
Definition: uml.h:419
UMLApp::docWindow
DocWindow * docWindow() const
Definition: uml.cpp:1995
UMLApp::saveOptions
void saveOptions()
Definition: uml.cpp:1159
UMLApp::m_commoncodegenpolicy
CodeGenerationPolicy * m_commoncodegenpolicy
Definition: uml.h:390
UMLApp::slotSetZoom
void slotSetZoom(QAction *action)
Definition: uml.cpp:845
UMLApp::slotApplyPrefs
void slotApplyPrefs()
Definition: uml.cpp:2218
UMLApp::slotEditCopy
void slotEditCopy()
Definition: uml.cpp:1777
UMLApp::viewExportImage
QAction * viewExportImage
Definition: uml.h:449
UMLApp::slotDeploymentDiagram
void slotDeploymentDiagram()
Definition: uml.cpp:1903
UMLApp::setZoom
void setZoom(int zoom, bool withView=true)
Definition: uml.cpp:830
UMLApp::s_shuttingDown
static bool s_shuttingDown
Definition: uml.h:526
UMLApp::m_documentationDock
QDockWidget * m_documentationDock
Contains the documentation DocWindow widget.
Definition: uml.h:416
UMLApp::workToolBar
WorkToolBar * workToolBar() const
Definition: uml.cpp:1985
UMLApp::viewCodeDocument
void viewCodeDocument(UMLClassifier *classifier)
Definition: uml.cpp:2414
UMLApp::slotFileQuit
void slotFileQuit()
Definition: uml.cpp:1667
UMLApp::slotCopyChanged
void slotCopyChanged()
Definition: uml.cpp:2184
UMLApp::sigCutSuccessful
void sigCutSuccessful()
UMLApp::m_cmdHistoryDock
QDockWidget * m_cmdHistoryDock
Contains the undo/redo viewer widget.
Definition: uml.h:417
UMLApp::slotFind
void slotFind()
Definition: uml.cpp:1538
UMLApp::viewShowDoc
QAction * viewShowDoc
Definition: uml.h:439
UMLApp::slotEditUndo
void slotEditUndo()
Definition: uml.cpp:1734
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: uml.cpp:2475
UMLApp::m_printSettings
QPointer< DiagramPrintPage > m_printSettings
printer diagram settings
Definition: uml.h:524
UMLApp::m_pZoomFullSBTB
StatusBarToolButton * m_pZoomFullSBTB
Definition: uml.h:507
UMLApp::slotAddDefaultDatatypes
void slotAddDefaultDatatypes()
Definition: uml.cpp:2980
UMLApp::statusBarMsg
QString statusBarMsg() const
Definition: uml.cpp:3557
UMLApp::editUndo
QAction * editUndo
Definition: uml.h:434
UMLApp::m_birdView
BirdView * m_birdView
Bird View window.
Definition: uml.h:423
UMLApp::logError
void logError(const QString &s)
Definition: uml.cpp:2077
UMLApp::slotPrintPreviewPaintRequested
void slotPrintPreviewPaintRequested(QPrinter *printer)
Definition: uml.cpp:1628
UMLApp::slotAlignHorizontalDistribute
void slotAlignHorizontalDistribute()
Definition: uml.cpp:1975
UMLApp::viewShowGrid
KToggleAction * viewShowGrid
Definition: uml.h:448
UMLApp::m_newSessionButton
QToolButton * m_newSessionButton
Definition: uml.h:462
UMLApp::initActions
void initActions()
Definition: uml.cpp:369
UMLApp::m_listView
UMLListView * m_listView
Listview shows the current open file.
Definition: uml.h:411
UMLApp::slotMoveTabRight
void slotMoveTabRight()
Definition: uml.cpp:3493
UMLApp::setLang_d
void setLang_d()
Definition: uml.cpp:2594
UMLApp::m_imageMimeType
QString m_imageMimeType
Default mime type to use for image export.
Definition: uml.h:493
UMLApp::setCurrentView
void setCurrentView(UMLView *view, bool updateTreeView=true)
Definition: uml.cpp:3291
UMLApp::setLang_xmlschema
void setLang_xmlschema()
Definition: uml.cpp:2669
UMLApp::beginMacro
void beginMacro(const QString &text)
Definition: uml.cpp:3645
UMLApp::generator
CodeGenerator * generator() const
Definition: uml.cpp:2531
UMLApp::setLang_idl
void setLang_idl()
Definition: uml.cpp:2599
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1139
UMLApp::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *e)
Definition: uml.cpp:3208
UMLApp::slotZoomIn
void slotZoomIn()
Definition: uml.cpp:819
UMLApp::slotFileExportXhtml
void slotFileExportXhtml()
Definition: uml.cpp:1708
UMLApp::slotClassDiagram
void slotClassDiagram()
Definition: uml.cpp:1839
UMLApp::setLang_python
void setLang_python()
Definition: uml.cpp:2644
UMLApp::createGenerator
CodeGenerator * createGenerator()
UMLApp::slotFileSave
void slotFileSave()
Definition: uml.cpp:1444
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2459
UMLApp::slotPrintSettings
bool slotPrintSettings()
Definition: uml.cpp:1572
UMLApp::clearUndoStack
void clearUndoStack()
Definition: uml.cpp:3566
UMLApp::createDiagram
void createDiagram(Uml::DiagramType::Enum type)
Definition: uml.cpp:1829
UMLApp::m_hasBegunMacro
bool m_hasBegunMacro
Macro creation flag.
Definition: uml.h:522
UMLApp::printPreview
QAction * printPreview
Definition: uml.h:429
UMLApp::endMacro
void endMacro()
Definition: uml.cpp:3664
UMLApp::slotAlignRight
void slotAlignRight()
Definition: uml.cpp:1927
UMLApp::executeCommand
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3623
UMLApp::logInfo
void logInfo(const QString &s)
Definition: uml.cpp:2053
UMLApp::isRedoActionEnabled
bool isRedoActionEnabled() const
Definition: uml.cpp:2346
UMLApp::slotMoveTabLeft
void slotMoveTabLeft()
Definition: uml.cpp:3471
UMLApp::m_viewStack
QStackedWidget * m_viewStack
Definition: uml.h:474
UMLApp::m_zoomValueLbl
QLabel * m_zoomValueLbl
Definition: uml.h:502
UMLApp::slotBirdViewChanged
void slotBirdViewChanged(const QPointF &newCenter)
Definition: uml.cpp:3273
UMLApp::m_langAct
QAction * m_langAct[Uml::ProgrammingLanguage::Reserved+1]
Definition: uml.h:454
UMLApp::setDiagramMenuItemsState
void setDiagramMenuItemsState(bool bState)
Definition: uml.cpp:2831
UMLApp::m_pZoomOutPB
QPushButton * m_pZoomOutPB
Definition: uml.h:504
UMLApp::isUndoEnabled
bool isUndoEnabled() const
Definition: uml.cpp:2300
UMLApp::viewProperties
QAction * viewProperties
Definition: uml.h:450
UMLApp::slotClipDataChanged
void slotClipDataChanged()
Definition: uml.cpp:2173
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:349
UMLApp::isCutCopyState
bool isCutCopyState() const
Definition: uml.cpp:2290
UMLApp::m_zoomSelect
QMenu * m_zoomSelect
Popup menu for zoom selection.
Definition: uml.h:386
UMLApp::m_tabWidget
KTabWidget * m_tabWidget
Definition: uml.h:483
UMLApp::slotShowDocumentationView
void slotShowDocumentationView(bool state)
Definition: uml.cpp:2743
UMLApp::slotCurrentViewExportImage
void slotCurrentViewExportImage()
Definition: uml.cpp:2796
UMLApp::slotDeleteSelected
void slotDeleteSelected()
Definition: uml.cpp:3026
UMLApp::slotFindNext
void slotFindNext()
Definition: uml.cpp:1554
UMLApp::slotAlignBottom
void slotAlignBottom()
Definition: uml.cpp:1943
UMLApp::logWarn
void logWarn(const QString &s)
Definition: uml.cpp:2065
UMLApp::m_config
KSharedConfigPtr m_config
The configuration object of the application.
Definition: uml.h:394
UMLApp::initClip
void initClip()
Definition: uml.cpp:2129
UMLApp::setLang_mysql
void setLang_mysql()
Definition: uml.cpp:2614
UMLApp::setLang_ruby
void setLang_ruby()
Definition: uml.cpp:2649
UMLApp::m_birdViewDock
BirdViewDockWidget * m_birdViewDock
Contains the bird's eye view.
Definition: uml.h:420
UMLApp::slotEditPaste
void slotEditPaste()
Definition: uml.cpp:1789
UMLApp::slotFindPrevious
void slotFindPrevious()
Definition: uml.cpp:1563
UMLApp::slotAlignLeft
void slotAlignLeft()
Definition: uml.cpp:1919
UMLApp::slotSequenceDiagram
void slotSequenceDiagram()
Definition: uml.cpp:1855
UMLApp::slotAlignVerticalMiddle
void slotAlignVerticalMiddle()
Definition: uml.cpp:1951
UMLApp::viewSnapToGrid
KToggleAction * viewSnapToGrid
Definition: uml.h:447
UMLApp::m_pZoomFitSBTB
StatusBarToolButton * m_pZoomFitSBTB
Definition: uml.h:506
UMLApp::setLang_javascript
void setLang_javascript()
Definition: uml.cpp:2609
UMLApp::m_copyTimer
QTimer * m_copyTimer
Definition: uml.h:466
UMLApp::setLang_pascal
void setLang_pascal()
Definition: uml.cpp:2619
UMLApp::initSavedCodeGenerators
void initSavedCodeGenerators()
UMLApp::enableUndoAction
void enableUndoAction(bool enable)
Definition: uml.cpp:2336
UMLApp::findMenu
QMenu * findMenu(const QString &name)
Definition: uml.cpp:147
UMLApp::setLang_actionscript
void setLang_actionscript()
Definition: uml.cpp:2574
UMLApp::slotActivityDiagram
void slotActivityDiagram()
Definition: uml.cpp:1887
UMLApp::m_listDock
QDockWidget * m_listDock
Contains the UMLListView tree view.
Definition: uml.h:414
UMLApp::filePrint
QAction * filePrint
Definition: uml.h:430
UMLApp::mainViewWidget
QWidget * mainViewWidget() const
Definition: uml.cpp:3245
UMLApp::slotShowTreeView
void slotShowTreeView(bool state)
Definition: uml.cpp:2731
UMLApp::m_clipTimer
QTimer * m_clipTimer
Definition: uml.h:465
UMLApp::slotObjectDiagram
void slotObjectDiagram()
Definition: uml.cpp:1847
UMLApp::logWindow
QListWidget * logWindow() const
Definition: uml.cpp:2005
UMLApp::enablePrint
void enablePrint(bool enable)
Definition: uml.cpp:2120
UMLApp::editPaste
QAction * editPaste
Definition: uml.h:433
UMLApp::initStatusBar
void initStatusBar()
Definition: uml.cpp:907
UMLApp::m_xhtmlGenerator
XhtmlGenerator * m_xhtmlGenerator
Definition: uml.h:513
UMLApp::isUndoActionEnabled
bool isUndoActionEnabled() const
Definition: uml.cpp:2325
UMLApp::viewShowCmdHistory
QAction * viewShowCmdHistory
Definition: uml.h:441
UMLApp::m_codegen
CodeGenerator * m_codegen
Active code generator.
Definition: uml.h:389
UMLApp::setLang_php5
void setLang_php5()
Definition: uml.cpp:2634
UMLApp::viewShowDebug
QAction * viewShowDebug
Definition: uml.h:438
UMLApp::activeLanguage
Uml::ProgrammingLanguage::Enum activeLanguage() const
Definition: uml.cpp:2708
UMLApp::slotFileNew
void slotFileNew()
Definition: uml.cpp:1342
UMLApp::config
KConfig * config()
Definition: uml.cpp:3681
UMLApp::imageMimeType
QString imageMimeType() const
Definition: uml.cpp:3370
UMLApp::m_imageExporterAll
UMLViewImageExporterAll * m_imageExporterAll
Used to export all the views.
Definition: uml.h:497
UMLApp::m_pQUndoView
QUndoView * m_pQUndoView
Undo / Redo Viewer.
Definition: uml.h:424
UMLApp::editRedo
QAction * editRedo
Definition: uml.h:435
UMLApp::redo
void redo()
Definition: uml.cpp:3599
UMLApp::slotStatusMsg
void slotStatusMsg(const QString &text)
Definition: uml.cpp:1811
UMLApp::setProgLangAction
void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char *name, const char *action)
Definition: uml.cpp:357
UMLApp::slotEntityRelationshipDiagram
void slotEntityRelationshipDiagram()
Definition: uml.cpp:1911
UMLApp::slotDeleteDiagram
void slotDeleteDiagram()
Definition: uml.cpp:3050
UMLApp::createBirdView
void createBirdView(UMLView *view)
Definition: uml.cpp:3259
UMLApp::isPasteState
bool isPasteState() const
Definition: uml.cpp:2280
UMLApp::setupZoomMenu
void setupZoomMenu()
Definition: uml.cpp:872
UMLApp::setLang_java
void setLang_java()
Definition: uml.cpp:2604
UMLApp::m_defaultZoomWdg
QWidget * m_defaultZoomWdg
Definition: uml.h:503
UMLApp::initGenerator
void initGenerator()
Definition: uml.cpp:3103
UMLApp::slotStateDiagram
void slotStateDiagram()
Definition: uml.cpp:1879
UMLApp::viewShowBirdView
QAction * viewShowBirdView
Definition: uml.h:442
UMLApp::createZoomAction
QAction * createZoomAction(int zoom, int currentZoom)
Definition: uml.cpp:856
UMLApp::deleteSelectedWidget
KAction * deleteSelectedWidget
Definition: uml.h:459
UMLApp::setModified
void setModified(bool _m)
Definition: uml.cpp:2092
UMLApp::canDecode
static bool canDecode(const QMimeData *mimeSource)
Definition: uml.cpp:2152
UMLApp::m_policyext
CodeGenPolicyExt * m_policyext
Active policy extension.
Definition: uml.h:391
UMLApp::slotXhtmlDocGenerationFinished
void slotXhtmlDocGenerationFinished(bool status)
Definition: uml.cpp:3517
UMLApp::m_propertyDock
QDockWidget * m_propertyDock
Contains the property browser widget.
Definition: uml.h:418
UMLApp::slotEditCut
void slotEditCut()
Definition: uml.cpp:1754
UMLApp::slotOpenFileInEditor
bool slotOpenFileInEditor(const QUrl &file, int startCursor=0, int endCursor=0)
Definition: uml.cpp:3535
UMLApp::importFiles
void importFiles(QStringList &fileList, const QString &rootPath=QString())
Definition: uml.cpp:2876
UMLApp::zoom100Action
QAction * zoom100Action
Definition: uml.h:452
UMLApp::openDocumentFile
void openDocumentFile(const KUrl &url=KUrl())
Definition: uml.cpp:1122
UMLApp::setLang_cpp
void setLang_cpp()
Definition: uml.cpp:2584
UMLApp::readOptionState
void readOptionState() const
Definition: uml.cpp:2396
UMLApp::resetStatusMsg
void resetStatusMsg()
Definition: uml.cpp:1820
UMLApp::m_docWindow
DocWindow * m_docWindow
Documentation window.
Definition: uml.h:422
UMLApp::slotChangeTabRight
void slotChangeTabRight()
Definition: uml.cpp:3434
UMLApp::setLang_none
void setLang_none()
Definition: uml.cpp:2674
UMLApp::m_loading
bool m_loading
True if the application is opening an existing document.
Definition: uml.h:468
UMLApp::slotGenerateAllCode
void slotGenerateAllCode()
Definition: uml.cpp:2554
UMLApp::isSimpleCodeGeneratorActive
bool isSimpleCodeGeneratorActive() const
Definition: uml.cpp:2541
UMLApp::listView
UMLListView * listView() const
Definition: uml.cpp:1149
UMLApp::m_langSelect
QMenu * m_langSelect
For selecting the active language.
Definition: uml.h:385
UMLApp::slotCurrentViewChanged
void slotCurrentViewChanged()
Definition: uml.cpp:2988
UMLApp::tabWidget
KTabWidget * tabWidget()
Definition: uml.cpp:3546
UMLApp::m_doc
UMLDoc * m_doc
Definition: uml.h:409
UMLApp::undo
void undo()
Definition: uml.cpp:3575
UMLApp::slotPrefs
void slotPrefs(MultiPageDialogBase::PageType page=MultiPageDialogBase::GeneralPage)
Definition: uml.cpp:2199
UMLApp::slotAlignHorizontalMiddle
void slotAlignHorizontalMiddle()
Definition: uml.cpp:1959
UMLApp::slotZoomFit
void slotZoomFit()
Definition: uml.cpp:772
UMLApp::slotShowBirdView
void slotShowBirdView(bool state)
Definition: uml.cpp:2761
UMLApp::setPolicyExt
void setPolicyExt(CodeGenPolicyExt *policy)
Definition: uml.cpp:2467
UMLApp::slotShowDebugView
void slotShowDebugView(bool state)
Definition: uml.cpp:2737
UMLApp::slotShowCmdHistoryView
void slotShowCmdHistoryView(bool state)
Definition: uml.cpp:2749
UMLApp::handleCursorKeyReleaseEvent
void handleCursorKeyReleaseEvent(QKeyEvent *e)
Definition: uml.cpp:3168
UMLApp::m_settingsDialog
SettingsDialog * m_settingsDialog
The global UML settings dialog.
Definition: uml.h:495
UMLApp::updateLangSelectMenu
void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage)
Definition: uml.cpp:3119
UMLApp::slotFileExportDocbook
void slotFileExportDocbook()
Definition: uml.cpp:1683
UMLApp::setLang_ada
void setLang_ada()
Definition: uml.cpp:2579
UMLApp::slotChangeTabLeft
void slotChangeTabLeft()
Definition: uml.cpp:3404
UMLApp::slotComponentDiagram
void slotComponentDiagram()
Definition: uml.cpp:1895
UMLApp::slotViewsExportImages
void slotViewsExportImages()
Definition: uml.cpp:2804
UMLApp::defaultLanguage
Uml::ProgrammingLanguage::Enum defaultLanguage() const
Definition: uml.cpp:3094
UMLApp::slotFileSaveAs
bool slotFileSaveAs()
Definition: uml.cpp:1461
UMLApp::slotCurrentProperties
void slotCurrentProperties()
Definition: uml.cpp:2817
UMLApp::slotAlignVerticalDistribute
void slotAlignVerticalDistribute()
Definition: uml.cpp:1967
UMLApp::slotFileOpenRecent
void slotFileOpenRecent(const KUrl &url)
Definition: uml.cpp:1409
UMLApp::currentView
UMLView * currentView() const
Definition: uml.cpp:3351
UMLApp::setGenerator
void setGenerator(CodeGenerator *gen, bool giveWarning=true)
UMLApp::m_view
QPointer< UMLView > m_view
Definition: uml.h:402
UMLApp::slotCurrentViewToggleShowGrid
void slotCurrentViewToggleShowGrid()
Definition: uml.cpp:2787
UMLApp::refactor
void refactor(UMLClassifier *classifier)
Definition: uml.cpp:2446
UMLApp::setLang_vala
void setLang_vala()
Definition: uml.cpp:2664
UMLApp::slotImportClass
void slotImportClass()
Definition: uml.cpp:2906
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: uml.cpp:2699
UMLApp::slotEditRedo
void slotEditRedo()
Definition: uml.cpp:1744
UMLApp::defaultCursor
QCursor defaultCursor() const
UMLApp::slotImportProject
void slotImportProject()
Definition: uml.cpp:2942
UMLApp::fileOpenRecent
KRecentFilesAction * fileOpenRecent
Definition: uml.h:428
UMLApp::m_toolsbar
WorkToolBar * m_toolsbar
Definition: uml.h:464
UMLApp::m_pZoomInPB
QPushButton * m_pZoomInPB
Definition: uml.h:505
UMLApp::m_statusBarMessage
QLabel * m_statusBarMessage
Definition: uml.h:509
UMLApp::saveProperties
virtual void saveProperties(KConfigGroup &cfg)
Definition: uml.cpp:1255
UMLApp::slotZoomSliderMoved
void slotZoomSliderMoved(int value)
Definition: uml.cpp:764
UMLApp::slotSnapToGridToggled
void slotSnapToGridToggled(bool gridOn)
Definition: uml.cpp:3002
UMLApp::setLang_perl
void setLang_perl()
Definition: uml.cpp:2624
UMLApp::enableRedoAction
void enableRedoAction(bool enable)
Definition: uml.cpp:2357
UMLApp::m_refactoringAssist
RefactoringAssistant * m_refactoringAssist
Refactoring assistant.
Definition: uml.h:425
UMLApp::m_d
UMLAppPrivate * m_d
Definition: uml.h:363
UMLApp::activeLanguageScopeSeparator
QString activeLanguageScopeSeparator() const
Definition: uml.cpp:2725
UMLApp::slotAlignTop
void slotAlignTop()
Definition: uml.cpp:1935
UMLApp::~UMLApp
~UMLApp()
Definition: uml.cpp:315
UMLApp::slotShowLogView
void slotShowLogView(bool state)
Definition: uml.cpp:2755
UMLApp::m_pUndoStack
KUndoStack * m_pUndoStack
UndoStack used to store actions, to provide Undo/Redo feature.
Definition: uml.h:518
UMLApp::slotPrintPreview
void slotPrintPreview()
Definition: uml.cpp:1609
UMLApp::initView
void initView()
Definition: uml.cpp:978
UMLApp::slotUseCaseDiagram
void slotUseCaseDiagram()
Definition: uml.cpp:1871
UMLApp::slotFileOpen
void slotFileOpen()
Definition: uml.cpp:1360
UMLApp::log
void log(const QString &s)
Definition: uml.cpp:2025
UMLApp::readOptions
void readOptions()
Definition: uml.cpp:1209
UMLApp::editCut
QAction * editCut
Definition: uml.h:431
UMLApp::m_activeLanguage
Uml::ProgrammingLanguage::Enum m_activeLanguage
Active language.
Definition: uml.h:388
UMLApp::activeLanguageIsCaseSensitive
bool activeLanguageIsCaseSensitive() const
Definition: uml.cpp:2716
UMLApp::customEvent
virtual void customEvent(QEvent *e)
Definition: uml.cpp:3156
UMLApp::slotZoomOut
void slotZoomOut()
Definition: uml.cpp:811
UMLApp::slotImportingWizard
void slotImportingWizard()
Definition: uml.cpp:2960
UMLApp::m_layout
QVBoxLayout * m_layout
Definition: uml.h:491
UMLApp::setLang_tcl
void setLang_tcl()
Definition: uml.cpp:2659
UMLApp::newDiagram
KActionMenu * newDiagram
Definition: uml.h:444
UMLApp::m_mainDock
QDockWidget * m_mainDock
The widget which shows the diagrams.
Definition: uml.h:413
UMLApp::m_pZoomSlider
QSlider * m_pZoomSlider
Definition: uml.h:508
UMLApp::m_diagramMenu
KMenu * m_diagramMenu
Definition: uml.h:463
UMLApp::slotShowGridToggled
void slotShowGridToggled(bool gridOn)
Definition: uml.cpp:3010
UMLApp::slotCurrentViewToggleSnapToGrid
void slotCurrentViewToggleSnapToGrid()
Definition: uml.cpp:2778
UMLApp::editCopy
QAction * editCopy
Definition: uml.h:432
UMLApp::setLang_csharp
void setLang_csharp()
Definition: uml.cpp:2589
UMLApp::viewShowTree
QAction * viewShowTree
Definition: uml.h:437
UMLApp::slotUpdateViews
void slotUpdateViews()
Definition: uml.cpp:2850
UMLApp::logToConsole
bool logToConsole() const
Definition: uml.cpp:2017
UMLApp::s_instance
static UMLApp * s_instance
The last created instance of this class.
Definition: uml.h:362
UMLApp::editCutCopy
bool editCutCopy(bool bFromView)
Definition: uml.cpp:2371
UMLApp::shuttingDown
static bool shuttingDown()
Definition: uml.cpp:3130
UMLApp::viewShowLog
QAction * viewShowLog
Definition: uml.h:440
UMLApp::keyPressEvent
virtual void keyPressEvent(QKeyEvent *e)
Definition: uml.cpp:3138
UMLApp::slotCurrentViewClearDiagram
void slotCurrentViewClearDiagram()
Definition: uml.cpp:2770
UMLApp::m_undoEnabled
bool m_undoEnabled
Undo enabled flag.
Definition: uml.h:520
UMLApp::setup
void setup()
Definition: uml.cpp:252
UMLApp::setLang_sql
void setLang_sql()
Definition: uml.cpp:2654
UMLApp::newDocument
void newDocument()
Definition: uml.cpp:3235
UMLApp::viewClearDiagram
QAction * viewClearDiagram
Definition: uml.h:445
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