#include <uml.h>
|
static bool | canDecode (const QMimeData *mimeSource) |
|
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:
- stack widget
- tab widget The current view handling is set as an option. UMLApp reimplements the methods that KMainWindow provides for main window handling and supports full session management as well as using KActions.
- 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
◆ UMLApp()
UMLApp::UMLApp |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Constructor. Calls all init functions to create the application.
◆ ~UMLApp()
◆ activeLanguage()
Get the language for import and code generation.
◆ activeLanguageIsCaseSensitive()
bool UMLApp::activeLanguageIsCaseSensitive |
( |
| ) |
const |
Return true if the active language is case sensitive.
◆ activeLanguageScopeSeparator()
QString UMLApp::activeLanguageScopeSeparator |
( |
| ) |
const |
Return the target language depedent scope separator.
◆ app()
Get the last created instance of this class.
◆ beginMacro()
void UMLApp::beginMacro |
( |
const QString & |
text | ) |
|
Begin a U/R command macro
◆ 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()
Returns the default code generation policy.
◆ config()
KConfig * UMLApp::config |
( |
| ) |
|
◆ createBirdView()
void UMLApp::createBirdView |
( |
UMLView * |
view | ) |
|
|
private |
Create bird's view window in a dock widget.
◆ createDiagram()
Helper function to create diagram name and the diagram itself.
- Parameters
-
◆ 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).
◆ defaultCursor()
QCursor UMLApp::defaultCursor |
( |
| ) |
const |
◆ defaultLanguage()
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.
◆ 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()
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.
◆ enablePrint()
void UMLApp::enablePrint |
( |
bool |
enable | ) |
|
Set whether to allow printing. It will enable/disable the menu/toolbar options.
- Parameters
-
enable | Set whether to allow printing. |
◆ enableRedoAction()
void UMLApp::enableRedoAction |
( |
bool |
enable | ) |
|
Set whether to allow Redo. It will enable/disable the menu/toolbar options.
- Parameters
-
enable | Set whether to allow printing. |
◆ enableUndo()
void UMLApp::enableUndo |
( |
bool |
enable | ) |
|
Set the state of undo support.
◆ enableUndoAction()
void UMLApp::enableUndoAction |
( |
bool |
enable | ) |
|
Set whether to allow Undo. It will enable/disable the menu/toolbar options.
- Parameters
-
enable | Set whether to allow printing. |
◆ endMacro()
void UMLApp::endMacro |
( |
| ) |
|
◆ executeCommand()
void UMLApp::executeCommand |
( |
QUndoCommand * |
cmd | ) |
|
Execute a command and push it on the undo stack.
◆ 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
-
name | The name of the menu to search for (name, not text) |
◆ generator()
◆ handleCursorKeyReleaseEvent()
void UMLApp::handleCursorKeyReleaseEvent |
( |
QKeyEvent * |
e | ) |
|
|
protected |
Helper method for handling cursor key release events (refactoring). TODO Move this to UMLWidgetController?
◆ 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.
◆ 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.
◆ initGenerator()
void UMLApp::initGenerator |
( |
| ) |
|
◆ initSavedCodeGenerators()
void UMLApp::initSavedCodeGenerators |
( |
| ) |
|
|
private |
◆ initStatusBar()
void UMLApp::initStatusBar |
( |
| ) |
|
|
protected |
Sets up the statusbar for the main window by initializing a statuslabel.
◆ initView()
void UMLApp::initView |
( |
| ) |
|
|
protected |
Creates the centerwidget of the KMainWindow instance and sets it as the view.
◆ 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 |
◆ 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.
◆ listView()
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.
◆ 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.
◆ logError()
void UMLApp::logError |
( |
const QString & |
s | ) |
|
Logs an error message, either to the log window or to the console.
◆ 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.
◆ 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.
◆ logWarn()
void UMLApp::logWarn |
( |
const QString & |
s | ) |
|
Logs a warning message, either to the log window or to the console.
◆ 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.
◆ newDocument()
void UMLApp::newDocument |
( |
| ) |
|
Calls the UMLDoc method to create a new Document.
◆ openDocumentFile()
void UMLApp::openDocumentFile |
( |
const KUrl & |
url = KUrl() | ) |
|
Opens a file specified by commandline option.
◆ policyExt()
◆ 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.
◆ readOptions()
void UMLApp::readOptions |
( |
| ) |
|
|
protected |
Read general Options again and initialize all variables like the recent file list.
◆ 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.
◆ 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
◆ redo()
Redo last 'undone' command. Is called from popupmenu of a view.
◆ refactor()
Call the refactoring assistant on a classifier.
- Parameters
-
classifier | Pointer to the classifier to refactor. |
◆ 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.
◆ 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
◆ setActiveLanguage()
Set the language for which code will be generated.
- Parameters
-
pl | The name of the language to set |
◆ 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
-
view | Pointer to the UMLView to push. |
updateTreeView | A false value disables updating of the tree view |
◆ setDiagramMenuItemsState()
void UMLApp::setDiagramMenuItemsState |
( |
bool |
bState | ) |
|
Sets the state of the view properties menu item.
- Parameters
-
bState | Boolean, true to enable the view properties item. |
◆ setGenerator() [1/2]
void UMLApp::setGenerator |
( |
CodeGenerator * |
gen, |
|
|
bool |
giveWarning = true |
|
) |
| |
◆ setGenerator() [2/2]
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.
◆ setImageMimeType()
void UMLApp::setImageMimeType |
( |
const QString & |
mimeType | ) |
|
Sets the default mime type for all diagrams that are exported as images.
- Parameters
-
◆ setLang_actionscript
void UMLApp::setLang_actionscript |
( |
| ) |
|
|
privateslot |
Slots for connection to the QActions of the m_langSelect menu.
◆ setLang_ada
void UMLApp::setLang_ada |
( |
| ) |
|
|
privateslot |
◆ setLang_cpp
void UMLApp::setLang_cpp |
( |
| ) |
|
|
privateslot |
◆ setLang_csharp
void UMLApp::setLang_csharp |
( |
| ) |
|
|
privateslot |
◆ setLang_d
void UMLApp::setLang_d |
( |
| ) |
|
|
privateslot |
◆ setLang_idl
void UMLApp::setLang_idl |
( |
| ) |
|
|
privateslot |
◆ setLang_java
void UMLApp::setLang_java |
( |
| ) |
|
|
privateslot |
◆ setLang_javascript
void UMLApp::setLang_javascript |
( |
| ) |
|
|
privateslot |
◆ setLang_mysql
void UMLApp::setLang_mysql |
( |
| ) |
|
|
privateslot |
◆ setLang_none
void UMLApp::setLang_none |
( |
| ) |
|
|
privateslot |
◆ setLang_pascal
void UMLApp::setLang_pascal |
( |
| ) |
|
|
privateslot |
◆ setLang_perl
void UMLApp::setLang_perl |
( |
| ) |
|
|
privateslot |
◆ setLang_php
void UMLApp::setLang_php |
( |
| ) |
|
|
privateslot |
◆ setLang_php5
void UMLApp::setLang_php5 |
( |
| ) |
|
|
privateslot |
◆ setLang_postgresql
void UMLApp::setLang_postgresql |
( |
| ) |
|
|
privateslot |
◆ setLang_python
void UMLApp::setLang_python |
( |
| ) |
|
|
privateslot |
◆ setLang_ruby
void UMLApp::setLang_ruby |
( |
| ) |
|
|
privateslot |
◆ setLang_sql
void UMLApp::setLang_sql |
( |
| ) |
|
|
privateslot |
◆ setLang_tcl
void UMLApp::setLang_tcl |
( |
| ) |
|
|
privateslot |
◆ setLang_vala
void UMLApp::setLang_vala |
( |
| ) |
|
|
privateslot |
◆ setLang_xmlschema
void UMLApp::setLang_xmlschema |
( |
| ) |
|
|
privateslot |
◆ setModified()
void UMLApp::setModified |
( |
bool |
modified | ) |
|
Sets whether the program has been modified. This will change how the program saves/exits.
- Parameters
-
◆ setPolicyExt()
◆ setProgLangAction()
Helper method to setup the programming language action.
◆ setupZoomMenu
void UMLApp::setupZoomMenu |
( |
| ) |
|
|
slot |
Prepares the zoom menu for display.
◆ setZoom()
void UMLApp::setZoom |
( |
int |
zoom, |
|
|
bool |
withView = true |
|
) |
| |
|
private |
Set the zoom factor of the current diagram.
- Parameters
-
zoom | Zoom factor in percentage. |
withView | also setup the currently displayed diagram |
◆ shuttingDown()
bool UMLApp::shuttingDown |
( |
| ) |
|
|
static |
Return true during shutdown, i.e. during ~UMLApp().
◆ sigCutSuccessful
void UMLApp::sigCutSuccessful |
( |
| ) |
|
|
signal |
◆ slotActivityDiagram
void UMLApp::slotActivityDiagram |
( |
| ) |
|
|
slot |
◆ slotAddDefaultDatatypes
void UMLApp::slotAddDefaultDatatypes |
( |
| ) |
|
|
slot |
Calls the active code generator to add its default datatypes.
◆ slotAlignBottom
void UMLApp::slotAlignBottom |
( |
| ) |
|
|
slot |
◆ slotAlignHorizontalDistribute
void UMLApp::slotAlignHorizontalDistribute |
( |
| ) |
|
|
slot |
Horizontal Distribute Alignment
◆ slotAlignHorizontalMiddle
void UMLApp::slotAlignHorizontalMiddle |
( |
| ) |
|
|
slot |
Horizontal Middle Alignment
◆ slotAlignLeft
void UMLApp::slotAlignLeft |
( |
| ) |
|
|
slot |
◆ slotAlignRight
void UMLApp::slotAlignRight |
( |
| ) |
|
|
slot |
◆ slotAlignTop
void UMLApp::slotAlignTop |
( |
| ) |
|
|
slot |
◆ slotAlignVerticalDistribute
void UMLApp::slotAlignVerticalDistribute |
( |
| ) |
|
|
slot |
Vertical Distribute Alignment
◆ slotAlignVerticalMiddle
void UMLApp::slotAlignVerticalMiddle |
( |
| ) |
|
|
slot |
Vertical Middle Alignment
◆ slotApplyPrefs
void UMLApp::slotApplyPrefs |
( |
| ) |
|
|
slot |
Commits the changes from the global preferences dialog.
◆ slotBirdViewChanged
void UMLApp::slotBirdViewChanged |
( |
const QPointF & |
delta | ) |
|
|
slot |
Slot for changes of the bird view's rectangle by moving.
- Parameters
-
delta | change value for a move |
◆ slotChangeTabLeft
void UMLApp::slotChangeTabLeft |
( |
| ) |
|
|
slot |
Make the tab on the left of the current one the active one.
◆ slotChangeTabRight
void UMLApp::slotChangeTabRight |
( |
| ) |
|
|
slot |
Make the tab on the right of the current one the active one.
◆ slotClassDiagram
void UMLApp::slotClassDiagram |
( |
| ) |
|
|
slot |
◆ slotClassWizard
void UMLApp::slotClassWizard |
( |
| ) |
|
|
slot |
Class wizard menu selection.
◆ slotClipDataChanged
void UMLApp::slotClipDataChanged |
( |
| ) |
|
|
slot |
Notification of changed clipboard data.
◆ slotCloseDiagram
void UMLApp::slotCloseDiagram |
( |
QWidget * |
tab | ) |
|
|
slot |
Close the current diagram. Clicked on tab close button.
- Parameters
-
◆ slotCollaborationDiagram
void UMLApp::slotCollaborationDiagram |
( |
| ) |
|
|
slot |
◆ slotComponentDiagram
void UMLApp::slotComponentDiagram |
( |
| ) |
|
|
slot |
◆ slotCopyChanged
void UMLApp::slotCopyChanged |
( |
| ) |
|
|
slot |
Slot for enabling cut and copy to clipboard.
◆ slotCurrentProperties
void UMLApp::slotCurrentProperties |
( |
| ) |
|
|
slot |
Menu selection for current view and contained widgets properties.
◆ slotCurrentViewChanged
void UMLApp::slotCurrentViewChanged |
( |
| ) |
|
|
slot |
The displayed diagram has changed.
◆ slotCurrentViewClearDiagram
void UMLApp::slotCurrentViewClearDiagram |
( |
| ) |
|
|
slot |
Menu selection for clear current view.
◆ slotCurrentViewExportImage
void UMLApp::slotCurrentViewExportImage |
( |
| ) |
|
|
slot |
Menu selection for exporting current view as an image.
◆ slotCurrentViewToggleShowGrid
void UMLApp::slotCurrentViewToggleShowGrid |
( |
| ) |
|
|
slot |
Menu selection for current view show grid property.
◆ slotCurrentViewToggleSnapToGrid
void UMLApp::slotCurrentViewToggleSnapToGrid |
( |
| ) |
|
|
slot |
Menu selection for current view snap to grid property.
◆ slotDeleteDiagram
void UMLApp::slotDeleteDiagram |
( |
| ) |
|
|
slot |
Deletes the current diagram. Called from menu action.
◆ slotDeleteSelected
void UMLApp::slotDeleteSelected |
( |
| ) |
|
|
slot |
Deletes selected widgets or list view items.
◆ slotDeploymentDiagram
void UMLApp::slotDeploymentDiagram |
( |
| ) |
|
|
slot |
◆ slotEditCopy
void UMLApp::slotEditCopy |
( |
| ) |
|
|
slot |
Put the marked text/object into the clipboard.
◆ slotEditCut
void UMLApp::slotEditCut |
( |
| ) |
|
|
slot |
Put the marked text/object into the clipboard and remove it from the document.
◆ slotEditPaste
void UMLApp::slotEditPaste |
( |
| ) |
|
|
slot |
Paste the clipboard into the document.
◆ slotEditRedo
void UMLApp::slotEditRedo |
( |
| ) |
|
|
slot |
Reverts the document back to the state it was prior to the last undo.
◆ slotEditUndo
void UMLApp::slotEditUndo |
( |
| ) |
|
|
slot |
Reverts the document back to the state it was prior to the last action performed by the user.
◆ slotEntityRelationshipDiagram
void UMLApp::slotEntityRelationshipDiagram |
( |
| ) |
|
|
slot |
◆ 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.
◆ 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.
◆ 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.
◆ slotFileNew
void UMLApp::slotFileNew |
( |
| ) |
|
|
slot |
Clears the document in the actual view to reuse it as the new document.
◆ slotFileOpen
void UMLApp::slotFileOpen |
( |
| ) |
|
|
slot |
Open a file and load it into the document.
◆ slotFileOpenRecent
void UMLApp::slotFileOpenRecent |
( |
const KUrl & |
url | ) |
|
|
slot |
Opens a file from the recent files menu.
◆ slotFilePrint
void UMLApp::slotFilePrint |
( |
| ) |
|
|
slot |
◆ 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.
◆ slotFileSave
void UMLApp::slotFileSave |
( |
| ) |
|
|
slot |
◆ slotFileSaveAs
bool UMLApp::slotFileSaveAs |
( |
| ) |
|
|
slot |
Save a document by a new filename.
◆ slotFind
void UMLApp::slotFind |
( |
| ) |
|
|
slot |
◆ slotFindNext
void UMLApp::slotFindNext |
( |
| ) |
|
|
slot |
Slot for showing next find result
◆ slotFindPrevious
void UMLApp::slotFindPrevious |
( |
| ) |
|
|
slot |
Slot for showing previous find result
◆ slotGenerateAllCode
void UMLApp::slotGenerateAllCode |
( |
| ) |
|
|
slot |
Generate code for all classes.
◆ slotImportClass
void UMLApp::slotImportClass |
( |
| ) |
|
|
slot |
Import class menu selection.
◆ slotImportingWizard
void UMLApp::slotImportingWizard |
( |
| ) |
|
|
slot |
Runs the code importing wizard.
◆ slotImportProject
void UMLApp::slotImportProject |
( |
| ) |
|
|
slot |
Import project menu selection.
◆ 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 |
◆ slotOpenFileInEditor
bool UMLApp::slotOpenFileInEditor |
( |
const QUrl & |
file, |
|
|
int |
startCursor = 0 , |
|
|
int |
endCursor = 0 |
|
) |
| |
|
slot |
open file in internal editor
- Parameters
-
file | path to the file to open |
startCursor | cursor position for selection start |
endCursor | cursor position for selection end |
- Returns
- true file could be loaded
-
false file could not be loaded
◆ slotPrefs
Shows the global preferences dialog.
◆ slotPrintPreview
void UMLApp::slotPrintPreview |
( |
| ) |
|
|
slot |
◆ slotPrintPreviewPaintRequested
void UMLApp::slotPrintPreviewPaintRequested |
( |
QPrinter * |
printer | ) |
|
|
slot |
Print preview painting slot
◆ slotPrintSettings
bool UMLApp::slotPrintSettings |
( |
| ) |
|
|
slot |
Slot for showing a print settings dialog.
◆ slotSelectAll
void UMLApp::slotSelectAll |
( |
| ) |
|
|
slot |
Select all widgets on the current diagram.
◆ slotSequenceDiagram
void UMLApp::slotSequenceDiagram |
( |
| ) |
|
|
slot |
◆ slotSetZoom
void UMLApp::slotSetZoom |
( |
QAction * |
action | ) |
|
|
slot |
Set the zoom factor of the current diagram.
- Parameters
-
action | Action which is called. |
◆ 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 |
◆ slotStatusMsg
void UMLApp::slotStatusMsg |
( |
const QString & |
text | ) |
|
|
slot |
Changes the statusbar contents for the standard label permanently, used to indicate current actions.
- Parameters
-
text | The text that is displayed in the statusbar |
◆ slotTabChanged
void UMLApp::slotTabChanged |
( |
QWidget * |
tab | ) |
|
|
slot |
Called when the tab has changed.
- Parameters
-
tab | The changed tab widget |
◆ slotUpdateViews
void UMLApp::slotUpdateViews |
( |
| ) |
|
|
slot |
Register new views (aka diagram) with the GUI so they show up in the menu.
◆ slotUseCaseDiagram
void UMLApp::slotUseCaseDiagram |
( |
| ) |
|
|
slot |
◆ slotViewsExportImages
void UMLApp::slotViewsExportImages |
( |
| ) |
|
|
slot |
Menu selection for exporting all views as images.
◆ 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
-
status | true if successful else false |
◆ slotZoom100
void UMLApp::slotZoom100 |
( |
| ) |
|
|
slot |
◆ slotZoomFit
void UMLApp::slotZoomFit |
( |
| ) |
|
|
slot |
Set zoom to fit the view.
◆ slotZoomIn
void UMLApp::slotZoomIn |
( |
| ) |
|
|
slot |
Increase the zoom factor of the current diagram.
◆ slotZoomOut
void UMLApp::slotZoomOut |
( |
| ) |
|
|
slot |
Decrease the zoom factor of the current diagram.
◆ 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.
◆ statusBarMsg()
QString UMLApp::statusBarMsg |
( |
| ) |
const |
Returns the current text in the status bar.
- Returns
- The text in the status bar.
◆ tabWidget()
KTabWidget * UMLApp::tabWidget |
( |
| ) |
|
◆ undo()
Undo last command. Is called from popupmenu of a view.
◆ updateLangSelectMenu()
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
◆ viewCodeDocument()
Call the code viewing assistant on a given UMLClassifier.
- Parameters
-
classifier | Pointer to the classifier to view. |
◆ workToolBar()
Returns the toolbar being used.
- Returns
- The toolbar being used.
◆ UMLAppPrivate
◆ UMLView
◆ deleteDiagram
KAction* UMLApp::deleteDiagram |
|
private |
◆ deleteSelectedWidget
KAction* UMLApp::deleteSelectedWidget |
|
private |
◆ editCopy
QAction* UMLApp::editCopy |
|
private |
◆ editCut
◆ 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
◆ m_birdView
◆ m_birdViewDock
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
◆ m_commoncodegenpolicy
◆ m_config
KSharedConfigPtr UMLApp::m_config |
|
private |
The configuration object of the application.
◆ m_copyTimer
QTimer* UMLApp::m_copyTimer |
|
private |
◆ m_d
◆ m_debugDock
QDockWidget* UMLApp::m_debugDock |
|
private |
◆ m_diagramMenu
KMenu* UMLApp::m_diagramMenu |
|
private |
◆ m_doc
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 |
◆ m_docWindow
◆ m_hasBegunMacro
bool UMLApp::m_hasBegunMacro |
|
private |
◆ m_imageExporterAll
Used to export all the views.
◆ m_imageMimeType
QString UMLApp::m_imageMimeType |
|
private |
Default mime type to use for image export.
◆ m_langAct
◆ 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 |
◆ m_listView
Listview shows the current open file.
◆ m_loading
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 |
◆ m_mainDock
QDockWidget* UMLApp::m_mainDock |
|
private |
The widget which shows the diagrams.
◆ m_newSessionButton
QToolButton* UMLApp::m_newSessionButton |
|
private |
◆ m_policyext
◆ m_pQUndoView
QUndoView* UMLApp::m_pQUndoView |
|
private |
◆ m_printer
QPrinter* UMLApp::m_printer |
|
private |
◆ m_printSettings
◆ 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
◆ m_pZoomFullSBTB
◆ m_pZoomInPB
QPushButton* UMLApp::m_pZoomInPB |
|
private |
◆ m_pZoomOutPB
QPushButton* UMLApp::m_pZoomOutPB |
|
private |
◆ m_pZoomSlider
QSlider* UMLApp::m_pZoomSlider |
|
private |
◆ m_refactoringAssist
◆ m_settingsDialog
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
◆ m_undoEnabled
bool UMLApp::m_undoEnabled |
|
private |
◆ m_view
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
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 |
◆ newDiagram
KActionMenu* UMLApp::newDiagram |
|
private |
◆ printPreview
QAction* UMLApp::printPreview |
|
private |
◆ s_instance
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: