umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
UMLApp Class Reference

#include <uml.h>

Inheritance diagram for UMLApp:
Collaboration diagram for UMLApp:

Public Slots

void slotExecGenerationWizard ()
 
void slotImportingWizard ()
 
void slotFileNew ()
 
void slotFileOpen ()
 
void slotFileOpenRecent (const KUrl &url)
 
void slotFileSave ()
 
bool slotFileSaveAs ()
 
void slotFileClose ()
 
bool slotPrintSettings ()
 
void slotPrintPreview ()
 
void slotPrintPreviewPaintRequested (QPrinter *printer)
 
void slotFilePrint ()
 
void slotFileQuit ()
 
void slotFileExportDocbook ()
 
void slotFileExportXhtml ()
 
void slotFind ()
 
void slotFindNext ()
 
void slotFindPrevious ()
 
void slotEditCut ()
 
void slotEditCopy ()
 
void slotEditPaste ()
 
void slotStatusMsg (const QString &text)
 
void slotClassDiagram ()
 
void slotObjectDiagram ()
 
void slotSequenceDiagram ()
 
void slotCollaborationDiagram ()
 
void slotUseCaseDiagram ()
 
void slotStateDiagram ()
 
void slotActivityDiagram ()
 
void slotComponentDiagram ()
 
void slotDeploymentDiagram ()
 
void slotEntityRelationshipDiagram ()
 
void slotAlignLeft ()
 
void slotAlignRight ()
 
void slotAlignTop ()
 
void slotAlignBottom ()
 
void slotAlignVerticalMiddle ()
 
void slotAlignHorizontalMiddle ()
 
void slotAlignVerticalDistribute ()
 
void slotAlignHorizontalDistribute ()
 
void slotClipDataChanged ()
 
void slotCopyChanged ()
 
void slotPrefs (MultiPageDialogBase::PageType page=MultiPageDialogBase::GeneralPage)
 
void slotApplyPrefs ()
 
void slotImportClass ()
 
void slotImportProject ()
 
void slotUpdateViews ()
 
void slotShowTreeView (bool state)
 
void slotShowDebugView (bool state)
 
void slotShowDocumentationView (bool state)
 
void slotShowCmdHistoryView (bool state)
 
void slotShowLogView (bool state)
 
void slotShowBirdView (bool state)
 
void slotCurrentViewClearDiagram ()
 
void slotCurrentViewToggleSnapToGrid ()
 
void slotCurrentViewToggleShowGrid ()
 
void slotCurrentViewExportImage ()
 
void slotViewsExportImages ()
 
void slotCurrentProperties ()
 
void slotClassWizard ()
 
void slotAddDefaultDatatypes ()
 
void slotCurrentViewChanged ()
 
void slotSnapToGridToggled (bool gridOn)
 
void slotShowGridToggled (bool gridOn)
 
void slotSelectAll ()
 
void slotDeleteSelected ()
 
void slotDeleteDiagram ()
 
void slotCloseDiagram (QWidget *tab)
 
void slotGenerateAllCode ()
 
void slotSetZoom (QAction *action)
 
void slotZoomSliderMoved (int value)
 
void slotZoomFit ()
 
void slotZoom100 ()
 
void slotZoomOut ()
 
void slotZoomIn ()
 
void slotBirdViewChanged (const QPointF &newCenter)
 
void setupZoomMenu ()
 
void slotEditUndo ()
 
void slotEditRedo ()
 
void slotTabChanged (QWidget *tab)
 
void slotChangeTabLeft ()
 
void slotChangeTabRight ()
 
void slotMoveTabLeft ()
 
void slotMoveTabRight ()
 
void slotXhtmlDocGenerationFinished (bool status)
 
bool slotOpenFileInEditor (const QUrl &file, int startCursor=0, int endCursor=0)
 

Signals

void sigCutSuccessful ()
 

Public Member Functions

 UMLApp (QWidget *parent=0)
 
 ~UMLApp ()
 
void openDocumentFile (const KUrl &url=KUrl())
 
void newDocument ()
 
UMLDocdocument () const
 
UMLListViewlistView () const
 
WorkToolBarworkToolBar () const
 
DocWindowdocWindow () const
 
QListWidget * logWindow () const
 
bool logToConsole () const
 
void log (const QString &s)
 
void logDebug (const QString &s)
 
void logInfo (const QString &s)
 
void logWarn (const QString &s)
 
void logError (const QString &s)
 
QCursor defaultCursor () const
 
void setModified (bool _m)
 
void enablePrint (bool enable)
 
bool isPasteState () const
 
bool isCutCopyState () const
 
bool isUndoEnabled () const
 
void enableUndo (bool enable)
 
bool isUndoActionEnabled () const
 
void enableUndoAction (bool enable)
 
bool isRedoActionEnabled () const
 
void enableRedoAction (bool enable)
 
bool isSimpleCodeGeneratorActive () const
 
void setGenerator (CodeGenerator *gen, bool giveWarning=true)
 
CodeGeneratorsetGenerator (Uml::ProgrammingLanguage::Enum pl)
 
CodeGeneratorgenerator () const
 
CodeGeneratorcreateGenerator ()
 
void initGenerator ()
 
void refactor (UMLClassifier *classifier)
 
void viewCodeDocument (UMLClassifier *classifier)
 
void setDiagramMenuItemsState (bool bState)
 
QWidget * mainViewWidget () const
 
void setCurrentView (UMLView *view, bool updateTreeView=true)
 
UMLViewcurrentView () const
 
void setImageMimeType (const QString &mimeType)
 
QString imageMimeType () const
 
bool editCutCopy (bool bFromView)
 
KTabWidget * tabWidget ()
 
QString statusBarMsg () const
 
CodeGenerationPolicycommonPolicy () const
 
void setPolicyExt (CodeGenPolicyExt *policy)
 
CodeGenPolicyExtpolicyExt () const
 
void clearUndoStack ()
 
void undo ()
 
void redo ()
 
void executeCommand (QUndoCommand *cmd)
 
void beginMacro (const QString &text)
 
void endMacro ()
 
void setActiveLanguage (Uml::ProgrammingLanguage::Enum pl)
 
Uml::ProgrammingLanguage::Enum activeLanguage () const
 
Uml::ProgrammingLanguage::Enum defaultLanguage () const
 
bool activeLanguageIsCaseSensitive () const
 
QString activeLanguageScopeSeparator () const
 
KConfig * config ()
 
void importFiles (QStringList &fileList, const QString &rootPath=QString())
 

Static Public Member Functions

static UMLAppapp ()
 
static bool shuttingDown ()
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e)
 
virtual void keyReleaseEvent (QKeyEvent *e)
 
virtual void customEvent (QEvent *e)
 
void handleCursorKeyReleaseEvent (QKeyEvent *e)
 
void saveOptions ()
 
void readOptions ()
 
void initActions ()
 
void initStatusBar ()
 
void initView ()
 
virtual bool queryClose ()
 
virtual void saveProperties (KConfigGroup &cfg)
 
virtual void readProperties (const KConfigGroup &cfg)
 
void updateLangSelectMenu (Uml::ProgrammingLanguage::Enum activeLanguage)
 

Private Slots

void setLang_actionscript ()
 
void setLang_ada ()
 
void setLang_cpp ()
 
void setLang_csharp ()
 
void setLang_d ()
 
void setLang_idl ()
 
void setLang_java ()
 
void setLang_javascript ()
 
void setLang_mysql ()
 
void setLang_pascal ()
 
void setLang_perl ()
 
void setLang_php ()
 
void setLang_php5 ()
 
void setLang_postgresql ()
 
void setLang_python ()
 
void setLang_ruby ()
 
void setLang_sql ()
 
void setLang_tcl ()
 
void setLang_vala ()
 
void setLang_xmlschema ()
 
void setLang_none ()
 

Private Member Functions

QMenu * findMenu (const QString &name)
 
QAction * createZoomAction (int zoom, int currentZoom)
 
void setZoom (int zoom, bool withView=true)
 
void resetStatusMsg ()
 
void setProgLangAction (Uml::ProgrammingLanguage::Enum pl, const char *name, const char *action)
 
void readOptionState () const
 
void initClip ()
 
void initSavedCodeGenerators ()
 
void createDiagram (Uml::DiagramType::Enum type)
 
void createBirdView (UMLView *view)
 

Static Private Member Functions

static bool canDecode (const QMimeData *mimeSource)
 

Private Attributes

UMLAppPrivatem_d
 
QMenu * m_langSelect
 For selecting the active language. More...
 
QMenu * m_zoomSelect
 Popup menu for zoom selection. More...
 
Uml::ProgrammingLanguage::Enum m_activeLanguage
 Active language. More...
 
CodeGeneratorm_codegen
 Active code generator. More...
 
CodeGenerationPolicym_commoncodegenpolicy
 
CodeGenPolicyExtm_policyext
 Active policy extension. More...
 
KSharedConfigPtr m_config
 The configuration object of the application. More...
 
QPointer< UMLViewm_view
 
UMLDocm_doc
 
UMLListViewm_listView
 Listview shows the current open file. More...
 
QDockWidget * m_mainDock
 The widget which shows the diagrams. More...
 
QDockWidget * m_listDock
 Contains the UMLListView tree view. More...
 
QDockWidget * m_debugDock
 Contains the debug DocWindow widget. More...
 
QDockWidget * m_documentationDock
 Contains the documentation DocWindow widget. More...
 
QDockWidget * m_cmdHistoryDock
 Contains the undo/redo viewer widget. More...
 
QDockWidget * m_propertyDock
 Contains the property browser widget. More...
 
QDockWidget * m_logDock
 Contains the log window widget. More...
 
BirdViewDockWidgetm_birdViewDock
 Contains the bird's eye view. More...
 
DocWindowm_docWindow
 Documentation window. More...
 
QListWidget * m_logWindow
 Logging window. More...
 
BirdViewm_birdView
 Bird View window. More...
 
QUndoView * m_pQUndoView
 Undo / Redo Viewer. More...
 
RefactoringAssistantm_refactoringAssist
 Refactoring assistant. More...
 
KRecentFilesAction * fileOpenRecent
 
QAction * printPreview
 
QAction * filePrint
 
QAction * editCut
 
QAction * editCopy
 
QAction * editPaste
 
QAction * editUndo
 
QAction * editRedo
 
QAction * viewShowTree
 
QAction * viewShowDebug
 
QAction * viewShowDoc
 
QAction * viewShowLog
 
QAction * viewShowCmdHistory
 
QAction * viewShowBirdView
 
KActionMenu * newDiagram
 
QAction * viewClearDiagram
 
KToggleAction * viewSnapToGrid
 
KToggleAction * viewShowGrid
 
QAction * viewExportImage
 
QAction * viewProperties
 
QAction * zoom100Action
 
QAction * m_langAct [Uml::ProgrammingLanguage::Reserved+1]
 
KAction * deleteSelectedWidget
 
KAction * deleteDiagram
 
QToolButton * m_newSessionButton
 
KMenu * m_diagramMenu
 
WorkToolBarm_toolsbar
 
QTimer * m_clipTimer
 
QTimer * m_copyTimer
 
bool m_loading
 True if the application is opening an existing document. More...
 
QStackedWidget * m_viewStack
 
KTabWidget * m_tabWidget
 
QVBoxLayout * m_layout
 
QString m_imageMimeType
 Default mime type to use for image export. More...
 
SettingsDialogm_settingsDialog
 The global UML settings dialog. More...
 
UMLViewImageExporterAllm_imageExporterAll
 Used to export all the views. More...
 
QLabel * m_zoomValueLbl
 
QPushButton * m_pZoomOutPB
 
QPushButton * m_pZoomInPB
 
StatusBarToolButtonm_pZoomFitSBTB
 
StatusBarToolButtonm_pZoomFullSBTB
 
QSlider * m_pZoomSlider
 
QLabel * m_statusBarMessage
 
XhtmlGeneratorm_xhtmlGenerator
 
KUndoStack * m_pUndoStack
 UndoStack used to store actions, to provide Undo/Redo feature. More...
 
bool m_undoEnabled
 Undo enabled flag. More...
 
bool m_hasBegunMacro
 Macro creation flag. More...
 
QPointer< DiagramPrintPagem_printSettings
 printer diagram settings More...
 
QPrinter * m_printer
 print instance More...
 

Static Private Attributes

static UMLApps_instance
 The last created instance of this class. More...
 
static bool s_shuttingDown = false
 

Friends

class UMLAppPrivate
 
class UMLView
 

Detailed Description

The base class for UML application windows. It sets up the main window and reads the config file as well as providing a menubar, toolbar and statusbar. A list of UMLView instances creates the center views, which are connected to the window's Doc object. The handling of views is realized with two different widgets:

See also
KMainWindow
KApplication
KConfig
Author
Paul Hensgen phens.nosp@m.gen@.nosp@m.techi.nosp@m.e.co.nosp@m.m Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org

Constructor & Destructor Documentation

◆ UMLApp()

UMLApp::UMLApp ( QWidget *  parent = 0)
explicit

Constructor. Calls all init functions to create the application.

Here is the call graph for this function:

◆ ~UMLApp()

UMLApp::~UMLApp ( )

Standard deconstructor.

Here is the call graph for this function:

Member Function Documentation

◆ activeLanguage()

Uml::ProgrammingLanguage::Enum UMLApp::activeLanguage ( ) const

Get the language for import and code generation.

◆ activeLanguageIsCaseSensitive()

bool UMLApp::activeLanguageIsCaseSensitive ( ) const

Return true if the active language is case sensitive.

Here is the call graph for this function:

◆ activeLanguageScopeSeparator()

QString UMLApp::activeLanguageScopeSeparator ( ) const

Return the target language depedent scope separator.

Here is the call graph for this function:

◆ app()

UMLApp * UMLApp::app ( )
static

Get the last created instance of this class.

◆ beginMacro()

void UMLApp::beginMacro ( const QString &  text)

Begin a U/R command macro

Here is the call graph for this function:

◆ canDecode()

bool UMLApp::canDecode ( const QMimeData *  mimeData)
staticprivate

Returns whether we can decode the given mimesource

◆ clearUndoStack()

void UMLApp::clearUndoStack ( )

Removes all entries from the UndoStack and RedoStack and disables the undo and redo actions.

◆ commonPolicy()

CodeGenerationPolicy * UMLApp::commonPolicy ( ) const

Returns the default code generation policy.

◆ config()

KConfig * UMLApp::config ( )

Return the config data.

◆ createBirdView()

void UMLApp::createBirdView ( UMLView view)
private

Create bird's view window in a dock widget.

Here is the call graph for this function:

◆ createDiagram()

void UMLApp::createDiagram ( Uml::DiagramType::Enum  type)
private

Helper function to create diagram name and the diagram itself.

Parameters
typethe type of diagram
Here is the call graph for this function:

◆ createGenerator()

CodeGenerator * UMLApp::createGenerator ( )

◆ createZoomAction()

QAction * UMLApp::createZoomAction ( int  zoom,
int  currentZoom 
)
private

Helper method to create the zoom actions.

◆ currentView()

UMLView * UMLApp::currentView ( ) const

Get the current view. This may return a null pointer (when no view was previously specified.)

◆ customEvent()

void UMLApp::customEvent ( QEvent *  e)
protectedvirtual

Event handler to receive custom events. It handles events such as exporting all views from command line (in that case, it executes the exportAllViews method in the event).

Here is the call graph for this function:

◆ defaultCursor()

QCursor UMLApp::defaultCursor ( ) const

◆ defaultLanguage()

Uml::ProgrammingLanguage::Enum UMLApp::defaultLanguage ( ) const

Return the default code generation language as configured by KConfig. If the activeLanguage is not found in the KConfig then use Uml::ProgrammingLanguage::Cpp as the default.

Here is the call graph for this function:

◆ document()

UMLDoc * UMLApp::document ( ) const

Returns a pointer to the current document connected to the KMainWindow instance. Used by the View class to access the document object's methods.

◆ docWindow()

DocWindow * UMLApp::docWindow ( ) const

Returns the doc window used.

Returns
the doc window being used

◆ editCutCopy()

bool UMLApp::editCutCopy ( bool  bFromView)

Carries out the cut/copy command with different action performed depending on if from view or list view. Cut/Copy are the same. It is up to the caller to delete/cut the selection..

If the operation is successful, the signal sigCutSuccessful() is emitted.

Callers should connect to this signal to know what to do next.

Here is the call graph for this function:

◆ enablePrint()

void UMLApp::enablePrint ( bool  enable)

Set whether to allow printing. It will enable/disable the menu/toolbar options.

Parameters
enableSet whether to allow printing.

◆ enableRedoAction()

void UMLApp::enableRedoAction ( bool  enable)

Set whether to allow Redo. It will enable/disable the menu/toolbar options.

Parameters
enableSet whether to allow printing.

◆ enableUndo()

void UMLApp::enableUndo ( bool  enable)

Set the state of undo support.

Here is the call graph for this function:

◆ enableUndoAction()

void UMLApp::enableUndoAction ( bool  enable)

Set whether to allow Undo. It will enable/disable the menu/toolbar options.

Parameters
enableSet whether to allow printing.

◆ endMacro()

void UMLApp::endMacro ( )

End an U/R command macro

Here is the call graph for this function:

◆ executeCommand()

void UMLApp::executeCommand ( QUndoCommand *  cmd)

Execute a command and push it on the undo stack.

Here is the call graph for this function:

◆ findMenu()

QMenu * UMLApp::findMenu ( const QString &  name)
private

Searches for a menu with the given name.

Todo:
This is an ugly _HACK_ to allow to compile umbrello. All the menu stuff should be ported to KDE4 (using actions)
Parameters
nameThe name of the menu to search for (name, not text)

◆ generator()

CodeGenerator * UMLApp::generator ( ) const

Gets the appropriate CodeGenerator.

Returns
Pointer to the CodeGenerator.

◆ handleCursorKeyReleaseEvent()

void UMLApp::handleCursorKeyReleaseEvent ( QKeyEvent *  e)
protected

Helper method for handling cursor key release events (refactoring). TODO Move this to UMLWidgetController?

Here is the call graph for this function:

◆ imageMimeType()

QString UMLApp::imageMimeType ( ) const

Gets the default mime type for all diagrams that are exported as images.

Returns
The default MIME type for images.

◆ importFiles()

void UMLApp::importFiles ( QStringList &  fileList,
const QString &  rootPath = QString() 
)

Import the source files that are in fileList.

Here is the call graph for this function:

◆ initActions()

void UMLApp::initActions ( )
protected

Initializes the KActions and the status bar of the application and calls setupGUI(). Note: Check also the file umbrelloui.rc and add actions there too.

◆ initClip()

void UMLApp::initClip ( )
private

Initialize Qt's global clipboard support for the application.

Here is the call graph for this function:

◆ initGenerator()

void UMLApp::initGenerator ( )

Reads the activeLanguage from the KConfig and calls updateLangSelectMenu()

Here is the call graph for this function:

◆ initSavedCodeGenerators()

void UMLApp::initSavedCodeGenerators ( )
private

◆ initStatusBar()

void UMLApp::initStatusBar ( )
protected

Sets up the statusbar for the main window by initializing a statuslabel.

Here is the call graph for this function:

◆ initView()

void UMLApp::initView ( )
protected

Creates the centerwidget of the KMainWindow instance and sets it as the view.

Here is the call graph for this function:

◆ isCutCopyState()

bool UMLApp::isCutCopyState ( ) const

Returns the state on Cut/Copy.

Returns
True if Cut/Copy is enabled.

◆ isPasteState()

bool UMLApp::isPasteState ( ) const

Returns the paste state.

Returns
True if Paste is enabled.

◆ isRedoActionEnabled()

bool UMLApp::isRedoActionEnabled ( ) const

Returns the redo state.

Returns
True if Redo is enabled. Is used for popupmenu of a view.

◆ isSimpleCodeGeneratorActive()

bool UMLApp::isSimpleCodeGeneratorActive ( ) const

Determines if SimpleCodeGenerator is active.

Returns
true if SimpleCodeGenerator is active.

◆ isUndoActionEnabled()

bool UMLApp::isUndoActionEnabled ( ) const

Returns the undo state. Is used for popupmenu of a view.

Returns
True if Undo is enabled.

◆ isUndoEnabled()

bool UMLApp::isUndoEnabled ( ) const

Returns the state of undo support.

Returns
True if undo is enabled.

◆ keyPressEvent()

void UMLApp::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Event handler to receive key press events.

◆ keyReleaseEvent()

void UMLApp::keyReleaseEvent ( QKeyEvent *  e)
protectedvirtual

Event handler for key release.

Here is the call graph for this function:

◆ listView()

UMLListView * UMLApp::listView ( ) const

Returns a pointer to the list view.

Returns
The listview being used.

◆ log()

void UMLApp::log ( const QString &  s)

Adds a line to the log window.

Here is the call graph for this function:

◆ logDebug()

void UMLApp::logDebug ( const QString &  s)

Logs a debug message, either to the log window or to the console.

Todo:
This is not yet hooked up. Hooking it up entails vast changes because currently Umbrello uses the uDebug() stream and the stream usages (<<) need to be changed to normal function call syntax.
Here is the call graph for this function:

◆ logError()

void UMLApp::logError ( const QString &  s)

Logs an error message, either to the log window or to the console.

Here is the call graph for this function:

◆ logInfo()

void UMLApp::logInfo ( const QString &  s)

Logs an info message, either to the log window or to the console.

Todo:
This is not yet hooked up but only because Umbrello does not have a uInfo() stream analogous to uDebug / uWarning / uError, i.e. hooking up does not imply a change avalanche in the existing code and can be done as needed.
Here is the call graph for this function:

◆ logToConsole()

bool UMLApp::logToConsole ( ) const

Returns true if the environment variable UMBRELLO_LOG_TO_CONSOLE is set to 1 or if the log dock is not visible. The default is to print info/warnings/error messages to the log dock.

Returns
True if warnings/errors shall be logged to the console.
Here is the call graph for this function:

◆ logWarn()

void UMLApp::logWarn ( const QString &  s)

Logs a warning message, either to the log window or to the console.

Here is the call graph for this function:

◆ logWindow()

QListWidget * UMLApp::logWindow ( ) const

Returns the log window used.

Returns
the log window being used

◆ mainViewWidget()

QWidget * UMLApp::mainViewWidget ( ) const

Returns the widget used as the parent for UMLViews.

Returns
The main view widget.
Here is the call graph for this function:

◆ newDocument()

void UMLApp::newDocument ( )

Calls the UMLDoc method to create a new Document.

Here is the call graph for this function:

◆ openDocumentFile()

void UMLApp::openDocumentFile ( const KUrl &  url = KUrl())

Opens a file specified by commandline option.

◆ policyExt()

CodeGenPolicyExt * UMLApp::policyExt ( ) const

Returns the CodeGenPolicyExt object.

◆ queryClose()

bool UMLApp::queryClose ( )
protectedvirtual

queryClose is called by KMainWindow on each closeEvent of a window. Counter to the default implementation (which only returns true), this calls saveModified() on the document object to ask if the document shall be saved if Modified; on cancel the closeEvent is rejected.

See also
KMainWindow::queryClose
KMainWindow::closeEvent
Returns
True if window may be closed.
Here is the call graph for this function:

◆ readOptions()

void UMLApp::readOptions ( )
protected

Read general Options again and initialize all variables like the recent file list.

Here is the call graph for this function:

◆ readOptionState()

void UMLApp::readOptionState ( ) const
private

Reads from the config file the options state. Not in readOptions as it needs to be read earlier than some of the other options, before some items are created.

Here is the call graph for this function:

◆ readProperties()

void UMLApp::readProperties ( const KConfigGroup &  cfg)
protectedvirtual

Reads the session config file and restores the application's state including the last opened files and documents by reading the temporary files saved by saveProperties()

See also
KMainWindow::readProperties
Here is the call graph for this function:

◆ redo()

void UMLApp::redo ( )

Redo last 'undone' command. Is called from popupmenu of a view.

Here is the call graph for this function:

◆ refactor()

void UMLApp::refactor ( UMLClassifier classifier)

Call the refactoring assistant on a classifier.

Parameters
classifierPointer to the classifier to refactor.
Here is the call graph for this function:

◆ resetStatusMsg()

void UMLApp::resetStatusMsg ( )
private

Helper method to reset the status bar message.

◆ saveOptions()

void UMLApp::saveOptions ( )
protected

Save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration file.

Here is the call graph for this function:

◆ saveProperties()

void UMLApp::saveProperties ( KConfigGroup &  cfg)
protectedvirtual

Saves the window properties for each open window during session end to the session config file, including saving the currently opened file by a temporary filename provided by KApplication.

See also
KMainWindow::saveProperties
Here is the call graph for this function:

◆ setActiveLanguage()

void UMLApp::setActiveLanguage ( Uml::ProgrammingLanguage::Enum  pl)

Set the language for which code will be generated.

Parameters
plThe name of the language to set
Here is the call graph for this function:

◆ setCurrentView()

void UMLApp::setCurrentView ( UMLView view,
bool  updateTreeView = true 
)

Puts this view to the top of the viewStack, i.e. makes it visible to the user.

Parameters
viewPointer to the UMLView to push.
updateTreeViewA false value disables updating of the tree view
Here is the call graph for this function:

◆ setDiagramMenuItemsState()

void UMLApp::setDiagramMenuItemsState ( bool  bState)

Sets the state of the view properties menu item.

Parameters
bStateBoolean, true to enable the view properties item.
Here is the call graph for this function:

◆ setGenerator() [1/2]

void UMLApp::setGenerator ( CodeGenerator gen,
bool  giveWarning = true 
)

◆ setGenerator() [2/2]

CodeGenerator * UMLApp::setGenerator ( Uml::ProgrammingLanguage::Enum  pl)

Auxiliary function for UMLDoc::loadExtensionsFromXMI(): Return the code generator of the given language if it already exists; if it does not yet exist then create it and return the newly created generator. It is the caller's responsibility to load XMI into the newly created generator.

Here is the call graph for this function:

◆ setImageMimeType()

void UMLApp::setImageMimeType ( const QString &  mimeType)

Sets the default mime type for all diagrams that are exported as images.

Parameters
mimeTypethe mime type

◆ setLang_actionscript

void UMLApp::setLang_actionscript ( )
privateslot

Slots for connection to the QActions of the m_langSelect menu.

Here is the call graph for this function:

◆ setLang_ada

void UMLApp::setLang_ada ( )
privateslot
Here is the call graph for this function:

◆ setLang_cpp

void UMLApp::setLang_cpp ( )
privateslot
Here is the call graph for this function:

◆ setLang_csharp

void UMLApp::setLang_csharp ( )
privateslot
Here is the call graph for this function:

◆ setLang_d

void UMLApp::setLang_d ( )
privateslot
Here is the call graph for this function:

◆ setLang_idl

void UMLApp::setLang_idl ( )
privateslot
Here is the call graph for this function:

◆ setLang_java

void UMLApp::setLang_java ( )
privateslot
Here is the call graph for this function:

◆ setLang_javascript

void UMLApp::setLang_javascript ( )
privateslot
Here is the call graph for this function:

◆ setLang_mysql

void UMLApp::setLang_mysql ( )
privateslot
Here is the call graph for this function:

◆ setLang_none

void UMLApp::setLang_none ( )
privateslot
Here is the call graph for this function:

◆ setLang_pascal

void UMLApp::setLang_pascal ( )
privateslot
Here is the call graph for this function:

◆ setLang_perl

void UMLApp::setLang_perl ( )
privateslot
Here is the call graph for this function:

◆ setLang_php

void UMLApp::setLang_php ( )
privateslot
Here is the call graph for this function:

◆ setLang_php5

void UMLApp::setLang_php5 ( )
privateslot
Here is the call graph for this function:

◆ setLang_postgresql

void UMLApp::setLang_postgresql ( )
privateslot
Here is the call graph for this function:

◆ setLang_python

void UMLApp::setLang_python ( )
privateslot
Here is the call graph for this function:

◆ setLang_ruby

void UMLApp::setLang_ruby ( )
privateslot
Here is the call graph for this function:

◆ setLang_sql

void UMLApp::setLang_sql ( )
privateslot
Here is the call graph for this function:

◆ setLang_tcl

void UMLApp::setLang_tcl ( )
privateslot
Here is the call graph for this function:

◆ setLang_vala

void UMLApp::setLang_vala ( )
privateslot
Here is the call graph for this function:

◆ setLang_xmlschema

void UMLApp::setLang_xmlschema ( )
privateslot
Here is the call graph for this function:

◆ setModified()

void UMLApp::setModified ( bool  modified)

Sets whether the program has been modified. This will change how the program saves/exits.

Parameters
modifiedtrue - modified.
Here is the call graph for this function:

◆ setPolicyExt()

void UMLApp::setPolicyExt ( CodeGenPolicyExt policy)

Sets the CodeGenPolicyExt object.

◆ setProgLangAction()

void UMLApp::setProgLangAction ( Uml::ProgrammingLanguage::Enum  pl,
const char *  name,
const char *  action 
)
private

Helper method to setup the programming language action.

◆ setupZoomMenu

void UMLApp::setupZoomMenu ( )
slot

Prepares the zoom menu for display.

Here is the call graph for this function:

◆ setZoom()

void UMLApp::setZoom ( int  zoom,
bool  withView = true 
)
private

Set the zoom factor of the current diagram.

Parameters
zoomZoom factor in percentage.
withViewalso setup the currently displayed diagram
Here is the call graph for this function:

◆ shuttingDown()

bool UMLApp::shuttingDown ( )
static

Return true during shutdown, i.e. during ~UMLApp().

◆ sigCutSuccessful

void UMLApp::sigCutSuccessful ( )
signal

◆ slotActivityDiagram

void UMLApp::slotActivityDiagram ( )
slot

Create this view.

Here is the call graph for this function:

◆ slotAddDefaultDatatypes

void UMLApp::slotAddDefaultDatatypes ( )
slot

Calls the active code generator to add its default datatypes.

Here is the call graph for this function:

◆ slotAlignBottom

void UMLApp::slotAlignBottom ( )
slot

Bottom Alignment

Here is the call graph for this function:

◆ slotAlignHorizontalDistribute

void UMLApp::slotAlignHorizontalDistribute ( )
slot

Horizontal Distribute Alignment

Here is the call graph for this function:

◆ slotAlignHorizontalMiddle

void UMLApp::slotAlignHorizontalMiddle ( )
slot

Horizontal Middle Alignment

Here is the call graph for this function:

◆ slotAlignLeft

void UMLApp::slotAlignLeft ( )
slot

Left Alignment

Here is the call graph for this function:

◆ slotAlignRight

void UMLApp::slotAlignRight ( )
slot

Right Alignment

Here is the call graph for this function:

◆ slotAlignTop

void UMLApp::slotAlignTop ( )
slot

Top Alignment

Here is the call graph for this function:

◆ slotAlignVerticalDistribute

void UMLApp::slotAlignVerticalDistribute ( )
slot

Vertical Distribute Alignment

Here is the call graph for this function:

◆ slotAlignVerticalMiddle

void UMLApp::slotAlignVerticalMiddle ( )
slot

Vertical Middle Alignment

Here is the call graph for this function:

◆ slotApplyPrefs

void UMLApp::slotApplyPrefs ( )
slot

Commits the changes from the global preferences dialog.

Here is the call graph for this function:

◆ slotBirdViewChanged

void UMLApp::slotBirdViewChanged ( const QPointF &  delta)
slot

Slot for changes of the bird view's rectangle by moving.

Parameters
deltachange value for a move
Here is the call graph for this function:

◆ slotChangeTabLeft

void UMLApp::slotChangeTabLeft ( )
slot

Make the tab on the left of the current one the active one.

Here is the call graph for this function:

◆ slotChangeTabRight

void UMLApp::slotChangeTabRight ( )
slot

Make the tab on the right of the current one the active one.

Here is the call graph for this function:

◆ slotClassDiagram

void UMLApp::slotClassDiagram ( )
slot

Create this view.

Here is the call graph for this function:

◆ slotClassWizard

void UMLApp::slotClassWizard ( )
slot

Class wizard menu selection.

◆ slotClipDataChanged

void UMLApp::slotClipDataChanged ( )
slot

Notification of changed clipboard data.

Here is the call graph for this function:

◆ slotCloseDiagram

void UMLApp::slotCloseDiagram ( QWidget *  tab)
slot

Close the current diagram. Clicked on tab close button.

Parameters
tabWidget's tab to close
Here is the call graph for this function:

◆ slotCollaborationDiagram

void UMLApp::slotCollaborationDiagram ( )
slot

Create this view.

Here is the call graph for this function:

◆ slotComponentDiagram

void UMLApp::slotComponentDiagram ( )
slot

Create this view.

Here is the call graph for this function:

◆ slotCopyChanged

void UMLApp::slotCopyChanged ( )
slot

Slot for enabling cut and copy to clipboard.

Here is the call graph for this function:

◆ slotCurrentProperties

void UMLApp::slotCurrentProperties ( )
slot

Menu selection for current view and contained widgets properties.

Here is the call graph for this function:

◆ slotCurrentViewChanged

void UMLApp::slotCurrentViewChanged ( )
slot

The displayed diagram has changed.

Here is the call graph for this function:

◆ slotCurrentViewClearDiagram

void UMLApp::slotCurrentViewClearDiagram ( )
slot

Menu selection for clear current view.

Here is the call graph for this function:

◆ slotCurrentViewExportImage

void UMLApp::slotCurrentViewExportImage ( )
slot

Menu selection for exporting current view as an image.

Here is the call graph for this function:

◆ slotCurrentViewToggleShowGrid

void UMLApp::slotCurrentViewToggleShowGrid ( )
slot

Menu selection for current view show grid property.

Here is the call graph for this function:

◆ slotCurrentViewToggleSnapToGrid

void UMLApp::slotCurrentViewToggleSnapToGrid ( )
slot

Menu selection for current view snap to grid property.

Here is the call graph for this function:

◆ slotDeleteDiagram

void UMLApp::slotDeleteDiagram ( )
slot

Deletes the current diagram. Called from menu action.

Here is the call graph for this function:

◆ slotDeleteSelected

void UMLApp::slotDeleteSelected ( )
slot

Deletes selected widgets or list view items.

Here is the call graph for this function:

◆ slotDeploymentDiagram

void UMLApp::slotDeploymentDiagram ( )
slot

Create this view.

Here is the call graph for this function:

◆ slotEditCopy

void UMLApp::slotEditCopy ( )
slot

Put the marked text/object into the clipboard.

Here is the call graph for this function:

◆ slotEditCut

void UMLApp::slotEditCut ( )
slot

Put the marked text/object into the clipboard and remove it from the document.

Here is the call graph for this function:

◆ slotEditPaste

void UMLApp::slotEditPaste ( )
slot

Paste the clipboard into the document.

Here is the call graph for this function:

◆ slotEditRedo

void UMLApp::slotEditRedo ( )
slot

Reverts the document back to the state it was prior to the last undo.

Here is the call graph for this function:

◆ slotEditUndo

void UMLApp::slotEditUndo ( )
slot

Reverts the document back to the state it was prior to the last action performed by the user.

Here is the call graph for this function:

◆ slotEntityRelationshipDiagram

void UMLApp::slotEntityRelationshipDiagram ( )
slot

Create this view.

Here is the call graph for this function:

◆ slotExecGenerationWizard

void UMLApp::slotExecGenerationWizard ( )
slot

Runs the code generation wizard.

◆ slotFileClose

void UMLApp::slotFileClose ( )
slot

Asks for saving if the file is modified, then closes the current file and window.

Here is the call graph for this function:

◆ slotFileExportDocbook

void UMLApp::slotFileExportDocbook ( )
slot

Exports the current model to docbook in a subdir of the current model directory named from the model name.

Todo:
Let the user chose the destination directory and name, using network transparency.
Here is the call graph for this function:

◆ slotFileExportXhtml

void UMLApp::slotFileExportXhtml ( )
slot

Exports the current model to XHTML in a subdir of the current model directory named from the model name.

Todo:
Let the user chose the destination directory and name, using network transparency.
Here is the call graph for this function:

◆ slotFileNew

void UMLApp::slotFileNew ( )
slot

Clears the document in the actual view to reuse it as the new document.

Here is the call graph for this function:

◆ slotFileOpen

void UMLApp::slotFileOpen ( )
slot

Open a file and load it into the document.

Here is the call graph for this function:

◆ slotFileOpenRecent

void UMLApp::slotFileOpenRecent ( const KUrl &  url)
slot

Opens a file from the recent files menu.

◆ slotFilePrint

void UMLApp::slotFilePrint ( )
slot

Print the current file.

Here is the call graph for this function:

◆ slotFileQuit

void UMLApp::slotFileQuit ( )
slot

Closes all open windows by calling close() on each memberList item until the list is empty, then quits the application. If queryClose() returns false because the user canceled the saveModified() dialog, the closing aborts.

Here is the call graph for this function:

◆ slotFileSave

void UMLApp::slotFileSave ( )
slot

Save a document.

Here is the call graph for this function:

◆ slotFileSaveAs

bool UMLApp::slotFileSaveAs ( )
slot

Save a document by a new filename.

Here is the call graph for this function:

◆ slotFind

void UMLApp::slotFind ( )
slot

find text

Here is the call graph for this function:

◆ slotFindNext

void UMLApp::slotFindNext ( )
slot

Slot for showing next find result

Here is the call graph for this function:

◆ slotFindPrevious

void UMLApp::slotFindPrevious ( )
slot

Slot for showing previous find result

Here is the call graph for this function:

◆ slotGenerateAllCode

void UMLApp::slotGenerateAllCode ( )
slot

Generate code for all classes.

Here is the call graph for this function:

◆ slotImportClass

void UMLApp::slotImportClass ( )
slot

Import class menu selection.

Here is the call graph for this function:

◆ slotImportingWizard

void UMLApp::slotImportingWizard ( )
slot

Runs the code importing wizard.

◆ slotImportProject

void UMLApp::slotImportProject ( )
slot

Import project menu selection.

Here is the call graph for this function:

◆ slotMoveTabLeft

void UMLApp::slotMoveTabLeft ( )
slot

Move the current tab left.

◆ slotMoveTabRight

void UMLApp::slotMoveTabRight ( )
slot

Move the current tab right.

◆ slotObjectDiagram

void UMLApp::slotObjectDiagram ( )
slot

Create this view.

Here is the call graph for this function:

◆ slotOpenFileInEditor

bool UMLApp::slotOpenFileInEditor ( const QUrl &  file,
int  startCursor = 0,
int  endCursor = 0 
)
slot

open file in internal editor

Parameters
filepath to the file to open
startCursorcursor position for selection start
endCursorcursor position for selection end
Returns
true file could be loaded
false file could not be loaded
Here is the call graph for this function:

◆ slotPrefs

void UMLApp::slotPrefs ( MultiPageDialogBase::PageType  page = MultiPageDialogBase::GeneralPage)
slot

Shows the global preferences dialog.

Here is the call graph for this function:

◆ slotPrintPreview

void UMLApp::slotPrintPreview ( )
slot

Print preview

Here is the call graph for this function:

◆ slotPrintPreviewPaintRequested

void UMLApp::slotPrintPreviewPaintRequested ( QPrinter *  printer)
slot

Print preview painting slot

Here is the call graph for this function:

◆ slotPrintSettings

bool UMLApp::slotPrintSettings ( )
slot

Slot for showing a print settings dialog.

Here is the call graph for this function:

◆ slotSelectAll

void UMLApp::slotSelectAll ( )
slot

Select all widgets on the current diagram.

Here is the call graph for this function:

◆ slotSequenceDiagram

void UMLApp::slotSequenceDiagram ( )
slot

Create this view.

Here is the call graph for this function:

◆ slotSetZoom

void UMLApp::slotSetZoom ( QAction *  action)
slot

Set the zoom factor of the current diagram.

Parameters
actionAction which is called.
Here is the call graph for this function:

◆ slotShowBirdView

void UMLApp::slotShowBirdView ( bool  state)
slot

◆ slotShowCmdHistoryView

void UMLApp::slotShowCmdHistoryView ( bool  state)
slot

◆ slotShowDebugView

void UMLApp::slotShowDebugView ( bool  state)
slot

◆ slotShowDocumentationView

void UMLApp::slotShowDocumentationView ( bool  state)
slot

◆ slotShowGridToggled

void UMLApp::slotShowGridToggled ( bool  gridOn)
slot

The show grid value has been changed.

◆ slotShowLogView

void UMLApp::slotShowLogView ( bool  state)
slot

◆ slotShowTreeView

void UMLApp::slotShowTreeView ( bool  state)
slot

◆ slotSnapToGridToggled

void UMLApp::slotSnapToGridToggled ( bool  gridOn)
slot

The snap to grid value has been changed.

◆ slotStateDiagram

void UMLApp::slotStateDiagram ( )
slot

Create this view.

Here is the call graph for this function:

◆ slotStatusMsg

void UMLApp::slotStatusMsg ( const QString &  text)
slot

Changes the statusbar contents for the standard label permanently, used to indicate current actions.

Parameters
textThe text that is displayed in the statusbar

◆ slotTabChanged

void UMLApp::slotTabChanged ( QWidget *  tab)
slot

Called when the tab has changed.

Parameters
tabThe changed tab widget
Here is the call graph for this function:

◆ slotUpdateViews

void UMLApp::slotUpdateViews ( )
slot

Register new views (aka diagram) with the GUI so they show up in the menu.

Here is the call graph for this function:

◆ slotUseCaseDiagram

void UMLApp::slotUseCaseDiagram ( )
slot

Create this view.

Here is the call graph for this function:

◆ slotViewsExportImages

void UMLApp::slotViewsExportImages ( )
slot

Menu selection for exporting all views as images.

Here is the call graph for this function:

◆ slotXhtmlDocGenerationFinished

void UMLApp::slotXhtmlDocGenerationFinished ( bool  status)
slot

This slot deletes the current XHTML documentation generator as soon as this one signals that it has finished.

Parameters
statustrue if successful else false
Here is the call graph for this function:

◆ slotZoom100

void UMLApp::slotZoom100 ( )
slot

Set zoom to 100%.

Here is the call graph for this function:

◆ slotZoomFit

void UMLApp::slotZoomFit ( )
slot

Set zoom to fit the view.

Here is the call graph for this function:

◆ slotZoomIn

void UMLApp::slotZoomIn ( )
slot

Increase the zoom factor of the current diagram.

Here is the call graph for this function:

◆ slotZoomOut

void UMLApp::slotZoomOut ( )
slot

Decrease the zoom factor of the current diagram.

Here is the call graph for this function:

◆ slotZoomSliderMoved

void UMLApp::slotZoomSliderMoved ( int  value)
slot

Connected to by the zoomAction, a value of between 300 and 2200 is scaled to zoom to between 9% and 525%. The min and max values of the slider are hard coded in the statusbar slider.

Here is the call graph for this function:

◆ statusBarMsg()

QString UMLApp::statusBarMsg ( ) const

Returns the current text in the status bar.

Returns
The text in the status bar.

◆ tabWidget()

KTabWidget * UMLApp::tabWidget ( )

Return the tab widget.

◆ undo()

void UMLApp::undo ( )

Undo last command. Is called from popupmenu of a view.

Here is the call graph for this function:

◆ updateLangSelectMenu()

void UMLApp::updateLangSelectMenu ( Uml::ProgrammingLanguage::Enum  activeLanguage)
protected

Updates the Menu for language selection and sets the active language. If no active language is found or if it is not one of the registered languages it tries to fall back to Cpp

Here is the call graph for this function:

◆ viewCodeDocument()

void UMLApp::viewCodeDocument ( UMLClassifier classifier)

Call the code viewing assistant on a given UMLClassifier.

Parameters
classifierPointer to the classifier to view.
Here is the call graph for this function:

◆ workToolBar()

WorkToolBar * UMLApp::workToolBar ( ) const

Returns the toolbar being used.

Returns
The toolbar being used.

Friends And Related Function Documentation

◆ UMLAppPrivate

friend class UMLAppPrivate
friend

◆ UMLView

friend class UMLView
friend

Member Data Documentation

◆ deleteDiagram

KAction* UMLApp::deleteDiagram
private

◆ deleteSelectedWidget

KAction* UMLApp::deleteSelectedWidget
private

◆ editCopy

QAction* UMLApp::editCopy
private

◆ editCut

QAction* UMLApp::editCut
private

◆ editPaste

QAction* UMLApp::editPaste
private

◆ editRedo

QAction* UMLApp::editRedo
private

◆ editUndo

QAction* UMLApp::editUndo
private

◆ fileOpenRecent

KRecentFilesAction* UMLApp::fileOpenRecent
private

◆ filePrint

QAction* UMLApp::filePrint
private

◆ m_activeLanguage

Uml::ProgrammingLanguage::Enum UMLApp::m_activeLanguage
private

Active language.

◆ m_birdView

BirdView* UMLApp::m_birdView
private

Bird View window.

◆ m_birdViewDock

BirdViewDockWidget* UMLApp::m_birdViewDock
private

Contains the bird's eye view.

◆ m_clipTimer

QTimer* UMLApp::m_clipTimer
private

◆ m_cmdHistoryDock

QDockWidget* UMLApp::m_cmdHistoryDock
private

Contains the undo/redo viewer widget.

◆ m_codegen

CodeGenerator* UMLApp::m_codegen
private

Active code generator.

◆ m_commoncodegenpolicy

CodeGenerationPolicy* UMLApp::m_commoncodegenpolicy
private

◆ m_config

KSharedConfigPtr UMLApp::m_config
private

The configuration object of the application.

◆ m_copyTimer

QTimer* UMLApp::m_copyTimer
private

◆ m_d

UMLAppPrivate* UMLApp::m_d
private

◆ m_debugDock

QDockWidget* UMLApp::m_debugDock
private

Contains the debug DocWindow widget.

◆ m_diagramMenu

KMenu* UMLApp::m_diagramMenu
private

◆ m_doc

UMLDoc* UMLApp::m_doc
private

Doc represents your actual document and is created only once. It keeps information such as filename and does the loading and saving of your files.

◆ m_documentationDock

QDockWidget* UMLApp::m_documentationDock
private

Contains the documentation DocWindow widget.

◆ m_docWindow

DocWindow* UMLApp::m_docWindow
private

Documentation window.

◆ m_hasBegunMacro

bool UMLApp::m_hasBegunMacro
private

Macro creation flag.

◆ m_imageExporterAll

UMLViewImageExporterAll* UMLApp::m_imageExporterAll
private

Used to export all the views.

◆ m_imageMimeType

QString UMLApp::m_imageMimeType
private

Default mime type to use for image export.

◆ m_langAct

QAction* UMLApp::m_langAct[Uml::ProgrammingLanguage::Reserved+1]
private

◆ m_langSelect

QMenu* UMLApp::m_langSelect
private

For selecting the active language.

◆ m_layout

QVBoxLayout* UMLApp::m_layout
private

Layout supports the dynamic management of the diagram representation (tabbed/stacked) if tabbed diagrams is enabled it contains m_tabWidget if tabbed diagrams is disabled it contains m_viewStack

◆ m_listDock

QDockWidget* UMLApp::m_listDock
private

Contains the UMLListView tree view.

◆ m_listView

UMLListView* UMLApp::m_listView
private

Listview shows the current open file.

◆ m_loading

bool UMLApp::m_loading
private

True if the application is opening an existing document.

◆ m_logDock

QDockWidget* UMLApp::m_logDock
private

Contains the log window widget.

◆ m_logWindow

QListWidget* UMLApp::m_logWindow
private

Logging window.

◆ m_mainDock

QDockWidget* UMLApp::m_mainDock
private

The widget which shows the diagrams.

◆ m_newSessionButton

QToolButton* UMLApp::m_newSessionButton
private

◆ m_policyext

CodeGenPolicyExt* UMLApp::m_policyext
private

Active policy extension.

◆ m_pQUndoView

QUndoView* UMLApp::m_pQUndoView
private

Undo / Redo Viewer.

◆ m_printer

QPrinter* UMLApp::m_printer
private

print instance

◆ m_printSettings

QPointer<DiagramPrintPage> UMLApp::m_printSettings
private

printer diagram settings

◆ m_propertyDock

QDockWidget* UMLApp::m_propertyDock
private

Contains the property browser widget.

◆ m_pUndoStack

KUndoStack* UMLApp::m_pUndoStack
private

UndoStack used to store actions, to provide Undo/Redo feature.

◆ m_pZoomFitSBTB

StatusBarToolButton* UMLApp::m_pZoomFitSBTB
private

◆ m_pZoomFullSBTB

StatusBarToolButton* UMLApp::m_pZoomFullSBTB
private

◆ m_pZoomInPB

QPushButton* UMLApp::m_pZoomInPB
private

◆ m_pZoomOutPB

QPushButton* UMLApp::m_pZoomOutPB
private

◆ m_pZoomSlider

QSlider* UMLApp::m_pZoomSlider
private

◆ m_refactoringAssist

RefactoringAssistant* UMLApp::m_refactoringAssist
private

Refactoring assistant.

◆ m_settingsDialog

SettingsDialog* UMLApp::m_settingsDialog
private

The global UML settings dialog.

◆ m_statusBarMessage

QLabel* UMLApp::m_statusBarMessage
private

◆ m_tabWidget

KTabWidget* UMLApp::m_tabWidget
private

Shows, and is parent of, all the UMLViews (diagrams) if tabbed diagrams are enabled.

◆ m_toolsbar

WorkToolBar* UMLApp::m_toolsbar
private

◆ m_undoEnabled

bool UMLApp::m_undoEnabled
private

Undo enabled flag.

◆ m_view

QPointer<UMLView> UMLApp::m_view
private

View is the main widget which represents your working area. The View class should handle all events of the view widget. It is kept empty so you can create your view according to your application's needs by changing the view class.

◆ m_viewStack

QStackedWidget* UMLApp::m_viewStack
private

Shows, and is parent of, all the UMLViews (diagrams) if tabbed diagrams are not enabled.

◆ m_xhtmlGenerator

XhtmlGenerator* UMLApp::m_xhtmlGenerator
private

The running XHTML documentation generator. Null when no generation is running.

◆ m_zoomSelect

QMenu* UMLApp::m_zoomSelect
private

Popup menu for zoom selection.

◆ m_zoomValueLbl

QLabel* UMLApp::m_zoomValueLbl
private

Statusbar items

◆ newDiagram

KActionMenu* UMLApp::newDiagram
private

◆ printPreview

QAction* UMLApp::printPreview
private

◆ s_instance

UMLApp * UMLApp::s_instance
staticprivate

The last created instance of this class.

Static pointer, holding the last created instance.

◆ s_shuttingDown

bool UMLApp::s_shuttingDown = false
staticprivate

Static flag returned by static function shuttingDown(). It is intentionally an extra static member because it is queried after calling the UMLApp destructor. Member accesses shall be avoided during destruction.

◆ viewClearDiagram

QAction* UMLApp::viewClearDiagram
private

◆ viewExportImage

QAction* UMLApp::viewExportImage
private

◆ viewProperties

QAction* UMLApp::viewProperties
private

◆ viewShowBirdView

QAction* UMLApp::viewShowBirdView
private

◆ viewShowCmdHistory

QAction* UMLApp::viewShowCmdHistory
private

◆ viewShowDebug

QAction* UMLApp::viewShowDebug
private

◆ viewShowDoc

QAction* UMLApp::viewShowDoc
private

◆ viewShowGrid

KToggleAction* UMLApp::viewShowGrid
private

◆ viewShowLog

QAction* UMLApp::viewShowLog
private

◆ viewShowTree

QAction* UMLApp::viewShowTree
private

◆ viewSnapToGrid

KToggleAction* UMLApp::viewSnapToGrid
private

◆ zoom100Action

QAction* UMLApp::zoom100Action
private

The documentation for this class was generated from the following files: