umbrello: umbrello/uml.h Source File

umbrello 2.32.3 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-2021 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
118 QCursor defaultCursor() const;
119
120 void setModified(bool _m);
121
122 void enablePrint(bool enable);
123
124 bool isPasteState() const;
125 bool isCutCopyState() const;
126
127 bool isUndoEnabled() const;
128 void enableUndo(bool enable);
129
130 bool isUndoActionEnabled() const;
131 void enableUndoAction(bool enable);
132
133 bool isRedoActionEnabled() const;
134 void enableRedoAction(bool enable);
135
136 bool isSimpleCodeGeneratorActive() const;
137
138 void setGenerator(CodeGenerator* gen, bool giveWarning = true);
139 CodeGenerator* setGenerator(Uml::ProgrammingLanguage::Enum pl);
140 CodeGenerator* generator() const;
141
142 CodeGenerator* createGenerator();
143 void initGenerator();
144
145 void refactor(UMLClassifier* classifier);
146
147 void viewCodeDocument(UMLClassifier* classifier);
148
149 void setDiagramMenuItemsState(bool bState);
150
151 QWidget* mainViewWidget() const;
152
153 void setCurrentView(UMLView* view, bool updateTreeView = true);
154 UMLView* currentView() const;
155
156 void setImageMimeType(const QString& mimeType);
157 QString imageMimeType() const;
158
159 bool editCutCopy(bool bFromView);
160
161#if QT_VERSION >= 0x050000
162 QTabWidget *tabWidget();
163#else
164 KTabWidget *tabWidget();
165#endif
166
167 QString statusBarMsg() const;
168
169 CodeGenerationPolicy *commonPolicy() const;
170
171 void setPolicyExt(CodeGenPolicyExt *policy);
172 CodeGenPolicyExt *policyExt() const;
173
174 void clearUndoStack();
175
176 void undo();
177 void redo();
178
179 void executeCommand(QUndoCommand* cmd);
180
181 void beginMacro(const QString & text);
182 void endMacro();
183
184 void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl);
185 Uml::ProgrammingLanguage::Enum activeLanguage() const;
186 Uml::ProgrammingLanguage::Enum defaultLanguage() const;
187
188 bool activeLanguageIsCaseSensitive() const;
189
190 QString activeLanguageScopeSeparator() const;
191
192 KConfig* config() const;
193 void importFiles(QStringList& fileList, const QString &rootPath = QString());
194
195 static bool shuttingDown();
196
197protected:
198 virtual void keyPressEvent(QKeyEvent* e);
199 virtual void keyReleaseEvent(QKeyEvent* e);
200
201 virtual void customEvent(QEvent* e);
202
203 void handleCursorKeyReleaseEvent(QKeyEvent* e);
204
205 void saveOptions();
206 void readOptions();
207
208 void initActions();
209 void initStatusBar();
210 void initView();
211
212 virtual bool queryClose();
213
214 virtual void saveProperties(KConfigGroup & cfg);
215 virtual void readProperties(const KConfigGroup & cfg);
216
217 void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage);
218
219public slots:
220 void slotExecGenerationWizard();
221 void slotImportingWizard();
222
223 void slotFileNew();
224 void slotFileOpen();
225
226#if QT_VERSION >= 0x050000
227 void slotFileOpenRecent(const QUrl& url);
228#else
229 void slotFileOpenRecent(const KUrl& url);
230#endif
231 void slotFileSave();
232 bool slotFileSaveAs();
233 void slotFileClose();
234 bool slotPrintSettings();
235 void slotPrintPreview();
236 void slotPrintPreviewPaintRequested(QPrinter *printer);
237 void slotFilePrint();
238 void slotFileQuit();
239 void slotFileExportDocbook();
240 void slotFileExportXhtml();
241 void slotFind();
242 void slotFindNext();
243 void slotFindPrevious();
244 void slotEditCut();
245 void slotEditCopy();
246 void slotEditPaste();
247 void slotStatusMsg(const QString &text);
248 void slotClassDiagram();
249 void slotObjectDiagram();
250 void slotSequenceDiagram();
251 void slotCollaborationDiagram();
252 void slotUseCaseDiagram();
253 void slotStateDiagram();
254 void slotActivityDiagram();
255 void slotComponentDiagram();
256 void slotDeploymentDiagram();
257 void slotEntityRelationshipDiagram();
258 void slotAlignLeft();
259 void slotAlignRight();
260 void slotAlignTop();
261 void slotAlignBottom();
262 void slotAlignVerticalMiddle();
263 void slotAlignHorizontalMiddle();
264 void slotAlignVerticalDistribute();
265 void slotAlignHorizontalDistribute();
266 void slotClipDataChanged();
267 void slotCopyChanged();
268 void slotPrefs(MultiPageDialogBase::PageType page = MultiPageDialogBase::GeneralPage);
269 void slotApplyPrefs();
270 void slotImportClass();
271 void slotImportProject();
272 void slotUpdateViews();
273 void slotShowTreeView(bool state);
274 void slotShowDebugView(bool state);
275 void slotShowDocumentationView(bool state);
276 void slotShowCmdHistoryView(bool state);
277 void slotShowLogView(bool state);
278 void slotShowBirdView(bool state);
279 void slotCurrentViewClearDiagram();
280 void slotCurrentViewToggleSnapToGrid();
281 void slotCurrentViewToggleShowGrid();
282 void slotCurrentViewExportImage();
283 void slotViewsExportImages();
284 void slotCurrentProperties();
285 void slotClassWizard();
286 void slotAddDefaultDatatypes();
287 void slotCurrentViewChanged();
288 void slotSnapToGridToggled(bool gridOn);
289 void slotShowGridToggled(bool gridOn);
290 void slotSelectAll();
291 void slotDeleteSelected();
292 void slotDeleteDiagram();
293#if QT_VERSION >= 0x050000
294 void slotCloseDiagram(int index);
295#else
296 void slotCloseDiagram(QWidget* tab);
297#endif
298 void slotGenerateAllCode();
299
300 void slotSetZoom(QAction* action);
301 void slotZoomSliderMoved(int value);
302 void slotZoomFit();
303 void slotZoom100();
304 void slotZoomOut();
305 void slotZoomIn();
306
307 void slotBirdViewChanged(const QPointF& newCenter);
308
309 void setupZoomMenu();
310
311 void slotEditUndo();
312 void slotEditRedo();
313
314#if QT_VERSION >= 0x050000
315 void slotTabChanged(int index);
316#else
317 void slotTabChanged(QWidget* tab);
318#endif
319 void slotChangeTabLeft();
320 void slotChangeTabRight();
321 void slotMoveTabLeft();
322 void slotMoveTabRight();
323
324 void slotXhtmlDocGenerationFinished(bool status);
325 bool slotOpenFileInEditor(const QUrl &file, int startCursor = 0, int endCursor = 0);
326
327private slots:
328 void setLang_actionscript();
329 void setLang_ada();
330 void setLang_cpp();
331 void setLang_csharp();
332 void setLang_d();
333 void setLang_idl();
334 void setLang_java();
335 void setLang_javascript();
336 void setLang_mysql();
337 void setLang_pascal();
338 void setLang_perl();
339 void setLang_php();
340 void setLang_php5();
341 void setLang_postgresql();
342 void setLang_python();
343 void setLang_ruby();
344 void setLang_sql();
345 void setLang_tcl();
346 void setLang_vala();
347 void setLang_xmlschema();
348 void setLang_none();
349#if QT_VERSION >= 0x050000
350 void slotDiagramPopupMenu(const QPoint& point);
351#endif
352
353private:
354 static UMLApp* s_instance;
355 UMLAppPrivate *m_d;
356
357 QMenu* findMenu(const QString &name);
358
359 QAction* createZoomAction(int zoom, int currentZoom);
360 void setZoom(int zoom, bool withView = true);
361
362 void resetStatusMsg();
363
364 void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char* name, const char* action);
365
366 static bool canDecode(const QMimeData* mimeSource);
367
368 void readOptionState() const;
369
370 void initClip();
371 void initSavedCodeGenerators();
372
373 void createDiagram(Uml::DiagramType::Enum type);
374
375 void createBirdView(UMLView* view);
376
377 QMenu* m_langSelect;
378 QMenu* m_zoomSelect;
379
380 Uml::ProgrammingLanguage::Enum m_activeLanguage;
381 CodeGenerator* m_codegen;
382 CodeGenerationPolicy* m_commoncodegenpolicy;
383 CodeGenPolicyExt* m_policyext;
384 // Only used for new code generators ({Cpp, Java, Ruby, D}CodeGenerator).
385
386 KSharedConfigPtr m_config;
387
394 QPointer<UMLView> m_view;
395
401 UMLDoc* m_doc;
402
403 UMLListView* m_listView;
404
405 QDockWidget* m_mainDock;
406 QDockWidget* m_listDock;
407 QDockWidget* m_debugDock;
408 QDockWidget* m_documentationDock;
409 QDockWidget* m_cmdHistoryDock;
410 QDockWidget* m_propertyDock;
411 QDockWidget* m_logDock;
412 BirdViewDockWidget* m_birdViewDock;
413
414 DocWindow* m_docWindow;
415 QListWidget* m_logWindow;
416 BirdView* m_birdView;
417 QUndoView* m_pQUndoView;
418 RefactoringAssistant* m_refactoringAssist;
419
420 // KAction pointers to enable/disable actions
421 KRecentFilesAction* fileOpenRecent;
422 QAction* printPreview;
423 QAction* filePrint;
424 QAction* editCut;
425 QAction* editCopy;
426 QAction* editPaste;
427 QAction* editUndo;
428 QAction* editRedo;
429
430 QAction* viewShowTree;
431 QAction* viewShowDebug;
432 QAction* viewShowDoc;
433 QAction* viewShowLog;
434 QAction* viewShowCmdHistory;
435 QAction* viewShowBirdView;
436
437 KActionMenu* newDiagram;
438 QAction* viewClearDiagram;
439
440 KToggleAction* viewSnapToGrid;
441 KToggleAction* viewShowGrid;
442 QAction* viewExportImage;
443 QAction* viewProperties;
444
445 QAction* zoom100Action;
446
447 QAction* m_langAct[Uml::ProgrammingLanguage::Reserved + 1];
448#if QT_VERSION >= 0x050000
449 QAction* deleteSelectedWidget;
450 QAction* deleteDiagram;
451#else
452 KAction* deleteSelectedWidget;
453 KAction* deleteDiagram;
454#endif
455 QToolButton* m_newSessionButton;
456 KMenu* m_diagramMenu;
457 WorkToolBar* m_toolsbar;
458 QTimer* m_clipTimer;
459 QTimer* m_copyTimer;
460
461 bool m_loading;
462
467 QStackedWidget* m_viewStack;
468
473#if QT_VERSION >= 0x050000
474 QTabWidget* m_tabWidget;
475#else
476 KTabWidget* m_tabWidget;
477#endif
478
484 QVBoxLayout* m_layout;
485
486 QString m_imageMimeType;
487
488 SettingsDialog* m_settingsDialog;
489
490 UMLViewImageExporterAll* m_imageExporterAll;
491
495 QLabel* m_zoomValueLbl;
496 QPushButton* m_pZoomOutPB;
497 QPushButton* m_pZoomInPB;
498 StatusBarToolButton* m_pZoomFitSBTB;
499 StatusBarToolButton* m_pZoomFullSBTB;
500 QSlider* m_pZoomSlider;
501 QLabel* m_statusBarMessage;
505 XhtmlGenerator* m_xhtmlGenerator;
506
507#if QT_VERSION >= 0x050000
508 QUndoStack* m_pUndoStack;
509#else
510 KUndoStack* m_pUndoStack;
511#endif
512 bool m_undoEnabled;
513
514 bool m_hasBegunMacro;
515
516 QPointer<DiagramPrintPage> m_printSettings;
517 QPrinter *m_printer;
518 static bool s_shuttingDown;
519
520signals:
521 void sigCutSuccessful();
522
523 friend class UMLAppPrivate;
524 friend class UMLView;
525};
526
527#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:52
UMLApp
Definition: uml.h:95
UMLApp::slotClassWizard
void slotClassWizard()
Definition: uml.cpp:2794
UMLApp::slotZoom100
void slotZoom100()
Definition: uml.cpp:726
UMLApp::setImageMimeType
void setImageMimeType(const QString &mimeType)
Definition: uml.cpp:3184
UMLApp::m_debugDock
QDockWidget * m_debugDock
Contains the debug DocWindow widget.
Definition: uml.h:407
UMLApp::slotCloseDiagram
void slotCloseDiagram(QWidget *tab)
Definition: uml.cpp:2900
UMLApp::slotExecGenerationWizard
void slotExecGenerationWizard()
Definition: uml.cpp:2388
UMLApp::slotSelectAll
void slotSelectAll()
Definition: uml.cpp:2842
UMLApp::enableUndo
void enableUndo(bool enable)
Definition: uml.cpp:2134
UMLApp::slotFilePrint
void slotFilePrint()
Definition: uml.cpp:1536
UMLApp::readProperties
virtual void readProperties(const KConfigGroup &cfg)
Definition: uml.cpp:1188
UMLApp::deleteDiagram
KAction * deleteDiagram
Definition: uml.h:453
UMLApp::slotTabChanged
void slotTabChanged(QWidget *tab)
Definition: uml.cpp:3216
UMLApp::setLang_postgresql
void setLang_postgresql()
Definition: uml.cpp:2463
UMLApp::m_printer
QPrinter * m_printer
print instance
Definition: uml.h:517
UMLApp::setLang_php
void setLang_php()
Definition: uml.cpp:2453
UMLApp::queryClose
virtual bool queryClose()
Definition: uml.cpp:1232
UMLApp::slotCollaborationDiagram
void slotCollaborationDiagram()
Definition: uml.cpp:1763
UMLApp::slotFileClose
void slotFileClose()
Definition: uml.cpp:1428
UMLApp::m_logDock
QDockWidget * m_logDock
Contains the log window widget.
Definition: uml.h:411
UMLApp::docWindow
DocWindow * docWindow() const
Definition: uml.cpp:1895
UMLApp::saveOptions
void saveOptions()
Definition: uml.cpp:1083
UMLApp::m_commoncodegenpolicy
CodeGenerationPolicy * m_commoncodegenpolicy
Definition: uml.h:382
UMLApp::slotSetZoom
void slotSetZoom(QAction *action)
Definition: uml.cpp:768
UMLApp::slotApplyPrefs
void slotApplyPrefs()
Definition: uml.cpp:2042
UMLApp::slotEditCopy
void slotEditCopy()
Definition: uml.cpp:1677
UMLApp::viewExportImage
QAction * viewExportImage
Definition: uml.h:442
UMLApp::slotDeploymentDiagram
void slotDeploymentDiagram()
Definition: uml.cpp:1803
UMLApp::setZoom
void setZoom(int zoom, bool withView=true)
Definition: uml.cpp:753
UMLApp::s_shuttingDown
static bool s_shuttingDown
Definition: uml.h:518
UMLApp::m_documentationDock
QDockWidget * m_documentationDock
Contains the documentation DocWindow widget.
Definition: uml.h:408
UMLApp::workToolBar
WorkToolBar * workToolBar() const
Definition: uml.cpp:1885
UMLApp::viewCodeDocument
void viewCodeDocument(UMLClassifier *classifier)
Definition: uml.cpp:2238
UMLApp::slotFileQuit
void slotFileQuit()
Definition: uml.cpp:1567
UMLApp::slotCopyChanged
void slotCopyChanged()
Definition: uml.cpp:2008
UMLApp::sigCutSuccessful
void sigCutSuccessful()
UMLApp::m_cmdHistoryDock
QDockWidget * m_cmdHistoryDock
Contains the undo/redo viewer widget.
Definition: uml.h:409
UMLApp::slotFind
void slotFind()
Definition: uml.cpp:1438
UMLApp::viewShowDoc
QAction * viewShowDoc
Definition: uml.h:432
UMLApp::slotEditUndo
void slotEditUndo()
Definition: uml.cpp:1634
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: uml.cpp:2299
UMLApp::m_printSettings
QPointer< DiagramPrintPage > m_printSettings
printer diagram settings
Definition: uml.h:516
UMLApp::m_pZoomFullSBTB
StatusBarToolButton * m_pZoomFullSBTB
Definition: uml.h:499
UMLApp::slotAddDefaultDatatypes
void slotAddDefaultDatatypes()
Definition: uml.cpp:2804
UMLApp::statusBarMsg
QString statusBarMsg() const
Definition: uml.cpp:3381
UMLApp::editUndo
QAction * editUndo
Definition: uml.h:427
UMLApp::m_birdView
BirdView * m_birdView
Bird View window.
Definition: uml.h:416
UMLApp::slotPrintPreviewPaintRequested
void slotPrintPreviewPaintRequested(QPrinter *printer)
Definition: uml.cpp:1528
UMLApp::slotAlignHorizontalDistribute
void slotAlignHorizontalDistribute()
Definition: uml.cpp:1875
UMLApp::viewShowGrid
KToggleAction * viewShowGrid
Definition: uml.h:441
UMLApp::m_newSessionButton
QToolButton * m_newSessionButton
Definition: uml.h:455
UMLApp::initActions
void initActions()
Definition: uml.cpp:295
UMLApp::m_listView
UMLListView * m_listView
Listview shows the current open file.
Definition: uml.h:403
UMLApp::slotMoveTabRight
void slotMoveTabRight()
Definition: uml.cpp:3317
UMLApp::setLang_d
void setLang_d()
Definition: uml.cpp:2418
UMLApp::m_imageMimeType
QString m_imageMimeType
Default mime type to use for image export.
Definition: uml.h:486
UMLApp::setCurrentView
void setCurrentView(UMLView *view, bool updateTreeView=true)
Definition: uml.cpp:3115
UMLApp::setLang_xmlschema
void setLang_xmlschema()
Definition: uml.cpp:2493
UMLApp::beginMacro
void beginMacro(const QString &text)
Definition: uml.cpp:3469
UMLApp::generator
CodeGenerator * generator() const
Definition: uml.cpp:2355
UMLApp::setLang_idl
void setLang_idl()
Definition: uml.cpp:2423
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1063
UMLApp::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *e)
Definition: uml.cpp:3032
UMLApp::slotZoomIn
void slotZoomIn()
Definition: uml.cpp:742
UMLApp::slotFileExportXhtml
void slotFileExportXhtml()
Definition: uml.cpp:1608
UMLApp::slotClassDiagram
void slotClassDiagram()
Definition: uml.cpp:1739
UMLApp::setLang_python
void setLang_python()
Definition: uml.cpp:2468
UMLApp::createGenerator
CodeGenerator * createGenerator()
UMLApp::slotFileSave
void slotFileSave()
Definition: uml.cpp:1347
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2283
UMLApp::slotPrintSettings
bool slotPrintSettings()
Definition: uml.cpp:1472
UMLApp::clearUndoStack
void clearUndoStack()
Definition: uml.cpp:3390
UMLApp::createDiagram
void createDiagram(Uml::DiagramType::Enum type)
Definition: uml.cpp:1729
UMLApp::m_hasBegunMacro
bool m_hasBegunMacro
Macro creation flag.
Definition: uml.h:514
UMLApp::printPreview
QAction * printPreview
Definition: uml.h:422
UMLApp::endMacro
void endMacro()
Definition: uml.cpp:3488
UMLApp::slotAlignRight
void slotAlignRight()
Definition: uml.cpp:1827
UMLApp::executeCommand
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3447
UMLApp::isRedoActionEnabled
bool isRedoActionEnabled() const
Definition: uml.cpp:2170
UMLApp::slotMoveTabLeft
void slotMoveTabLeft()
Definition: uml.cpp:3295
UMLApp::m_viewStack
QStackedWidget * m_viewStack
Definition: uml.h:467
UMLApp::m_zoomValueLbl
QLabel * m_zoomValueLbl
Definition: uml.h:495
UMLApp::slotBirdViewChanged
void slotBirdViewChanged(const QPointF &newCenter)
Definition: uml.cpp:3097
UMLApp::m_langAct
QAction * m_langAct[Uml::ProgrammingLanguage::Reserved+1]
Definition: uml.h:447
UMLApp::setDiagramMenuItemsState
void setDiagramMenuItemsState(bool bState)
Definition: uml.cpp:2655
UMLApp::m_pZoomOutPB
QPushButton * m_pZoomOutPB
Definition: uml.h:496
UMLApp::isUndoEnabled
bool isUndoEnabled() const
Definition: uml.cpp:2124
UMLApp::viewProperties
QAction * viewProperties
Definition: uml.h:443
UMLApp::slotClipDataChanged
void slotClipDataChanged()
Definition: uml.cpp:1997
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:275
UMLApp::isCutCopyState
bool isCutCopyState() const
Definition: uml.cpp:2114
UMLApp::m_zoomSelect
QMenu * m_zoomSelect
Popup menu for zoom selection.
Definition: uml.h:378
UMLApp::m_tabWidget
KTabWidget * m_tabWidget
Definition: uml.h:476
UMLApp::slotShowDocumentationView
void slotShowDocumentationView(bool state)
Definition: uml.cpp:2567
UMLApp::config
KConfig * config() const
Definition: uml.cpp:3505
UMLApp::slotCurrentViewExportImage
void slotCurrentViewExportImage()
Definition: uml.cpp:2620
UMLApp::slotDeleteSelected
void slotDeleteSelected()
Definition: uml.cpp:2850
UMLApp::slotFindNext
void slotFindNext()
Definition: uml.cpp:1454
UMLApp::slotAlignBottom
void slotAlignBottom()
Definition: uml.cpp:1843
UMLApp::m_config
KSharedConfigPtr m_config
The configuration object of the application.
Definition: uml.h:386
UMLApp::initClip
void initClip()
Definition: uml.cpp:1953
UMLApp::setLang_mysql
void setLang_mysql()
Definition: uml.cpp:2438
UMLApp::setLang_ruby
void setLang_ruby()
Definition: uml.cpp:2473
UMLApp::m_birdViewDock
BirdViewDockWidget * m_birdViewDock
Contains the bird's eye view.
Definition: uml.h:412
UMLApp::slotEditPaste
void slotEditPaste()
Definition: uml.cpp:1689
UMLApp::slotFindPrevious
void slotFindPrevious()
Definition: uml.cpp:1463
UMLApp::slotAlignLeft
void slotAlignLeft()
Definition: uml.cpp:1819
UMLApp::slotSequenceDiagram
void slotSequenceDiagram()
Definition: uml.cpp:1755
UMLApp::slotAlignVerticalMiddle
void slotAlignVerticalMiddle()
Definition: uml.cpp:1851
UMLApp::viewSnapToGrid
KToggleAction * viewSnapToGrid
Definition: uml.h:440
UMLApp::m_pZoomFitSBTB
StatusBarToolButton * m_pZoomFitSBTB
Definition: uml.h:498
UMLApp::setLang_javascript
void setLang_javascript()
Definition: uml.cpp:2433
UMLApp::m_copyTimer
QTimer * m_copyTimer
Definition: uml.h:459
UMLApp::setLang_pascal
void setLang_pascal()
Definition: uml.cpp:2443
UMLApp::initSavedCodeGenerators
void initSavedCodeGenerators()
UMLApp::enableUndoAction
void enableUndoAction(bool enable)
Definition: uml.cpp:2160
UMLApp::findMenu
QMenu * findMenu(const QString &name)
Definition: uml.cpp:145
UMLApp::setLang_actionscript
void setLang_actionscript()
Definition: uml.cpp:2398
UMLApp::slotActivityDiagram
void slotActivityDiagram()
Definition: uml.cpp:1787
UMLApp::m_listDock
QDockWidget * m_listDock
Contains the UMLListView tree view.
Definition: uml.h:406
UMLApp::filePrint
QAction * filePrint
Definition: uml.h:423
UMLApp::mainViewWidget
QWidget * mainViewWidget() const
Definition: uml.cpp:3069
UMLApp::slotShowTreeView
void slotShowTreeView(bool state)
Definition: uml.cpp:2555
UMLApp::m_clipTimer
QTimer * m_clipTimer
Definition: uml.h:458
UMLApp::slotObjectDiagram
void slotObjectDiagram()
Definition: uml.cpp:1747
UMLApp::logWindow
QListWidget * logWindow() const
Definition: uml.cpp:1905
UMLApp::enablePrint
void enablePrint(bool enable)
Definition: uml.cpp:1944
UMLApp::editPaste
QAction * editPaste
Definition: uml.h:426
UMLApp::initStatusBar
void initStatusBar()
Definition: uml.cpp:830
UMLApp::m_xhtmlGenerator
XhtmlGenerator * m_xhtmlGenerator
Definition: uml.h:505
UMLApp::isUndoActionEnabled
bool isUndoActionEnabled() const
Definition: uml.cpp:2149
UMLApp::viewShowCmdHistory
QAction * viewShowCmdHistory
Definition: uml.h:434
UMLApp::m_codegen
CodeGenerator * m_codegen
Active code generator.
Definition: uml.h:381
UMLApp::setLang_php5
void setLang_php5()
Definition: uml.cpp:2458
UMLApp::viewShowDebug
QAction * viewShowDebug
Definition: uml.h:431
UMLApp::activeLanguage
Uml::ProgrammingLanguage::Enum activeLanguage() const
Definition: uml.cpp:2532
UMLApp::slotFileNew
void slotFileNew()
Definition: uml.cpp:1246
UMLApp::imageMimeType
QString imageMimeType() const
Definition: uml.cpp:3194
UMLApp::m_imageExporterAll
UMLViewImageExporterAll * m_imageExporterAll
Used to export all the views.
Definition: uml.h:490
UMLApp::m_pQUndoView
QUndoView * m_pQUndoView
Undo / Redo Viewer.
Definition: uml.h:417
UMLApp::editRedo
QAction * editRedo
Definition: uml.h:428
UMLApp::redo
void redo()
Definition: uml.cpp:3423
UMLApp::slotStatusMsg
void slotStatusMsg(const QString &text)
Definition: uml.cpp:1711
UMLApp::setProgLangAction
void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char *name, const char *action)
Definition: uml.cpp:283
UMLApp::slotEntityRelationshipDiagram
void slotEntityRelationshipDiagram()
Definition: uml.cpp:1811
UMLApp::slotDeleteDiagram
void slotDeleteDiagram()
Definition: uml.cpp:2874
UMLApp::createBirdView
void createBirdView(UMLView *view)
Definition: uml.cpp:3083
UMLApp::isPasteState
bool isPasteState() const
Definition: uml.cpp:2104
UMLApp::setupZoomMenu
void setupZoomMenu()
Definition: uml.cpp:795
UMLApp::setLang_java
void setLang_java()
Definition: uml.cpp:2428
UMLApp::initGenerator
void initGenerator()
Definition: uml.cpp:2927
UMLApp::slotStateDiagram
void slotStateDiagram()
Definition: uml.cpp:1779
UMLApp::viewShowBirdView
QAction * viewShowBirdView
Definition: uml.h:435
UMLApp::createZoomAction
QAction * createZoomAction(int zoom, int currentZoom)
Definition: uml.cpp:779
UMLApp::deleteSelectedWidget
KAction * deleteSelectedWidget
Definition: uml.h:452
UMLApp::setModified
void setModified(bool _m)
Definition: uml.cpp:1916
UMLApp::canDecode
static bool canDecode(const QMimeData *mimeSource)
Definition: uml.cpp:1976
UMLApp::m_policyext
CodeGenPolicyExt * m_policyext
Active policy extension.
Definition: uml.h:383
UMLApp::slotXhtmlDocGenerationFinished
void slotXhtmlDocGenerationFinished(bool status)
Definition: uml.cpp:3341
UMLApp::m_propertyDock
QDockWidget * m_propertyDock
Contains the property browser widget.
Definition: uml.h:410
UMLApp::slotEditCut
void slotEditCut()
Definition: uml.cpp:1654
UMLApp::slotOpenFileInEditor
bool slotOpenFileInEditor(const QUrl &file, int startCursor=0, int endCursor=0)
Definition: uml.cpp:3359
UMLApp::importFiles
void importFiles(QStringList &fileList, const QString &rootPath=QString())
Definition: uml.cpp:2700
UMLApp::zoom100Action
QAction * zoom100Action
Definition: uml.h:445
UMLApp::openDocumentFile
void openDocumentFile(const KUrl &url=KUrl())
Definition: uml.cpp:1046
UMLApp::setLang_cpp
void setLang_cpp()
Definition: uml.cpp:2408
UMLApp::readOptionState
void readOptionState() const
Definition: uml.cpp:2220
UMLApp::resetStatusMsg
void resetStatusMsg()
Definition: uml.cpp:1720
UMLApp::m_docWindow
DocWindow * m_docWindow
Documentation window.
Definition: uml.h:414
UMLApp::slotChangeTabRight
void slotChangeTabRight()
Definition: uml.cpp:3258
UMLApp::setLang_none
void setLang_none()
Definition: uml.cpp:2498
UMLApp::m_loading
bool m_loading
True if the application is opening an existing document.
Definition: uml.h:461
UMLApp::slotGenerateAllCode
void slotGenerateAllCode()
Definition: uml.cpp:2378
UMLApp::isSimpleCodeGeneratorActive
bool isSimpleCodeGeneratorActive() const
Definition: uml.cpp:2365
UMLApp::listView
UMLListView * listView() const
Definition: uml.cpp:1073
UMLApp::m_langSelect
QMenu * m_langSelect
For selecting the active language.
Definition: uml.h:377
UMLApp::slotCurrentViewChanged
void slotCurrentViewChanged()
Definition: uml.cpp:2812
UMLApp::tabWidget
KTabWidget * tabWidget()
Definition: uml.cpp:3370
UMLApp::m_doc
UMLDoc * m_doc
Definition: uml.h:401
UMLApp::undo
void undo()
Definition: uml.cpp:3399
UMLApp::slotPrefs
void slotPrefs(MultiPageDialogBase::PageType page=MultiPageDialogBase::GeneralPage)
Definition: uml.cpp:2023
UMLApp::slotAlignHorizontalMiddle
void slotAlignHorizontalMiddle()
Definition: uml.cpp:1859
UMLApp::slotZoomFit
void slotZoomFit()
Definition: uml.cpp:694
UMLApp::slotShowBirdView
void slotShowBirdView(bool state)
Definition: uml.cpp:2585
UMLApp::setPolicyExt
void setPolicyExt(CodeGenPolicyExt *policy)
Definition: uml.cpp:2291
UMLApp::slotShowDebugView
void slotShowDebugView(bool state)
Definition: uml.cpp:2561
UMLApp::slotShowCmdHistoryView
void slotShowCmdHistoryView(bool state)
Definition: uml.cpp:2573
UMLApp::handleCursorKeyReleaseEvent
void handleCursorKeyReleaseEvent(QKeyEvent *e)
Definition: uml.cpp:2992
UMLApp::m_settingsDialog
SettingsDialog * m_settingsDialog
The global UML settings dialog.
Definition: uml.h:488
UMLApp::updateLangSelectMenu
void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage)
Definition: uml.cpp:2943
UMLApp::slotFileExportDocbook
void slotFileExportDocbook()
Definition: uml.cpp:1583
UMLApp::setLang_ada
void setLang_ada()
Definition: uml.cpp:2403
UMLApp::slotChangeTabLeft
void slotChangeTabLeft()
Definition: uml.cpp:3228
UMLApp::slotComponentDiagram
void slotComponentDiagram()
Definition: uml.cpp:1795
UMLApp::slotViewsExportImages
void slotViewsExportImages()
Definition: uml.cpp:2628
UMLApp::defaultLanguage
Uml::ProgrammingLanguage::Enum defaultLanguage() const
Definition: uml.cpp:2918
UMLApp::slotFileSaveAs
bool slotFileSaveAs()
Definition: uml.cpp:1364
UMLApp::slotCurrentProperties
void slotCurrentProperties()
Definition: uml.cpp:2641
UMLApp::slotAlignVerticalDistribute
void slotAlignVerticalDistribute()
Definition: uml.cpp:1867
UMLApp::slotFileOpenRecent
void slotFileOpenRecent(const KUrl &url)
Definition: uml.cpp:1312
UMLApp::currentView
UMLView * currentView() const
Definition: uml.cpp:3175
UMLApp::setGenerator
void setGenerator(CodeGenerator *gen, bool giveWarning=true)
UMLApp::m_view
QPointer< UMLView > m_view
Definition: uml.h:394
UMLApp::slotCurrentViewToggleShowGrid
void slotCurrentViewToggleShowGrid()
Definition: uml.cpp:2611
UMLApp::refactor
void refactor(UMLClassifier *classifier)
Definition: uml.cpp:2270
UMLApp::setLang_vala
void setLang_vala()
Definition: uml.cpp:2488
UMLApp::slotImportClass
void slotImportClass()
Definition: uml.cpp:2730
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: uml.cpp:2523
UMLApp::slotEditRedo
void slotEditRedo()
Definition: uml.cpp:1644
UMLApp::defaultCursor
QCursor defaultCursor() const
UMLApp::slotImportProject
void slotImportProject()
Definition: uml.cpp:2766
UMLApp::fileOpenRecent
KRecentFilesAction * fileOpenRecent
Definition: uml.h:421
UMLApp::m_toolsbar
WorkToolBar * m_toolsbar
Definition: uml.h:457
UMLApp::m_pZoomInPB
QPushButton * m_pZoomInPB
Definition: uml.h:497
UMLApp::m_statusBarMessage
QLabel * m_statusBarMessage
Definition: uml.h:501
UMLApp::saveProperties
virtual void saveProperties(KConfigGroup &cfg)
Definition: uml.cpp:1159
UMLApp::slotZoomSliderMoved
void slotZoomSliderMoved(int value)
Definition: uml.cpp:686
UMLApp::slotSnapToGridToggled
void slotSnapToGridToggled(bool gridOn)
Definition: uml.cpp:2826
UMLApp::setLang_perl
void setLang_perl()
Definition: uml.cpp:2448
UMLApp::enableRedoAction
void enableRedoAction(bool enable)
Definition: uml.cpp:2181
UMLApp::m_refactoringAssist
RefactoringAssistant * m_refactoringAssist
Refactoring assistant.
Definition: uml.h:418
UMLApp::m_d
UMLAppPrivate * m_d
Definition: uml.h:355
UMLApp::activeLanguageScopeSeparator
QString activeLanguageScopeSeparator() const
Definition: uml.cpp:2549
UMLApp::UMLApp
UMLApp(QWidget *parent=0)
Definition: uml.cpp:160
UMLApp::slotAlignTop
void slotAlignTop()
Definition: uml.cpp:1835
UMLApp::~UMLApp
~UMLApp()
Definition: uml.cpp:241
UMLApp::slotShowLogView
void slotShowLogView(bool state)
Definition: uml.cpp:2579
UMLApp::m_pUndoStack
KUndoStack * m_pUndoStack
UndoStack used to store actions, to provide Undo/Redo feature.
Definition: uml.h:510
UMLApp::slotPrintPreview
void slotPrintPreview()
Definition: uml.cpp:1509
UMLApp::initView
void initView()
Definition: uml.cpp:902
UMLApp::slotUseCaseDiagram
void slotUseCaseDiagram()
Definition: uml.cpp:1771
UMLApp::slotFileOpen
void slotFileOpen()
Definition: uml.cpp:1264
UMLApp::readOptions
void readOptions()
Definition: uml.cpp:1133
UMLApp::editCut
QAction * editCut
Definition: uml.h:424
UMLApp::m_activeLanguage
Uml::ProgrammingLanguage::Enum m_activeLanguage
Active language.
Definition: uml.h:380
UMLApp::activeLanguageIsCaseSensitive
bool activeLanguageIsCaseSensitive() const
Definition: uml.cpp:2540
UMLApp::customEvent
virtual void customEvent(QEvent *e)
Definition: uml.cpp:2980
UMLApp::slotZoomOut
void slotZoomOut()
Definition: uml.cpp:734
UMLApp::m_logWindow
QListWidget * m_logWindow
Logging window.
Definition: uml.h:415
UMLApp::slotImportingWizard
void slotImportingWizard()
Definition: uml.cpp:2784
UMLApp::m_layout
QVBoxLayout * m_layout
Definition: uml.h:484
UMLApp::setLang_tcl
void setLang_tcl()
Definition: uml.cpp:2483
UMLApp::newDiagram
KActionMenu * newDiagram
Definition: uml.h:437
UMLApp::m_mainDock
QDockWidget * m_mainDock
The widget which shows the diagrams.
Definition: uml.h:405
UMLApp::m_pZoomSlider
QSlider * m_pZoomSlider
Definition: uml.h:500
UMLApp::m_diagramMenu
KMenu * m_diagramMenu
Definition: uml.h:456
UMLApp::slotShowGridToggled
void slotShowGridToggled(bool gridOn)
Definition: uml.cpp:2834
UMLApp::slotCurrentViewToggleSnapToGrid
void slotCurrentViewToggleSnapToGrid()
Definition: uml.cpp:2602
UMLApp::editCopy
QAction * editCopy
Definition: uml.h:425
UMLApp::setLang_csharp
void setLang_csharp()
Definition: uml.cpp:2413
UMLApp::viewShowTree
QAction * viewShowTree
Definition: uml.h:430
UMLApp::slotUpdateViews
void slotUpdateViews()
Definition: uml.cpp:2674
UMLApp::s_instance
static UMLApp * s_instance
The last created instance of this class.
Definition: uml.h:354
UMLApp::editCutCopy
bool editCutCopy(bool bFromView)
Definition: uml.cpp:2195
UMLApp::shuttingDown
static bool shuttingDown()
Definition: uml.cpp:2954
UMLApp::viewShowLog
QAction * viewShowLog
Definition: uml.h:433
UMLApp::keyPressEvent
virtual void keyPressEvent(QKeyEvent *e)
Definition: uml.cpp:2962
UMLApp::slotCurrentViewClearDiagram
void slotCurrentViewClearDiagram()
Definition: uml.cpp:2594
UMLApp::m_undoEnabled
bool m_undoEnabled
Undo enabled flag.
Definition: uml.h:512
UMLApp::setLang_sql
void setLang_sql()
Definition: uml.cpp:2478
UMLApp::newDocument
void newDocument()
Definition: uml.cpp:3059
UMLApp::viewClearDiagram
QAction * viewClearDiagram
Definition: uml.h:438
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