umbrello 26.03.70-1a62d36 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

umlapp.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UML_H
7#define UML_H
8
9#include "basictypes.h"
10#include "multipagedialogbase.h"
11
12// kde includes
13#include <kxmlguiwindow.h>
14#include <ksharedconfig.h>
15
16// qt includes
17#include <QPointer>
18#include <QUrl>
19
20// forward declaration of the UML classes
21 class BirdView;
22 class BirdViewDockWidget;
23 class CodeDocument;
24 class CodeGenerator;
25 class CodeGenerationPolicy;
26 class CodeGenPolicyExt;
27 class DocWindow;
28 class UMLAppPrivate;
29 class UMLClassifier;
30 class UMLDoc;
31 class UMLListView;
32 class UMLView;
33 class WorkToolBar;
34 class SettingsDialog;
35 class UMLViewImageExporterAll;
36 class RefactoringAssistant;
37 class XhtmlGenerator;
38 class StatusBarToolButton;
39 class DiagramPrintPage;
40
41// KDE forward declarations
42 class KActionMenu;
43 class KRecentFilesAction;
44 class KToggleAction;
45 class KTabWidget;
46 class QMenu;
47 class KAction;
48
49// Qt forward declarations
50 class QStackedWidget;
51 class QToolButton;
52 class QDockWidget;
53 class QVBoxLayout;
54 class QKeyEvent;
55 class QMenu;
56 class QMimeData;
57 class QPrinter;
58 class QUndoCommand;
59 class QUndoView;
60 class QUndoStack;
61 class QPushButton;
62 class QLabel;
63 class QListWidget;
64 class QSlider;
65
84 class UMLApp : public KXmlGuiWindow
85{
86 Q_OBJECT
87 public:
88 explicit UMLApp(QWidget *parent = nullptr);
89 ~UMLApp();
90
91 void setup();
92
93 static UMLApp* app();
94
95 void openDocumentFile(const QUrl& url=QUrl());
96
97 void newDocument();
98
99 UMLDoc *document() const;
100
101 UMLListView* listView() const;
102 WorkToolBar* workToolBar() const;
103 DocWindow * docWindow() const;
104 QListWidget *logWindow() const;
105 bool logToConsole() const;
106 void log(const QString& s);
107 void logDebug(const QString& s);
108 void logInfo(const QString& s);
109 void logWarn(const QString& s);
110 void logError(const QString& s);
111
112 QCursor defaultCursor() const;
113
114 void setModified(bool _m);
115
116 void enablePrint(bool enable);
117
118 bool isPasteState() const;
119 bool isCutCopyState() const;
120
121 bool isUndoEnabled() const;
122 void enableUndo(bool enable);
123
124 bool isUndoActionEnabled() const;
125 void enableUndoAction(bool enable);
126
127 bool isRedoActionEnabled() const;
128 void enableRedoAction(bool enable);
129
130 bool isSimpleCodeGeneratorActive() const;
131
132 void setGenerator(CodeGenerator* gen, bool giveWarning = true);
133 CodeGenerator* setGenerator(Uml::ProgrammingLanguage::Enum pl);
134 CodeGenerator* generator() const;
135
136 CodeGenerator* createGenerator();
137 void initGenerator();
138
139 void refactor(UMLClassifier* classifier);
140
141 void viewCodeDocument(UMLClassifier* classifier);
142
143 void setDiagramMenuItemsState(bool bState);
144
145 QWidget* mainViewWidget() const;
146
147 void setCurrentView(UMLView* view, bool updateTreeView = true);
148 UMLView* currentView() const;
149
150 void setImageMimeType(const QString& mimeType);
151 QString imageMimeType() const;
152
153 bool editCutCopy(bool bFromView);
154
155 QTabWidget *tabWidget();
156
157 QString statusBarMsg() const;
158
159 CodeGenerationPolicy *commonPolicy() const;
160
161 void setPolicyExt(CodeGenPolicyExt *policy);
162 CodeGenPolicyExt *policyExt() const;
163
164 void clearUndoStack();
165
166 void undo();
167 void redo();
168
169 void executeCommand(QUndoCommand* cmd);
170
171 void beginMacro(const QString & text);
172 void endMacro();
173
174 void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl);
175 Uml::ProgrammingLanguage::Enum activeLanguage() const;
176 Uml::ProgrammingLanguage::Enum defaultLanguage() const;
177
178 bool activeLanguageIsCaseSensitive() const;
179
180 QString activeLanguageScopeSeparator() const;
181
182 KConfig* config();
183 void importFiles(QStringList& fileList, const QString &rootPath = QString());
184
185 static bool shuttingDown();
186
187 void deleteBirdView();
188
189 protected:
190 virtual void keyPressEvent(QKeyEvent* e);
191 virtual void keyReleaseEvent(QKeyEvent* e);
192
193 virtual void customEvent(QEvent* e);
194
195 void handleCursorKeyReleaseEvent(QKeyEvent* e);
196
197 void saveOptions();
198 void readOptions();
199
200 void initActions();
201 void initStatusBar();
202 void initWidgets();
203
204 virtual bool queryClose();
205
206 virtual void saveProperties(KConfigGroup & cfg);
207 virtual void readProperties(const KConfigGroup & cfg);
208
209 void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage);
210
211 public Q_SLOTS:
212 void slotExecGenerationWizard();
213 void slotImportingWizard();
214
215 void slotFileNew();
216 void slotFileOpen();
217
218 void slotFileOpenRecent(const QUrl& url);
219 void slotFileSave();
220 bool slotFileSaveAs();
221 void slotFileClose();
222 bool slotPrintSettings();
223 void slotPrintPreview();
224 void slotPrintPreviewPaintRequested(QPrinter *printer);
225 void slotFilePrint();
226 void slotFileQuit();
227 void slotFileExportDocbook();
228 void slotFileExportXhtml();
229 void slotFind();
230 void slotFindNext();
231 void slotFindPrevious();
232 void slotEditCut();
233 void slotEditCopy();
234 void slotEditPaste();
235 void slotStatusMsg(const QString &text);
236 void slotClassDiagram();
237 void slotObjectDiagram();
238 void slotSequenceDiagram();
239 void slotCollaborationDiagram();
240 void slotUseCaseDiagram();
241 void slotStateDiagram();
242 void slotActivityDiagram();
243 void slotComponentDiagram();
244 void slotDeploymentDiagram();
245 void slotEntityRelationshipDiagram();
246 void slotAlignLeft();
247 void slotAlignRight();
248 void slotAlignTop();
249 void slotAlignBottom();
250 void slotAlignVerticalMiddle();
251 void slotAlignHorizontalMiddle();
252 void slotAlignVerticalDistribute();
253 void slotAlignHorizontalDistribute();
254 void slotClipDataChanged();
255 void slotCopyChanged();
256 void slotPrefs(MultiPageDialogBase::PageType page = MultiPageDialogBase::GeneralPage);
257 void slotApplyPrefs();
258 void slotImportClass();
259 void slotImportProject();
260 void slotUpdateViews();
261 void slotCurrentViewClearDiagram();
262 void slotCurrentViewToggleSnapToGrid();
263 void slotCurrentViewToggleShowGrid();
264 void slotCurrentViewExportImage();
265 void slotViewsExportImages();
266 void slotCurrentProperties();
267 void slotClassWizard();
268 void slotAddDefaultDatatypes();
269 void slotCurrentViewChanged();
270 void slotSnapToGridToggled(bool gridOn);
271 void slotShowGridToggled(bool gridOn);
272 void slotSelectAll();
273 void slotDeleteSelected();
274 void slotDeleteDiagram();
275 void slotCloseDiagram(int index);
276 void slotGenerateAllCode();
277
278 void slotSetZoom(QAction* action);
279 void slotZoomSliderMoved(int value);
280 void slotZoomFit();
281 void slotZoom100();
282 void slotZoomOut();
283 void slotZoomIn();
284
285 void slotBirdViewChanged(const QPointF& newCenter);
286
287 void setupZoomMenu();
288
289 void slotEditUndo();
290 void slotEditRedo();
291
292 void slotTabChanged(int index);
293 void slotChangeTabLeft();
294 void slotChangeTabRight();
295 void slotMoveTabLeft();
296 void slotMoveTabRight();
297
298 void slotXhtmlDocGenerationFinished(bool status);
299 bool slotOpenFileInEditor(const QUrl &file, int startCursor = 0, int endCursor = 0);
300
301 private Q_SLOTS:
302 void setLang_actionscript();
303 void setLang_ada();
304 void setLang_cpp();
305 void setLang_csharp();
306 void setLang_d();
307 void setLang_idl();
308 void setLang_java();
309 void setLang_javascript();
310 void setLang_mysql();
311 void setLang_pascal();
312 void setLang_perl();
313 void setLang_php();
314 void setLang_php5();
315 void setLang_postgresql();
316 void setLang_python();
317 void setLang_ruby();
318 void setLang_sql();
319 void setLang_tcl();
320 void setLang_vala();
321 void setLang_xmlschema();
322 void setLang_none();
323 void slotDiagramPopupMenu(const QPoint& point);
324
325 private:
326 static UMLApp* s_instance;
327 UMLAppPrivate *m_d;
328
329 QMenu* findMenu(const QString &name);
330
331 QAction* createZoomAction(int zoom, int currentZoom);
332 void setZoom(int zoom, bool withView = true);
333
334 void resetStatusMsg();
335
336 void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char* name, const char* action);
337
338 static bool canDecode(const QMimeData* mimeSource);
339
340 void readOptionState() const;
341
342 void initClip();
343 void initSavedCodeGenerators();
344
345 void createDiagram(Uml::DiagramType::Enum type);
346
347 void createBirdView(UMLView* view);
348
349 QMenu* m_langSelect;
350 QMenu* m_zoomSelect;
351
352 Uml::ProgrammingLanguage::Enum m_activeLanguage;
353 CodeGenerator* m_codegen;
354 CodeGenerationPolicy* m_commoncodegenpolicy;
355 CodeGenPolicyExt* m_policyext;
356 // Only used for new code generators ({Cpp, Java, Ruby, D}CodeGenerator).
357
358 KSharedConfigPtr m_config;
359
366 QPointer<UMLView> m_view;
367
373 UMLDoc* m_doc;
374
375 QDockWidget* m_mainDock;
376 QDockWidget* m_propertyDock;
377 RefactoringAssistant* m_refactoringAssist;
378
379 // KAction pointers to enable/disable actions
380 KRecentFilesAction* fileOpenRecent;
381 QAction* printPreview;
382 QAction* filePrint;
383 QAction* editCut;
384 QAction* editCopy;
385 QAction* editPaste;
386 QAction* editUndo;
387 QAction* editRedo;
388
389 KActionMenu* newDiagram;
390 QAction* viewClearDiagram;
391
392 KToggleAction* viewSnapToGrid;
393 KToggleAction* viewShowGrid;
394 QAction* viewExportImage;
395 QAction* viewProperties;
396
397 QAction* zoom100Action;
398
399 QAction* m_langAct[Uml::ProgrammingLanguage::Reserved + 1];
400 QAction* deleteSelectedWidget;
401 QAction* deleteDiagram;
402 QToolButton* m_newSessionButton;
403 WorkToolBar* m_toolsbar;
404 QTimer* m_clipTimer;
405 QTimer* m_copyTimer;
406
407 bool m_loading;
408
413 QStackedWidget* m_viewStack;
414
419 QTabWidget* m_tabWidget;
420
426 QVBoxLayout* m_layout;
427
428 QString m_imageMimeType;
429
430 SettingsDialog* m_settingsDialog;
431
432 UMLViewImageExporterAll* m_imageExporterAll;
433
437 QLabel* m_zoomValueLbl;
438 QWidget* m_defaultZoomWdg;
439 QPushButton* m_pZoomOutPB;
440 QPushButton* m_pZoomInPB;
441 StatusBarToolButton* m_pZoomFitSBTB;
442 StatusBarToolButton* m_pZoomFullSBTB;
443 QSlider* m_pZoomSlider;
444 QLabel* m_statusBarMessage;
448 XhtmlGenerator* m_xhtmlGenerator;
449
450 QUndoStack* m_pUndoStack;
451 bool m_undoEnabled;
452
453 bool m_hasBegunMacro;
454
455 QPointer<DiagramPrintPage> m_printSettings;
456 QPrinter *m_printer;
457 static bool s_shuttingDown;
458
459Q_SIGNALS:
460 void sigCutSuccessful();
461
462 friend class UMLAppPrivate;
463 friend class UMLView;
464};
465
466#endif // UML_H
basictypes.h
BirdViewDockWidget
The class BirdViewDockWidget contains the bird view.
Definition: birdviewdockwidget.h:19
BirdView
The class BirdView controls the view of the whole scene.
Definition: birdview.h:30
CodeDocument
Definition: codedocument.h:30
CodeGenPolicyExt
Definition: codegenpolicyext.h:23
CodeGenerationPolicy
Definition: codegenerationpolicy.h:26
CodeGenerator
Definition: codegenerator.h:54
DiagramPrintPage
A print dialog page.
Definition: diagramprintpage.h:33
DocWindow
Definition: docwindow.h:25
MultiPageDialogBase::PageType
PageType
Available page types.
Definition: multipagedialogbase.h:52
MultiPageDialogBase::GeneralPage
@ GeneralPage
Definition: multipagedialogbase.h:59
RefactoringAssistant
Definition: refactoringassistant.h:24
SettingsDialog
Definition: settingsdialog.h:40
StatusBarToolButton
Definition: statusbartoolbutton.h:22
UMLApp
Definition: umlapp.h:85
UMLApp::slotClassWizard
void slotClassWizard()
Definition: umlapp.cpp:2670
UMLApp::slotZoom100
void slotZoom100()
Definition: umlapp.cpp:694
UMLApp::setImageMimeType
void setImageMimeType(const QString &mimeType)
Definition: umlapp.cpp:3028
UMLApp::initWidgets
void initWidgets()
Definition: umlapp.cpp:869
UMLApp::slotExecGenerationWizard
void slotExecGenerationWizard()
Definition: umlapp.cpp:2299
UMLApp::slotSelectAll
void slotSelectAll()
Definition: umlapp.cpp:2718
UMLApp::enableUndo
void enableUndo(bool enable)
Definition: umlapp.cpp:2050
UMLApp::slotFilePrint
void slotFilePrint()
Definition: umlapp.cpp:1385
UMLApp::readProperties
virtual void readProperties(const KConfigGroup &cfg)
Definition: umlapp.cpp:1078
UMLApp::logDebug
void logDebug(const QString &s)
Definition: umlapp.cpp:1780
UMLApp::setLang_postgresql
void setLang_postgresql()
Definition: umlapp.cpp:2374
UMLApp::m_printer
QPrinter * m_printer
print instance
Definition: umlapp.h:456
UMLApp::setLang_php
void setLang_php()
Definition: umlapp.cpp:2364
UMLApp::queryClose
virtual bool queryClose()
Definition: umlapp.cpp:1117
UMLApp::slotCollaborationDiagram
void slotCollaborationDiagram()
Definition: umlapp.cpp:1590
UMLApp::slotFileClose
void slotFileClose()
Definition: umlapp.cpp:1285
UMLApp::docWindow
DocWindow * docWindow() const
Definition: umlapp.cpp:1738
UMLApp::saveOptions
void saveOptions()
Definition: umlapp.cpp:968
UMLApp::m_commoncodegenpolicy
CodeGenerationPolicy * m_commoncodegenpolicy
Definition: umlapp.h:354
UMLApp::slotSetZoom
void slotSetZoom(QAction *action)
Definition: umlapp.cpp:742
UMLApp::slotApplyPrefs
void slotApplyPrefs()
Definition: umlapp.cpp:1961
UMLApp::slotEditCopy
void slotEditCopy()
Definition: umlapp.cpp:1504
UMLApp::slotCloseDiagram
void slotCloseDiagram(int index)
Definition: umlapp.cpp:2763
UMLApp::viewExportImage
QAction * viewExportImage
Definition: umlapp.h:394
UMLApp::slotDeploymentDiagram
void slotDeploymentDiagram()
Definition: umlapp.cpp:1630
UMLApp::setZoom
void setZoom(int zoom, bool withView=true)
Definition: umlapp.cpp:725
UMLApp::s_shuttingDown
static bool s_shuttingDown
Definition: umlapp.h:457
UMLApp::workToolBar
WorkToolBar * workToolBar() const
Definition: umlapp.cpp:1728
UMLApp::viewCodeDocument
void viewCodeDocument(UMLClassifier *classifier)
Definition: umlapp.cpp:2149
UMLApp::slotFileQuit
void slotFileQuit()
Definition: umlapp.cpp:1410
UMLApp::slotCopyChanged
void slotCopyChanged()
Definition: umlapp.cpp:1927
UMLApp::sigCutSuccessful
void sigCutSuccessful()
UMLApp::slotFind
void slotFind()
Definition: umlapp.cpp:1295
UMLApp::slotEditUndo
void slotEditUndo()
Definition: umlapp.cpp:1461
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: umlapp.cpp:2210
UMLApp::m_printSettings
QPointer< DiagramPrintPage > m_printSettings
printer diagram settings
Definition: umlapp.h:455
UMLApp::m_pZoomFullSBTB
StatusBarToolButton * m_pZoomFullSBTB
Definition: umlapp.h:442
UMLApp::slotAddDefaultDatatypes
void slotAddDefaultDatatypes()
Definition: umlapp.cpp:2680
UMLApp::statusBarMsg
QString statusBarMsg() const
Definition: umlapp.cpp:3199
UMLApp::editUndo
QAction * editUndo
Definition: umlapp.h:386
UMLApp::logError
void logError(const QString &s)
Definition: umlapp.cpp:1820
UMLApp::slotPrintPreviewPaintRequested
void slotPrintPreviewPaintRequested(QPrinter *printer)
Definition: umlapp.cpp:1377
UMLApp::slotAlignHorizontalDistribute
void slotAlignHorizontalDistribute()
Definition: umlapp.cpp:1716
UMLApp::viewShowGrid
KToggleAction * viewShowGrid
Definition: umlapp.h:393
UMLApp::m_newSessionButton
QToolButton * m_newSessionButton
Definition: umlapp.h:402
UMLApp::initActions
void initActions()
Definition: umlapp.cpp:304
UMLApp::slotMoveTabRight
void slotMoveTabRight()
Definition: umlapp.cpp:3143
UMLApp::setLang_d
void setLang_d()
Definition: umlapp.cpp:2329
UMLApp::m_imageMimeType
QString m_imageMimeType
Default mime type to use for image export.
Definition: umlapp.h:428
UMLApp::setCurrentView
void setCurrentView(UMLView *view, bool updateTreeView=true)
Definition: umlapp.cpp:2971
UMLApp::setLang_xmlschema
void setLang_xmlschema()
Definition: umlapp.cpp:2404
UMLApp::beginMacro
void beginMacro(const QString &text)
Definition: umlapp.cpp:3287
UMLApp::generator
CodeGenerator * generator() const
Definition: umlapp.cpp:2266
UMLApp::setLang_idl
void setLang_idl()
Definition: umlapp.cpp:2334
UMLApp::document
UMLDoc * document() const
Definition: umlapp.cpp:948
UMLApp::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *e)
Definition: umlapp.cpp:2894
UMLApp::slotZoomIn
void slotZoomIn()
Definition: umlapp.cpp:712
UMLApp::slotFileExportXhtml
void slotFileExportXhtml()
Definition: umlapp.cpp:1443
UMLApp::slotClassDiagram
void slotClassDiagram()
Definition: umlapp.cpp:1566
UMLApp::setLang_python
void setLang_python()
Definition: umlapp.cpp:2379
UMLApp::createGenerator
CodeGenerator * createGenerator()
UMLApp::slotFileSave
void slotFileSave()
Definition: umlapp.cpp:1217
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: umlapp.cpp:2194
UMLApp::slotPrintSettings
bool slotPrintSettings()
Definition: umlapp.cpp:1329
UMLApp::clearUndoStack
void clearUndoStack()
Definition: umlapp.cpp:3208
UMLApp::createDiagram
void createDiagram(Uml::DiagramType::Enum type)
Definition: umlapp.cpp:1556
UMLApp::m_hasBegunMacro
bool m_hasBegunMacro
Macro creation flag.
Definition: umlapp.h:453
UMLApp::printPreview
QAction * printPreview
Definition: umlapp.h:381
UMLApp::endMacro
void endMacro()
Definition: umlapp.cpp:3306
UMLApp::slotAlignRight
void slotAlignRight()
Definition: umlapp.cpp:1656
UMLApp::executeCommand
void executeCommand(QUndoCommand *cmd)
Definition: umlapp.cpp:3265
UMLApp::logInfo
void logInfo(const QString &s)
Definition: umlapp.cpp:1796
UMLApp::isRedoActionEnabled
bool isRedoActionEnabled() const
Definition: umlapp.cpp:2085
UMLApp::slotMoveTabLeft
void slotMoveTabLeft()
Definition: umlapp.cpp:3125
UMLApp::m_viewStack
QStackedWidget * m_viewStack
Definition: umlapp.h:413
UMLApp::m_zoomValueLbl
QLabel * m_zoomValueLbl
Definition: umlapp.h:437
UMLApp::slotBirdViewChanged
void slotBirdViewChanged(const QPointF &newCenter)
Definition: umlapp.cpp:2959
UMLApp::m_langAct
QAction * m_langAct[Uml::ProgrammingLanguage::Reserved+1]
Definition: umlapp.h:399
UMLApp::setDiagramMenuItemsState
void setDiagramMenuItemsState(bool bState)
Definition: umlapp.cpp:2538
UMLApp::m_pZoomOutPB
QPushButton * m_pZoomOutPB
Definition: umlapp.h:439
UMLApp::isUndoEnabled
bool isUndoEnabled() const
Definition: umlapp.cpp:2040
UMLApp::viewProperties
QAction * viewProperties
Definition: umlapp.h:395
UMLApp::slotClipDataChanged
void slotClipDataChanged()
Definition: umlapp.cpp:1916
UMLApp::app
static UMLApp * app()
Definition: umlapp.cpp:284
UMLApp::isCutCopyState
bool isCutCopyState() const
Definition: umlapp.cpp:2030
UMLApp::m_zoomSelect
QMenu * m_zoomSelect
Popup menu for zoom selection.
Definition: umlapp.h:350
UMLApp::slotCurrentViewExportImage
void slotCurrentViewExportImage()
Definition: umlapp.cpp:2499
UMLApp::slotDeleteSelected
void slotDeleteSelected()
Definition: umlapp.cpp:2728
UMLApp::slotFindNext
void slotFindNext()
Definition: umlapp.cpp:1311
UMLApp::slotAlignBottom
void slotAlignBottom()
Definition: umlapp.cpp:1676
UMLApp::logWarn
void logWarn(const QString &s)
Definition: umlapp.cpp:1808
UMLApp::m_config
KSharedConfigPtr m_config
The configuration object of the application.
Definition: umlapp.h:358
UMLApp::initClip
void initClip()
Definition: umlapp.cpp:1872
UMLApp::setLang_mysql
void setLang_mysql()
Definition: umlapp.cpp:2349
UMLApp::setLang_ruby
void setLang_ruby()
Definition: umlapp.cpp:2384
UMLApp::slotEditPaste
void slotEditPaste()
Definition: umlapp.cpp:1516
UMLApp::slotFindPrevious
void slotFindPrevious()
Definition: umlapp.cpp:1320
UMLApp::slotAlignLeft
void slotAlignLeft()
Definition: umlapp.cpp:1646
UMLApp::slotSequenceDiagram
void slotSequenceDiagram()
Definition: umlapp.cpp:1582
UMLApp::slotAlignVerticalMiddle
void slotAlignVerticalMiddle()
Definition: umlapp.cpp:1686
UMLApp::viewSnapToGrid
KToggleAction * viewSnapToGrid
Definition: umlapp.h:392
UMLApp::openDocumentFile
void openDocumentFile(const QUrl &url=QUrl())
Definition: umlapp.cpp:932
UMLApp::deleteDiagram
QAction * deleteDiagram
Definition: umlapp.h:401
UMLApp::m_pZoomFitSBTB
StatusBarToolButton * m_pZoomFitSBTB
Definition: umlapp.h:441
UMLApp::setLang_javascript
void setLang_javascript()
Definition: umlapp.cpp:2344
UMLApp::m_copyTimer
QTimer * m_copyTimer
Definition: umlapp.h:405
UMLApp::setLang_pascal
void setLang_pascal()
Definition: umlapp.cpp:2354
UMLApp::initSavedCodeGenerators
void initSavedCodeGenerators()
UMLApp::enableUndoAction
void enableUndoAction(bool enable)
Definition: umlapp.cpp:2075
UMLApp::findMenu
QMenu * findMenu(const QString &name)
Definition: umlapp.cpp:115
UMLApp::setLang_actionscript
void setLang_actionscript()
Definition: umlapp.cpp:2309
UMLApp::slotActivityDiagram
void slotActivityDiagram()
Definition: umlapp.cpp:1614
UMLApp::filePrint
QAction * filePrint
Definition: umlapp.h:382
UMLApp::mainViewWidget
QWidget * mainViewWidget() const
Definition: umlapp.cpp:2931
UMLApp::m_clipTimer
QTimer * m_clipTimer
Definition: umlapp.h:404
UMLApp::slotObjectDiagram
void slotObjectDiagram()
Definition: umlapp.cpp:1574
UMLApp::logWindow
QListWidget * logWindow() const
Definition: umlapp.cpp:1748
UMLApp::enablePrint
void enablePrint(bool enable)
Definition: umlapp.cpp:1863
UMLApp::editPaste
QAction * editPaste
Definition: umlapp.h:385
UMLApp::initStatusBar
void initStatusBar()
Definition: umlapp.cpp:806
UMLApp::m_xhtmlGenerator
XhtmlGenerator * m_xhtmlGenerator
Definition: umlapp.h:448
UMLApp::isUndoActionEnabled
bool isUndoActionEnabled() const
Definition: umlapp.cpp:2064
UMLApp::m_codegen
CodeGenerator * m_codegen
Active code generator.
Definition: umlapp.h:353
UMLApp::setLang_php5
void setLang_php5()
Definition: umlapp.cpp:2369
UMLApp::activeLanguage
Uml::ProgrammingLanguage::Enum activeLanguage() const
Definition: umlapp.cpp:2441
UMLApp::slotFileNew
void slotFileNew()
Definition: umlapp.cpp:1131
UMLApp::config
KConfig * config()
Definition: umlapp.cpp:3323
UMLApp::imageMimeType
QString imageMimeType() const
Definition: umlapp.cpp:3038
UMLApp::m_imageExporterAll
UMLViewImageExporterAll * m_imageExporterAll
Used to export all the views.
Definition: umlapp.h:432
UMLApp::editRedo
QAction * editRedo
Definition: umlapp.h:387
UMLApp::redo
void redo()
Definition: umlapp.cpp:3241
UMLApp::slotStatusMsg
void slotStatusMsg(const QString &text)
Definition: umlapp.cpp:1538
UMLApp::setProgLangAction
void setProgLangAction(Uml::ProgrammingLanguage::Enum pl, const char *name, const char *action)
Definition: umlapp.cpp:292
UMLApp::slotEntityRelationshipDiagram
void slotEntityRelationshipDiagram()
Definition: umlapp.cpp:1638
UMLApp::slotDiagramPopupMenu
void slotDiagramPopupMenu(const QPoint &point)
Definition: umlapp.cpp:2418
UMLApp::slotDeleteDiagram
void slotDeleteDiagram()
Definition: umlapp.cpp:2752
UMLApp::createBirdView
void createBirdView(UMLView *view)
Definition: umlapp.cpp:2945
UMLApp::isPasteState
bool isPasteState() const
Definition: umlapp.cpp:2020
UMLApp::setupZoomMenu
void setupZoomMenu()
Definition: umlapp.cpp:769
UMLApp::setLang_java
void setLang_java()
Definition: umlapp.cpp:2339
UMLApp::m_defaultZoomWdg
QWidget * m_defaultZoomWdg
Definition: umlapp.h:438
UMLApp::initGenerator
void initGenerator()
Definition: umlapp.cpp:2789
UMLApp::slotStateDiagram
void slotStateDiagram()
Definition: umlapp.cpp:1606
UMLApp::createZoomAction
QAction * createZoomAction(int zoom, int currentZoom)
Definition: umlapp.cpp:753
UMLApp::setModified
void setModified(bool _m)
Definition: umlapp.cpp:1835
UMLApp::canDecode
static bool canDecode(const QMimeData *mimeSource)
Definition: umlapp.cpp:1895
UMLApp::m_policyext
CodeGenPolicyExt * m_policyext
Active policy extension.
Definition: umlapp.h:355
UMLApp::slotXhtmlDocGenerationFinished
void slotXhtmlDocGenerationFinished(bool status)
Definition: umlapp.cpp:3163
UMLApp::m_propertyDock
QDockWidget * m_propertyDock
Contains the property browser widget.
Definition: umlapp.h:376
UMLApp::slotEditCut
void slotEditCut()
Definition: umlapp.cpp:1481
UMLApp::slotOpenFileInEditor
bool slotOpenFileInEditor(const QUrl &file, int startCursor=0, int endCursor=0)
Definition: umlapp.cpp:3181
UMLApp::importFiles
void importFiles(QStringList &fileList, const QString &rootPath=QString())
Definition: umlapp.cpp:2583
UMLApp::zoom100Action
QAction * zoom100Action
Definition: umlapp.h:397
UMLApp::setLang_cpp
void setLang_cpp()
Definition: umlapp.cpp:2319
UMLApp::readOptionState
void readOptionState() const
Definition: umlapp.cpp:2135
UMLApp::resetStatusMsg
void resetStatusMsg()
Definition: umlapp.cpp:1547
UMLApp::slotChangeTabRight
void slotChangeTabRight()
Definition: umlapp.cpp:3088
UMLApp::setLang_none
void setLang_none()
Definition: umlapp.cpp:2409
UMLApp::m_loading
bool m_loading
True if the application is opening an existing document.
Definition: umlapp.h:407
UMLApp::slotGenerateAllCode
void slotGenerateAllCode()
Definition: umlapp.cpp:2289
UMLApp::isSimpleCodeGeneratorActive
bool isSimpleCodeGeneratorActive() const
Definition: umlapp.cpp:2276
UMLApp::listView
UMLListView * listView() const
Definition: umlapp.cpp:958
UMLApp::m_langSelect
QMenu * m_langSelect
For selecting the active language.
Definition: umlapp.h:349
UMLApp::slotCurrentViewChanged
void slotCurrentViewChanged()
Definition: umlapp.cpp:2688
UMLApp::m_doc
UMLDoc * m_doc
Definition: umlapp.h:373
UMLApp::undo
void undo()
Definition: umlapp.cpp:3217
UMLApp::slotPrefs
void slotPrefs(MultiPageDialogBase::PageType page=MultiPageDialogBase::GeneralPage)
Definition: umlapp.cpp:1942
UMLApp::m_pUndoStack
QUndoStack * m_pUndoStack
UndoStack used to store actions, to provide Undo/Redo feature.
Definition: umlapp.h:450
UMLApp::slotAlignHorizontalMiddle
void slotAlignHorizontalMiddle()
Definition: umlapp.cpp:1696
UMLApp::slotZoomFit
void slotZoomFit()
Definition: umlapp.cpp:661
UMLApp::setPolicyExt
void setPolicyExt(CodeGenPolicyExt *policy)
Definition: umlapp.cpp:2202
UMLApp::handleCursorKeyReleaseEvent
void handleCursorKeyReleaseEvent(QKeyEvent *e)
Definition: umlapp.cpp:2854
UMLApp::m_settingsDialog
SettingsDialog * m_settingsDialog
The global UML settings dialog.
Definition: umlapp.h:430
UMLApp::updateLangSelectMenu
void updateLangSelectMenu(Uml::ProgrammingLanguage::Enum activeLanguage)
Definition: umlapp.cpp:2805
UMLApp::slotFileExportDocbook
void slotFileExportDocbook()
Definition: umlapp.cpp:1426
UMLApp::setLang_ada
void setLang_ada()
Definition: umlapp.cpp:2314
UMLApp::slotChangeTabLeft
void slotChangeTabLeft()
Definition: umlapp.cpp:3058
UMLApp::slotComponentDiagram
void slotComponentDiagram()
Definition: umlapp.cpp:1622
UMLApp::slotViewsExportImages
void slotViewsExportImages()
Definition: umlapp.cpp:2509
UMLApp::defaultLanguage
Uml::ProgrammingLanguage::Enum defaultLanguage() const
Definition: umlapp.cpp:2780
UMLApp::slotFileSaveAs
bool slotFileSaveAs()
Definition: umlapp.cpp:1234
UMLApp::slotCurrentProperties
void slotCurrentProperties()
Definition: umlapp.cpp:2522
UMLApp::slotAlignVerticalDistribute
void slotAlignVerticalDistribute()
Definition: umlapp.cpp:1706
UMLApp::currentView
UMLView * currentView() const
Definition: umlapp.cpp:3019
UMLApp::setGenerator
void setGenerator(CodeGenerator *gen, bool giveWarning=true)
UMLApp::m_view
QPointer< UMLView > m_view
Definition: umlapp.h:366
UMLApp::slotCurrentViewToggleShowGrid
void slotCurrentViewToggleShowGrid()
Definition: umlapp.cpp:2488
UMLApp::slotTabChanged
void slotTabChanged(int index)
Definition: umlapp.cpp:3047
UMLApp::refactor
void refactor(UMLClassifier *classifier)
Definition: umlapp.cpp:2181
UMLApp::setLang_vala
void setLang_vala()
Definition: umlapp.cpp:2399
UMLApp::slotImportClass
void slotImportClass()
Definition: umlapp.cpp:2613
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: umlapp.cpp:2432
UMLApp::slotEditRedo
void slotEditRedo()
Definition: umlapp.cpp:1471
UMLApp::defaultCursor
QCursor defaultCursor() const
UMLApp::slotImportProject
void slotImportProject()
Definition: umlapp.cpp:2645
UMLApp::fileOpenRecent
KRecentFilesAction * fileOpenRecent
Definition: umlapp.h:380
UMLApp::m_toolsbar
WorkToolBar * m_toolsbar
Definition: umlapp.h:403
UMLApp::m_pZoomInPB
QPushButton * m_pZoomInPB
Definition: umlapp.h:440
UMLApp::m_statusBarMessage
QLabel * m_statusBarMessage
Definition: umlapp.h:444
UMLApp::saveProperties
virtual void saveProperties(KConfigGroup &cfg)
Definition: umlapp.cpp:1054
UMLApp::slotZoomSliderMoved
void slotZoomSliderMoved(int value)
Definition: umlapp.cpp:653
UMLApp::slotSnapToGridToggled
void slotSnapToGridToggled(bool gridOn)
Definition: umlapp.cpp:2702
UMLApp::setLang_perl
void setLang_perl()
Definition: umlapp.cpp:2359
UMLApp::enableRedoAction
void enableRedoAction(bool enable)
Definition: umlapp.cpp:2096
UMLApp::deleteBirdView
void deleteBirdView()
Definition: umlapp.cpp:2950
UMLApp::m_refactoringAssist
RefactoringAssistant * m_refactoringAssist
Refactoring assistant.
Definition: umlapp.h:377
UMLApp::m_d
UMLAppPrivate * m_d
Definition: umlapp.h:327
UMLApp::activeLanguageScopeSeparator
QString activeLanguageScopeSeparator() const
Definition: umlapp.cpp:2458
UMLApp::slotAlignTop
void slotAlignTop()
Definition: umlapp.cpp:1666
UMLApp::~UMLApp
~UMLApp()
Definition: umlapp.cpp:258
UMLApp::tabWidget
QTabWidget * tabWidget()
Definition: umlapp.cpp:3189
UMLApp::slotPrintPreview
void slotPrintPreview()
Definition: umlapp.cpp:1358
UMLApp::slotUseCaseDiagram
void slotUseCaseDiagram()
Definition: umlapp.cpp:1598
UMLApp::slotFileOpen
void slotFileOpen()
Definition: umlapp.cpp:1149
UMLApp::log
void log(const QString &s)
Definition: umlapp.cpp:1768
UMLApp::readOptions
void readOptions()
Definition: umlapp.cpp:1010
UMLApp::editCut
QAction * editCut
Definition: umlapp.h:383
UMLApp::m_activeLanguage
Uml::ProgrammingLanguage::Enum m_activeLanguage
Active language.
Definition: umlapp.h:352
UMLApp::activeLanguageIsCaseSensitive
bool activeLanguageIsCaseSensitive() const
Definition: umlapp.cpp:2449
UMLApp::customEvent
virtual void customEvent(QEvent *e)
Definition: umlapp.cpp:2842
UMLApp::slotZoomOut
void slotZoomOut()
Definition: umlapp.cpp:702
UMLApp::deleteSelectedWidget
QAction * deleteSelectedWidget
Definition: umlapp.h:400
UMLApp::slotImportingWizard
void slotImportingWizard()
Definition: umlapp.cpp:2659
UMLApp::m_layout
QVBoxLayout * m_layout
Definition: umlapp.h:426
UMLApp::setLang_tcl
void setLang_tcl()
Definition: umlapp.cpp:2394
UMLApp::newDiagram
KActionMenu * newDiagram
Definition: umlapp.h:389
UMLApp::m_mainDock
QDockWidget * m_mainDock
The widget which shows the diagrams.
Definition: umlapp.h:375
UMLApp::m_pZoomSlider
QSlider * m_pZoomSlider
Definition: umlapp.h:443
UMLApp::slotShowGridToggled
void slotShowGridToggled(bool gridOn)
Definition: umlapp.cpp:2710
UMLApp::slotCurrentViewToggleSnapToGrid
void slotCurrentViewToggleSnapToGrid()
Definition: umlapp.cpp:2477
UMLApp::editCopy
QAction * editCopy
Definition: umlapp.h:384
UMLApp::setLang_csharp
void setLang_csharp()
Definition: umlapp.cpp:2324
UMLApp::m_tabWidget
QTabWidget * m_tabWidget
Definition: umlapp.h:419
UMLApp::slotUpdateViews
void slotUpdateViews()
Definition: umlapp.cpp:2557
UMLApp::logToConsole
bool logToConsole() const
Definition: umlapp.cpp:1760
UMLApp::s_instance
static UMLApp * s_instance
The last created instance of this class.
Definition: umlapp.h:326
UMLApp::editCutCopy
bool editCutCopy(bool bFromView)
Definition: umlapp.cpp:2110
UMLApp::shuttingDown
static bool shuttingDown()
Definition: umlapp.cpp:2816
UMLApp::keyPressEvent
virtual void keyPressEvent(QKeyEvent *e)
Definition: umlapp.cpp:2824
UMLApp::slotCurrentViewClearDiagram
void slotCurrentViewClearDiagram()
Definition: umlapp.cpp:2467
UMLApp::m_undoEnabled
bool m_undoEnabled
Undo enabled flag.
Definition: umlapp.h:451
UMLApp::slotFileOpenRecent
void slotFileOpenRecent(const QUrl &url)
Definition: umlapp.cpp:1187
UMLApp::setup
void setup()
Definition: umlapp.cpp:199
UMLApp::setLang_sql
void setLang_sql()
Definition: umlapp.cpp:2389
UMLApp::newDocument
void newDocument()
Definition: umlapp.cpp:2921
UMLApp::viewClearDiagram
QAction * viewClearDiagram
Definition: umlapp.h:390
UMLAppPrivate
Definition: umlappprivate.h:60
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
UMLDoc
Definition: umldoc.h:63
UMLListView
Displays the list view for the program.
Definition: umllistview.h:43
UMLView
Definition: umlview.h:30
UMLViewImageExporterAll
Definition: umlviewimageexporterall.h:20
WorkToolBar
The toolbar that is different for each type of diagram.
Definition: worktoolbar.h:36
XhtmlGenerator
Definition: xhtmlgenerator.h:32
multipagedialogbase.h
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:63
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
Uml::ProgrammingLanguage::Reserved
@ Reserved
Definition: basictypes.h:312