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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UML_H
12 #define UML_H
13
14 #include "basictypes.h"
15 #include "multipagedialogbase.h"
16
17 // kde includes
18 #include <kxmlguiwindow.h>
19 #if QT_VERSION < 0x050000
20 #include <kurl.h>
21 #endif
22 #include <ksharedconfig.h>
23
24 // qt includes
25 #include <QPointer>
26 #if QT_VERSION >= 0x050000
27 #include <QUrl>
28 #endif
29
30 // forward declaration of the UML classes
31 class BirdView;
32 class BirdViewDockWidget;
33 class CodeDocument;
34 class CodeGenerator;
35 class CodeGenerationPolicy;
36 class CodeGenPolicyExt;
37 class DocWindow;
38 class UMLAppPrivate;
39 class UMLClassifier;
40 class UMLDoc;
41 class UMLListView;
42 class UMLView;
43 class WorkToolBar;
44 class SettingsDialog;
45 class UMLViewImageExporterAll;
46 class RefactoringAssistant;
47 class XhtmlGenerator;
48 class StatusBarToolButton;
49 class DiagramPrintPage;
50
51 // KDE forward declarations
52 class KActionMenu;
53 class KRecentFilesAction;
54 class KToggleAction;
55 class KTabWidget;
56 class KMenu;
57 #if QT_VERSION < 0x050000
58 class KUndoStack;
59 #endif
60 class KAction;
61
62 // Qt forward declarations
63 class QStackedWidget;
64 class QToolButton;
65 class QDockWidget;
66 class QVBoxLayout;
67 class QKeyEvent;
68 class QMenu;
69 class QMimeData;
70 class QPrinter;
71 class QUndoCommand;
72 class QUndoView;
73 #if QT_VERSION >= 0x050000
74 class QUndoStack;
75 #endif
76 class QPushButton;
77 class QLabel;
78 class QListWidget;
79 class QSlider;
80
99 class UMLApp : public KXmlGuiWindow
100 {
101 Q_OBJECT
102 public:
103 explicit UMLApp(QWidget* parent = 0);
104 ~UMLApp();
105
106 static UMLApp* app();
107
108 #if QT_VERSION >= 0x050000
109 void openDocumentFile(const QUrl& url=QUrl());
110 #else
111 void openDocumentFile(const KUrl& url=KUrl());
112 #endif
113
114 void newDocument();
115
116 UMLDoc *document() const;
117
118 UMLListView* listView() const;
119 WorkToolBar* workToolBar() const;
120 DocWindow * docWindow() const;
121 QListWidget *logWindow() const;
122
123 QCursor defaultCursor();
124
125 void setModified(bool _m);
126
127 void enablePrint(bool enable);
128
129 bool isPasteState() const;
130 bool isCutCopyState() const;
131
132 bool isUndoEnabled();
133 void enableUndo(bool enable);
134
135 bool isUndoActionEnabled() const;
136 void enableUndoAction(bool enable);
137
138 bool isRedoActionEnabled() const;
139 void enableRedoAction(bool enable);
140
141 bool isSimpleCodeGeneratorActive();
142
143 void setGenerator(CodeGenerator* gen, bool giveWarning = true);
144 CodeGenerator* setGenerator(Uml::ProgrammingLanguage::Enum pl);
145 CodeGenerator* generator() const;
146
147 CodeGenerator* createGenerator();
148 void initGenerator();
149
150 void refactor(UMLClassifier* classifier);
151
152 void viewCodeDocument(UMLClassifier* classifier);
153
154 void setDiagramMenuItemsState(bool bState);
155
156 QWidget* mainViewWidget();
157
158 void setCurrentView(UMLView* view, bool updateTreeView = true);
159 UMLView* currentView() const;
160
161 void setImageMimeType(const QString& mimeType);
162 QString imageMimeType() const;
163
164 bool editCutCopy(bool bFromView);
165
166 #if QT_VERSION >= 0x050000
167 QTabWidget *tabWidget();
168 #else
169 KTabWidget *tabWidget();
170 #endif
171
172 QString statusBarMsg();
173
174 CodeGenerationPolicy *commonPolicy() const;
175
176 void setPolicyExt(CodeGenPolicyExt *policy);
177 CodeGenPolicyExt *policyExt() const;
178
179 void clearUndoStack();
180
181 void undo();
182 void redo();
183
184 void executeCommand(QUndoCommand* cmd);
185
186 void beginMacro(const QString & text);
187 void endMacro();
188
189 void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl);
190 Uml::ProgrammingLanguage::Enum activeLanguage() const;
191 Uml::ProgrammingLanguage::Enum defaultLanguage();
192
193 bool activeLanguageIsCaseSensitive();
194
195 QString activeLanguageScopeSeparator();
196
197 KConfig* config();
198 void importFiles(QStringList& fileList, const QString &rootPath = QString());
199
200 static bool shuttingDown();
201
202 protected:
203 virtual void keyPressEvent(QKeyEvent* e);
204 virtual void keyReleaseEvent(QKeyEvent* e);
205
206 virtual void customEvent(QEvent* e);
207
208 void handleCursorKeyReleaseEvent(QKeyEvent* e);
209
210 void saveOptions();
211 void readOptions();
212
213 void initActions();
214 void initStatusBar();
215 void initView();
216
217 virtual bool queryClose();
218
219 virtual void saveProperties(KConfigGroup & cfg);
220 virtual void readProperties(const KConfigGroup & cfg);
221
222 void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage);
223
224 public slots:
225 void slotExecGenerationWizard();
226 void slotImportingWizard();
227
228 void slotFileNew();
229 void slotFileOpen();
230
231 #if QT_VERSION >= 0x050000
232 void slotFileOpenRecent(const QUrl& url);
233 #else
234 void slotFileOpenRecent(const KUrl& url);
235 #endif
236 void slotFileSave();
237 bool slotFileSaveAs();
238 void slotFileClose();
239 bool slotPrintSettings();
240 void slotPrintPreview();
241 void slotPrintPreviewPaintRequested(QPrinter *printer);
242 void slotFilePrint();
243 void slotFileQuit();
244 void slotFileExportDocbook();
245 void slotFileExportXhtml();
246 void slotFind();
247 void slotFindNext();
248 void slotFindPrevious();
249 void slotEditCut();
250 void slotEditCopy();
251 void slotEditPaste();
252 void slotStatusMsg(const QString &text);
253 void slotClassDiagram();
254 void slotObjectDiagram();
255 void slotSequenceDiagram();
256 void slotCollaborationDiagram();
257 void slotUseCaseDiagram();
258 void slotStateDiagram();
259 void slotActivityDiagram();
260 void slotComponentDiagram();
261 void slotDeploymentDiagram();
262 void slotEntityRelationshipDiagram();
263 void slotAlignLeft();
264 void slotAlignRight();
265 void slotAlignTop();
266 void slotAlignBottom();
267 void slotAlignVerticalMiddle();
268 void slotAlignHorizontalMiddle();
269 void slotAlignVerticalDistribute();
270 void slotAlignHorizontalDistribute();
271 void slotClipDataChanged();
272 void slotCopyChanged();
273 void slotPrefs(MultiPageDialogBase::PageType page = MultiPageDialogBase::GeneralPage);
274 void slotApplyPrefs();
275 void slotImportClass();
276 void slotImportProject();
277 void slotUpdateViews();
278 void slotShowTreeView(bool state);
279 void slotShowDebugView(bool state);
280 void slotShowDocumentationView(bool state);
281 void slotShowCmdHistoryView(bool state);
282 void slotShowLogView(bool state);
283 void slotShowBirdView(bool state);
284 void slotCurrentViewClearDiagram();
285 void slotCurrentViewToggleSnapToGrid();
286 void slotCurrentViewToggleShowGrid();
287 void slotCurrentViewExportImage();
288 void slotViewsExportImages();
289 void slotCurrentProperties();
290 void slotClassWizard();
291 void slotAddDefaultDatatypes();
292 void slotCurrentViewChanged();
293 void slotSnapToGridToggled(bool gridOn);
294 void slotShowGridToggled(bool gridOn);
295 void slotSelectAll();
296 void slotDeleteSelected();
297 void slotDeleteDiagram();
298 #if QT_VERSION >= 0x050000
299 void slotCloseDiagram(int index);
300 #else
301 void slotCloseDiagram(QWidget* tab);
302 #endif
303 void slotGenerateAllCode();
304
305 void slotSetZoom(QAction* action);
306 void slotZoomSliderMoved(int value);
307 void slotZoomFit();
308 void slotZoom100();
309 void slotZoomOut();
310 void slotZoomIn();
311
312 void slotBirdViewChanged(const QPointF& newCenter);
313
314 void setupZoomMenu();
315
316 void slotEditUndo();
317 void slotEditRedo();
318
319 #if QT_VERSION >= 0x050000
320 void slotTabChanged(int index);
321 #else
322 void slotTabChanged(QWidget* tab);
323 #endif
324 void slotChangeTabLeft();
325 void slotChangeTabRight();
326 void slotMoveTabLeft();
327 void slotMoveTabRight();
328
329 void slotXhtmlDocGenerationFinished(bool status);
330 bool slotOpenFileInEditor(const QUrl &file, int startCursor = 0, int endCursor = 0);
331
332 private slots:
333 void setLang_actionscript();
334 void setLang_ada();
335 void setLang_cpp();
336 void setLang_csharp();
337 void setLang_d();
338 void setLang_idl();
339 void setLang_java();
340 void setLang_javascript();
341 void setLang_mysql();
342 void setLang_pascal();
343 void setLang_perl();
344 void setLang_php();
345 void setLang_php5();
346 void setLang_postgresql();
347 void setLang_python();
348 void setLang_ruby();
349 void setLang_sql();
350 void setLang_tcl();
351 void setLang_vala();
352 void setLang_xmlschema();
353 #if QT_VERSION >= 0x050000
354 void slotDiagramPopupMenu(const QPoint& point);
355 #endif
356
357 private:
358 static UMLApp* s_instance;
359 UMLAppPrivate *m_d;
360
361 QMenu* findMenu(const QString &name);
362
363 QAction* createZoomAction(int zoom, int currentZoom);
364 void setZoom(int zoom, bool withView = true);
365
366 void resetStatusMsg();
367
368 void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char* name, const char* action);
369
370 static bool canDecode(const QMimeData* mimeSource);
371
372 void readOptionState();
373
374 void initClip();
375 void initSavedCodeGenerators();
376
377 void createDiagram(Uml::DiagramType::Enum type);
378
379 void createBirdView(UMLView* view);
380
381 QMenu* m_langSelect;
382 QMenu* m_zoomSelect;
383
384 Uml::ProgrammingLanguage::Enum m_activeLanguage;
385 CodeGenerator* m_codegen;
386 CodeGenerationPolicy* m_commoncodegenpolicy;
387 CodeGenPolicyExt* m_policyext;
388 // Only used for new code generators ({Cpp, Java, Ruby, D}CodeGenerator).
389
390 KSharedConfigPtr m_config;
391
398 QPointer<UMLView> m_view;
399
405 UMLDoc* m_doc;
406
407 UMLListView* m_listView;
408
409 QDockWidget* m_mainDock;
410 QDockWidget* m_listDock;
411 QDockWidget* m_debugDock;
412 QDockWidget* m_documentationDock;
413 QDockWidget* m_cmdHistoryDock;
414 QDockWidget* m_propertyDock;
415 QDockWidget* m_logDock;
416 BirdViewDockWidget* m_birdViewDock;
417
418 DocWindow* m_docWindow;
419 QListWidget* m_logWindow;
420 BirdView* m_birdView;
421 QUndoView* m_pQUndoView;
422 RefactoringAssistant* m_refactoringAssist;
423
424 // KAction pointers to enable/disable actions
425 KRecentFilesAction* fileOpenRecent;
426 QAction* printPreview;
427 QAction* filePrint;
428 QAction* editCut;
429 QAction* editCopy;
430 QAction* editPaste;
431 QAction* editUndo;
432 QAction* editRedo;
433
434 QAction* viewShowTree;
435 QAction* viewShowDebug;
436 QAction* viewShowDoc;
437 QAction* viewShowLog;
438 QAction* viewShowCmdHistory;
439 QAction* viewShowBirdView;
440
441 KActionMenu* newDiagram;
442 QAction* viewClearDiagram;
443
444 KToggleAction* viewSnapToGrid;
445 KToggleAction* viewShowGrid;
446 QAction* viewExportImage;
447 QAction* viewProperties;
448
449 QAction* zoom100Action;
450
451 QAction* m_langAct[Uml::ProgrammingLanguage::Reserved];
452 #if QT_VERSION >= 0x050000
453 QAction* deleteSelectedWidget;
454 QAction* deleteDiagram;
455 #else
456 KAction* deleteSelectedWidget;
457 KAction* deleteDiagram;
458 #endif
459 QToolButton* m_newSessionButton;
460 KMenu* m_diagramMenu;
461 WorkToolBar* m_toolsbar;
462 QTimer* m_clipTimer;
463 QTimer* m_copyTimer;
464
465 bool m_loading;
466
471 QStackedWidget* m_viewStack;
472
477 #if QT_VERSION >= 0x050000
478 QTabWidget* m_tabWidget;
479 #else
480 KTabWidget* m_tabWidget;
481 #endif
482
488 QVBoxLayout* m_layout;
489
490 QString m_imageMimeType;
491
492 SettingsDialog* m_settingsDialog;
493
494 UMLViewImageExporterAll* m_imageExporterAll;
495
499 QLabel* m_zoomValueLbl;
500 QPushButton* m_pZoomOutPB;
501 QPushButton* m_pZoomInPB;
502 StatusBarToolButton* m_pZoomFitSBTB;
503 StatusBarToolButton* m_pZoomFullSBTB;
504 QSlider* m_pZoomSlider;
505 QLabel* m_statusBarMessage;
509 XhtmlGenerator* m_xhtmlGenerator;
510
511 #if QT_VERSION >= 0x050000
512 QUndoStack* m_pUndoStack;
513 #else
514 KUndoStack* m_pUndoStack;
515 #endif
516 bool m_undoEnabled;
517
518 bool m_hasBegunMacro;
519
520 QPointer<DiagramPrintPage> m_printSettings;
521 QPrinter *m_printer;
522 static bool s_shuttingDown;
523
524 signals:
525 void sigCutSuccessful();
526
527 friend class UMLAppPrivate;
528 friend class UMLView;
529 };
530
531 #endif // UML_H
basictypes.h
BirdViewDockWidget
The class BirdViewDockWidget contains the bird view.
Definition: birdview.h:41
BirdView
The class BirdView controls the view of the whole scene.
Definition: birdview.h:65
CodeDocument
Definition: codedocument.h:33
CodeGenPolicyExt
Definition: codegenpolicyext.h:28
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
CodeGenerator
Definition: codegenerator.h:57
DiagramPrintPage
A print dialog page.
Definition: diagramprintpage.h:38
DocWindow
Definition: docwindow.h:30
MultiPageDialogBase::PageType
PageType
Available page types.
Definition: multipagedialogbase.h:57
MultiPageDialogBase::GeneralPage
@ GeneralPage
Definition: multipagedialogbase.h:64
RefactoringAssistant
Definition: refactoringassistant.h:28
SettingsDialog
Definition: settingsdialog.h:52
StatusBarToolButton
Definition: statusbartoolbutton.h:34
UMLAppPrivate
Definition: umlappprivate.h:57
UMLApp
Definition: uml.h:100
UMLApp::slotClassWizard
void slotClassWizard()
Definition: uml.cpp:2785
UMLApp::slotZoom100
void slotZoom100()
Definition: uml.cpp:727
UMLApp::setImageMimeType
void setImageMimeType(const QString &mimeType)
Definition: uml.cpp:3175
UMLApp::m_debugDock
QDockWidget * m_debugDock
Contains the debug DocWindow widget.
Definition: uml.h:411
UMLApp::slotCloseDiagram
void slotCloseDiagram(QWidget *tab)
Definition: uml.cpp:2891
UMLApp::slotExecGenerationWizard
void slotExecGenerationWizard()
Definition: uml.cpp:2384
UMLApp::slotSelectAll
void slotSelectAll()
Definition: uml.cpp:2833
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:1189
UMLApp::deleteDiagram
KAction * deleteDiagram
Definition: uml.h:457
UMLApp::slotTabChanged
void slotTabChanged(QWidget *tab)
Definition: uml.cpp:3207
UMLApp::setLang_postgresql
void setLang_postgresql()
Definition: uml.cpp:2459
UMLApp::m_printer
QPrinter * m_printer
print instance
Definition: uml.h:521
UMLApp::setLang_php
void setLang_php()
Definition: uml.cpp:2449
UMLApp::queryClose
virtual bool queryClose()
Definition: uml.cpp:1233
UMLApp::slotCollaborationDiagram
void slotCollaborationDiagram()
Definition: uml.cpp:1763
UMLApp::slotFileClose
void slotFileClose()
Definition: uml.cpp:1429
UMLApp::m_logDock
QDockWidget * m_logDock
Contains the log window widget.
Definition: uml.h:415
UMLApp::docWindow
DocWindow * docWindow() const
Definition: uml.cpp:1895
UMLApp::saveOptions
void saveOptions()
Definition: uml.cpp:1084
UMLApp::m_commoncodegenpolicy
CodeGenerationPolicy * m_commoncodegenpolicy
Definition: uml.h:386
UMLApp::slotSetZoom
void slotSetZoom(QAction *action)
Definition: uml.cpp:769
UMLApp::slotApplyPrefs
void slotApplyPrefs()
Definition: uml.cpp:2042
UMLApp::slotEditCopy
void slotEditCopy()
Definition: uml.cpp:1677
UMLApp::viewExportImage
QAction * viewExportImage
Definition: uml.h:446
UMLApp::slotDeploymentDiagram
void slotDeploymentDiagram()
Definition: uml.cpp:1803
UMLApp::setZoom
void setZoom(int zoom, bool withView=true)
Definition: uml.cpp:754
UMLApp::s_shuttingDown
static bool s_shuttingDown
Definition: uml.h:522
UMLApp::m_documentationDock
QDockWidget * m_documentationDock
Contains the documentation DocWindow widget.
Definition: uml.h:412
UMLApp::defaultLanguage
Uml::ProgrammingLanguage::Enum defaultLanguage()
Definition: uml.cpp:2909
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:413
UMLApp::slotFind
void slotFind()
Definition: uml.cpp:1438
UMLApp::viewShowDoc
QAction * viewShowDoc
Definition: uml.h:436
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:520
UMLApp::mainViewWidget
QWidget * mainViewWidget()
Definition: uml.cpp:3060
UMLApp::m_pZoomFullSBTB
StatusBarToolButton * m_pZoomFullSBTB
Definition: uml.h:503
UMLApp::slotAddDefaultDatatypes
void slotAddDefaultDatatypes()
Definition: uml.cpp:2795
UMLApp::editUndo
QAction * editUndo
Definition: uml.h:431
UMLApp::m_birdView
BirdView * m_birdView
Bird View window.
Definition: uml.h:420
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:445
UMLApp::m_newSessionButton
QToolButton * m_newSessionButton
Definition: uml.h:459
UMLApp::initActions
void initActions()
Definition: uml.cpp:298
UMLApp::m_listView
UMLListView * m_listView
Listview shows the current open file.
Definition: uml.h:407
UMLApp::slotMoveTabRight
void slotMoveTabRight()
Definition: uml.cpp:3308
UMLApp::setLang_d
void setLang_d()
Definition: uml.cpp:2414
UMLApp::m_imageMimeType
QString m_imageMimeType
Default mime type to use for image export.
Definition: uml.h:490
UMLApp::setCurrentView
void setCurrentView(UMLView *view, bool updateTreeView=true)
Definition: uml.cpp:3106
UMLApp::setLang_xmlschema
void setLang_xmlschema()
Definition: uml.cpp:2489
UMLApp::beginMacro
void beginMacro(const QString &text)
Definition: uml.cpp:3460
UMLApp::generator
CodeGenerator * generator() const
Definition: uml.cpp:2351
UMLApp::setLang_idl
void setLang_idl()
Definition: uml.cpp:2419
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
UMLApp::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *e)
Definition: uml.cpp:3023
UMLApp::slotZoomIn
void slotZoomIn()
Definition: uml.cpp:743
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:2464
UMLApp::slotFileSave
void slotFileSave()
Definition: uml.cpp:1348
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2283
UMLApp::slotPrintSettings
bool slotPrintSettings()
Definition: uml.cpp:1472
UMLApp::clearUndoStack
void clearUndoStack()
Definition: uml.cpp:3381
UMLApp::createDiagram
void createDiagram(Uml::DiagramType::Enum type)
Definition: uml.cpp:1729
UMLApp::m_hasBegunMacro
bool m_hasBegunMacro
Macro creation flag.
Definition: uml.h:518
UMLApp::printPreview
QAction * printPreview
Definition: uml.h:426
UMLApp::endMacro
void endMacro()
Definition: uml.cpp:3479
UMLApp::slotAlignRight
void slotAlignRight()
Definition: uml.cpp:1827
UMLApp::executeCommand
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3438
UMLApp::isRedoActionEnabled
bool isRedoActionEnabled() const
Definition: uml.cpp:2170
UMLApp::slotMoveTabLeft
void slotMoveTabLeft()
Definition: uml.cpp:3286
UMLApp::m_viewStack
QStackedWidget * m_viewStack
Definition: uml.h:471
UMLApp::m_zoomValueLbl
QLabel * m_zoomValueLbl
Definition: uml.h:499
UMLApp::slotBirdViewChanged
void slotBirdViewChanged(const QPointF &newCenter)
Definition: uml.cpp:3088
UMLApp::setDiagramMenuItemsState
void setDiagramMenuItemsState(bool bState)
Definition: uml.cpp:2646
UMLApp::m_pZoomOutPB
QPushButton * m_pZoomOutPB
Definition: uml.h:500
UMLApp::viewProperties
QAction * viewProperties
Definition: uml.h:447
UMLApp::slotClipDataChanged
void slotClipDataChanged()
Definition: uml.cpp:1997
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLApp::isCutCopyState
bool isCutCopyState() const
Definition: uml.cpp:2114
UMLApp::m_zoomSelect
QMenu * m_zoomSelect
Popup menu for zoom selection.
Definition: uml.h:382
UMLApp::m_tabWidget
KTabWidget * m_tabWidget
Definition: uml.h:480
UMLApp::slotShowDocumentationView
void slotShowDocumentationView(bool state)
Definition: uml.cpp:2558
UMLApp::slotCurrentViewExportImage
void slotCurrentViewExportImage()
Definition: uml.cpp:2611
UMLApp::slotDeleteSelected
void slotDeleteSelected()
Definition: uml.cpp:2841
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:390
UMLApp::initClip
void initClip()
Definition: uml.cpp:1953
UMLApp::setLang_mysql
void setLang_mysql()
Definition: uml.cpp:2434
UMLApp::setLang_ruby
void setLang_ruby()
Definition: uml.cpp:2469
UMLApp::m_birdViewDock
BirdViewDockWidget * m_birdViewDock
Contains the bird's eye view.
Definition: uml.h:416
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::activeLanguageScopeSeparator
QString activeLanguageScopeSeparator()
Definition: uml.cpp:2540
UMLApp::slotSequenceDiagram
void slotSequenceDiagram()
Definition: uml.cpp:1755
UMLApp::slotAlignVerticalMiddle
void slotAlignVerticalMiddle()
Definition: uml.cpp:1851
UMLApp::viewSnapToGrid
KToggleAction * viewSnapToGrid
Definition: uml.h:444
UMLApp::m_pZoomFitSBTB
StatusBarToolButton * m_pZoomFitSBTB
Definition: uml.h:502
UMLApp::setLang_javascript
void setLang_javascript()
Definition: uml.cpp:2429
UMLApp::m_copyTimer
QTimer * m_copyTimer
Definition: uml.h:463
UMLApp::setLang_pascal
void setLang_pascal()
Definition: uml.cpp:2439
UMLApp::initSavedCodeGenerators
void initSavedCodeGenerators()
UMLApp::enableUndoAction
void enableUndoAction(bool enable)
Definition: uml.cpp:2160
UMLApp::findMenu
QMenu * findMenu(const QString &name)
Definition: uml.cpp:148
UMLApp::setLang_actionscript
void setLang_actionscript()
Definition: uml.cpp:2394
UMLApp::slotActivityDiagram
void slotActivityDiagram()
Definition: uml.cpp:1787
UMLApp::m_listDock
QDockWidget * m_listDock
Contains the UMLListView tree view.
Definition: uml.h:410
UMLApp::filePrint
QAction * filePrint
Definition: uml.h:427
UMLApp::slotShowTreeView
void slotShowTreeView(bool state)
Definition: uml.cpp:2546
UMLApp::m_clipTimer
QTimer * m_clipTimer
Definition: uml.h:462
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:430
UMLApp::initStatusBar
void initStatusBar()
Definition: uml.cpp:831
UMLApp::m_xhtmlGenerator
XhtmlGenerator * m_xhtmlGenerator
Definition: uml.h:509
UMLApp::isUndoActionEnabled
bool isUndoActionEnabled() const
Definition: uml.cpp:2149
UMLApp::viewShowCmdHistory
QAction * viewShowCmdHistory
Definition: uml.h:438
UMLApp::m_codegen
CodeGenerator * m_codegen
Active code generator.
Definition: uml.h:385
UMLApp::setLang_php5
void setLang_php5()
Definition: uml.cpp:2454
UMLApp::viewShowDebug
QAction * viewShowDebug
Definition: uml.h:435
UMLApp::activeLanguage
Uml::ProgrammingLanguage::Enum activeLanguage() const
Definition: uml.cpp:2523
UMLApp::slotFileNew
void slotFileNew()
Definition: uml.cpp:1247
UMLApp::config
KConfig * config()
Definition: uml.cpp:3496
UMLApp::imageMimeType
QString imageMimeType() const
Definition: uml.cpp:3185
UMLApp::m_imageExporterAll
UMLViewImageExporterAll * m_imageExporterAll
Used to export all the views.
Definition: uml.h:494
UMLApp::m_pQUndoView
QUndoView * m_pQUndoView
Undo / Redo Viewer.
Definition: uml.h:421
UMLApp::readOptionState
void readOptionState()
Definition: uml.cpp:2220
UMLApp::isSimpleCodeGeneratorActive
bool isSimpleCodeGeneratorActive()
Definition: uml.cpp:2361
UMLApp::editRedo
QAction * editRedo
Definition: uml.h:432
UMLApp::redo
void redo()
Definition: uml.cpp:3414
UMLApp::statusBarMsg
QString statusBarMsg()
Definition: uml.cpp:3372
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:286
UMLApp::slotEntityRelationshipDiagram
void slotEntityRelationshipDiagram()
Definition: uml.cpp:1811
UMLApp::slotDeleteDiagram
void slotDeleteDiagram()
Definition: uml.cpp:2865
UMLApp::createBirdView
void createBirdView(UMLView *view)
Definition: uml.cpp:3074
UMLApp::isPasteState
bool isPasteState() const
Definition: uml.cpp:2104
UMLApp::setupZoomMenu
void setupZoomMenu()
Definition: uml.cpp:796
UMLApp::setLang_java
void setLang_java()
Definition: uml.cpp:2424
UMLApp::initGenerator
void initGenerator()
Definition: uml.cpp:2918
UMLApp::activeLanguageIsCaseSensitive
bool activeLanguageIsCaseSensitive()
Definition: uml.cpp:2531
UMLApp::slotStateDiagram
void slotStateDiagram()
Definition: uml.cpp:1779
UMLApp::viewShowBirdView
QAction * viewShowBirdView
Definition: uml.h:439
UMLApp::createZoomAction
QAction * createZoomAction(int zoom, int currentZoom)
Definition: uml.cpp:780
UMLApp::createGenerator
CodeGenerator * createGenerator()
UMLApp::deleteSelectedWidget
KAction * deleteSelectedWidget
Definition: uml.h:456
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:387
UMLApp::slotXhtmlDocGenerationFinished
void slotXhtmlDocGenerationFinished(bool status)
Definition: uml.cpp:3332
UMLApp::m_propertyDock
QDockWidget * m_propertyDock
Contains the property browser widget.
Definition: uml.h:414
UMLApp::slotEditCut
void slotEditCut()
Definition: uml.cpp:1654
UMLApp::slotOpenFileInEditor
bool slotOpenFileInEditor(const QUrl &file, int startCursor=0, int endCursor=0)
Definition: uml.cpp:3350
UMLApp::importFiles
void importFiles(QStringList &fileList, const QString &rootPath=QString())
Definition: uml.cpp:2691
UMLApp::zoom100Action
QAction * zoom100Action
Definition: uml.h:449
UMLApp::openDocumentFile
void openDocumentFile(const KUrl &url=KUrl())
Definition: uml.cpp:1047
UMLApp::setLang_cpp
void setLang_cpp()
Definition: uml.cpp:2404
UMLApp::resetStatusMsg
void resetStatusMsg()
Definition: uml.cpp:1720
UMLApp::m_docWindow
DocWindow * m_docWindow
Documentation window.
Definition: uml.h:418
UMLApp::slotChangeTabRight
void slotChangeTabRight()
Definition: uml.cpp:3249
UMLApp::m_loading
bool m_loading
True if the application is opening an existing document.
Definition: uml.h:465
UMLApp::slotGenerateAllCode
void slotGenerateAllCode()
Definition: uml.cpp:2374
UMLApp::listView
UMLListView * listView() const
Definition: uml.cpp:1074
UMLApp::m_langSelect
QMenu * m_langSelect
For selecting the active language.
Definition: uml.h:381
UMLApp::m_langAct
QAction * m_langAct[Uml::ProgrammingLanguage::Reserved]
Definition: uml.h:451
UMLApp::slotCurrentViewChanged
void slotCurrentViewChanged()
Definition: uml.cpp:2803
UMLApp::tabWidget
KTabWidget * tabWidget()
Definition: uml.cpp:3361
UMLApp::m_doc
UMLDoc * m_doc
Definition: uml.h:405
UMLApp::undo
void undo()
Definition: uml.cpp:3390
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:695
UMLApp::isUndoEnabled
bool isUndoEnabled()
Definition: uml.cpp:2124
UMLApp::slotShowBirdView
void slotShowBirdView(bool state)
Definition: uml.cpp:2576
UMLApp::setPolicyExt
void setPolicyExt(CodeGenPolicyExt *policy)
Definition: uml.cpp:2291
UMLApp::slotShowDebugView
void slotShowDebugView(bool state)
Definition: uml.cpp:2552
UMLApp::slotShowCmdHistoryView
void slotShowCmdHistoryView(bool state)
Definition: uml.cpp:2564
UMLApp::handleCursorKeyReleaseEvent
void handleCursorKeyReleaseEvent(QKeyEvent *e)
Definition: uml.cpp:2983
UMLApp::m_settingsDialog
SettingsDialog * m_settingsDialog
The global UML settings dialog.
Definition: uml.h:492
UMLApp::updateLangSelectMenu
void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage)
Definition: uml.cpp:2934
UMLApp::defaultCursor
QCursor defaultCursor()
UMLApp::slotFileExportDocbook
void slotFileExportDocbook()
Definition: uml.cpp:1583
UMLApp::setLang_ada
void setLang_ada()
Definition: uml.cpp:2399
UMLApp::slotChangeTabLeft
void slotChangeTabLeft()
Definition: uml.cpp:3219
UMLApp::slotComponentDiagram
void slotComponentDiagram()
Definition: uml.cpp:1795
UMLApp::slotViewsExportImages
void slotViewsExportImages()
Definition: uml.cpp:2619
UMLApp::slotFileSaveAs
bool slotFileSaveAs()
Definition: uml.cpp:1365
UMLApp::slotCurrentProperties
void slotCurrentProperties()
Definition: uml.cpp:2632
UMLApp::slotAlignVerticalDistribute
void slotAlignVerticalDistribute()
Definition: uml.cpp:1867
UMLApp::slotFileOpenRecent
void slotFileOpenRecent(const KUrl &url)
Definition: uml.cpp:1313
UMLApp::currentView
UMLView * currentView() const
Definition: uml.cpp:3166
UMLApp::setGenerator
void setGenerator(CodeGenerator *gen, bool giveWarning=true)
UMLApp::m_view
QPointer< UMLView > m_view
Definition: uml.h:398
UMLApp::slotCurrentViewToggleShowGrid
void slotCurrentViewToggleShowGrid()
Definition: uml.cpp:2602
UMLApp::refactor
void refactor(UMLClassifier *classifier)
Definition: uml.cpp:2270
UMLApp::setLang_vala
void setLang_vala()
Definition: uml.cpp:2484
UMLApp::slotImportClass
void slotImportClass()
Definition: uml.cpp:2721
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: uml.cpp:2514
UMLApp::slotEditRedo
void slotEditRedo()
Definition: uml.cpp:1644
UMLApp::slotImportProject
void slotImportProject()
Definition: uml.cpp:2757
UMLApp::fileOpenRecent
KRecentFilesAction * fileOpenRecent
Definition: uml.h:425
UMLApp::m_toolsbar
WorkToolBar * m_toolsbar
Definition: uml.h:461
UMLApp::m_pZoomInPB
QPushButton * m_pZoomInPB
Definition: uml.h:501
UMLApp::m_statusBarMessage
QLabel * m_statusBarMessage
Definition: uml.h:505
UMLApp::saveProperties
virtual void saveProperties(KConfigGroup &cfg)
Definition: uml.cpp:1160
UMLApp::slotZoomSliderMoved
void slotZoomSliderMoved(int value)
Definition: uml.cpp:687
UMLApp::slotSnapToGridToggled
void slotSnapToGridToggled(bool gridOn)
Definition: uml.cpp:2817
UMLApp::setLang_perl
void setLang_perl()
Definition: uml.cpp:2444
UMLApp::enableRedoAction
void enableRedoAction(bool enable)
Definition: uml.cpp:2181
UMLApp::m_refactoringAssist
RefactoringAssistant * m_refactoringAssist
Refactoring assistant.
Definition: uml.h:422
UMLApp::m_d
UMLAppPrivate * m_d
Definition: uml.h:359
UMLApp::UMLApp
UMLApp(QWidget *parent=0)
Definition: uml.cpp:163
UMLApp::slotAlignTop
void slotAlignTop()
Definition: uml.cpp:1835
UMLApp::~UMLApp
~UMLApp()
Definition: uml.cpp:244
UMLApp::slotShowLogView
void slotShowLogView(bool state)
Definition: uml.cpp:2570
UMLApp::m_pUndoStack
KUndoStack * m_pUndoStack
UndoStack used to store actions, to provide Undo/Redo feature.
Definition: uml.h:514
UMLApp::slotPrintPreview
void slotPrintPreview()
Definition: uml.cpp:1509
UMLApp::initView
void initView()
Definition: uml.cpp:903
UMLApp::slotUseCaseDiagram
void slotUseCaseDiagram()
Definition: uml.cpp:1771
UMLApp::slotFileOpen
void slotFileOpen()
Definition: uml.cpp:1265
UMLApp::readOptions
void readOptions()
Definition: uml.cpp:1134
UMLApp::editCut
QAction * editCut
Definition: uml.h:428
UMLApp::m_activeLanguage
Uml::ProgrammingLanguage::Enum m_activeLanguage
Active language.
Definition: uml.h:384
UMLApp::customEvent
virtual void customEvent(QEvent *e)
Definition: uml.cpp:2971
UMLApp::slotZoomOut
void slotZoomOut()
Definition: uml.cpp:735
UMLApp::m_logWindow
QListWidget * m_logWindow
Logging window.
Definition: uml.h:419
UMLApp::slotImportingWizard
void slotImportingWizard()
Definition: uml.cpp:2775
UMLApp::m_layout
QVBoxLayout * m_layout
Definition: uml.h:488
UMLApp::setLang_tcl
void setLang_tcl()
Definition: uml.cpp:2479
UMLApp::newDiagram
KActionMenu * newDiagram
Definition: uml.h:441
UMLApp::m_mainDock
QDockWidget * m_mainDock
The widget which shows the diagrams.
Definition: uml.h:409
UMLApp::m_pZoomSlider
QSlider * m_pZoomSlider
Definition: uml.h:504
UMLApp::m_diagramMenu
KMenu * m_diagramMenu
Definition: uml.h:460
UMLApp::slotShowGridToggled
void slotShowGridToggled(bool gridOn)
Definition: uml.cpp:2825
UMLApp::slotCurrentViewToggleSnapToGrid
void slotCurrentViewToggleSnapToGrid()
Definition: uml.cpp:2593
UMLApp::editCopy
QAction * editCopy
Definition: uml.h:429
UMLApp::setLang_csharp
void setLang_csharp()
Definition: uml.cpp:2409
UMLApp::viewShowTree
QAction * viewShowTree
Definition: uml.h:434
UMLApp::slotUpdateViews
void slotUpdateViews()
Definition: uml.cpp:2665
UMLApp::s_instance
static UMLApp * s_instance
The last created instance of this class.
Definition: uml.h:358
UMLApp::editCutCopy
bool editCutCopy(bool bFromView)
Definition: uml.cpp:2195
UMLApp::shuttingDown
static bool shuttingDown()
Definition: uml.cpp:2945
UMLApp::viewShowLog
QAction * viewShowLog
Definition: uml.h:437
UMLApp::keyPressEvent
virtual void keyPressEvent(QKeyEvent *e)
Definition: uml.cpp:2953
UMLApp::slotCurrentViewClearDiagram
void slotCurrentViewClearDiagram()
Definition: uml.cpp:2585
UMLApp::m_undoEnabled
bool m_undoEnabled
Undo enabled flag.
Definition: uml.h:516
UMLApp::setLang_sql
void setLang_sql()
Definition: uml.cpp:2474
UMLApp::newDocument
void newDocument()
Definition: uml.cpp:3050
UMLApp::viewClearDiagram
QAction * viewClearDiagram
Definition: uml.h:442
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLDoc
Definition: umldoc.h:75
UMLListView
Displays the list view for the program.
Definition: umllistview.h:47
UMLViewImageExporterAll
Definition: umlviewimageexporterall.h:25
UMLView
Definition: umlview.h:35
WorkToolBar
The toolbar that is different for each type of diagram.
Definition: worktoolbar.h:41
XhtmlGenerator
Definition: xhtmlgenerator.h:42
multipagedialogbase.h
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
Uml::ProgrammingLanguage::Reserved
@ Reserved
Definition: basictypes.h:292
UniqueID::gen
Uml::ID::Type gen()
Definition: uniqueid.cpp:26