#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 |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Constructor. Calls all init functions to create the application.
Get the language for import and code generation.
bool UMLApp::activeLanguageIsCaseSensitive |
( |
| ) |
const |
Return true if the active language is case sensitive.
QString UMLApp::activeLanguageScopeSeparator |
( |
| ) |
const |
Return the target language depedent scope separator.
Get the last created instance of this class.
void UMLApp::beginMacro |
( |
const QString & |
text | ) |
|
Begin a U/R command macro
bool UMLApp::canDecode |
( |
const QMimeData * |
mimeData | ) |
|
|
staticprivate |
Returns whether we can decode the given mimesource
void UMLApp::clearUndoStack |
( |
| ) |
|
Removes all entries from the UndoStack and RedoStack and disables the undo and redo actions.
Returns the default code generation policy.
KConfig * UMLApp::config |
( |
| ) |
|
void UMLApp::createBirdView |
( |
UMLView * |
view | ) |
|
|
private |
Create bird's view window in a dock widget.
Helper function to create diagram name and the diagram itself.
- Parameters
-
QAction * UMLApp::createZoomAction |
( |
int |
zoom, |
|
|
int |
currentZoom |
|
) |
| |
|
private |
Helper method to create the zoom actions.
UMLView * UMLApp::currentView |
( |
| ) |
const |
Get the current view. This may return a null pointer (when no view was previously specified.)
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).
QCursor UMLApp::defaultCursor |
( |
| ) |
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.
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.
Returns the doc window used.
- Returns
- the doc window being used
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.
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. |
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. |
void UMLApp::enableUndo |
( |
bool |
enable | ) |
|
Set the state of undo support.
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. |
void UMLApp::endMacro |
( |
| ) |
|
void UMLApp::executeCommand |
( |
QUndoCommand * |
cmd | ) |
|
Execute a command and push it on the undo stack.
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) |
void UMLApp::handleCursorKeyReleaseEvent |
( |
QKeyEvent * |
e | ) |
|
|
protected |
Helper method for handling cursor key release events (refactoring). TODO Move this to UMLWidgetController?
QString UMLApp::imageMimeType |
( |
| ) |
const |
Gets the default mime type for all diagrams that are exported as images.
- Returns
- The default MIME type for images.
void UMLApp::importFiles |
( |
QStringList & |
fileList, |
|
|
const QString & |
rootPath = QString() |
|
) |
| |
Import the source files that are in fileList.
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.
void UMLApp::initClip |
( |
| ) |
|
|
private |
Initialize Qt's global clipboard support for the application.
void UMLApp::initGenerator |
( |
| ) |
|
void UMLApp::initSavedCodeGenerators |
( |
| ) |
|
|
private |
void UMLApp::initStatusBar |
( |
| ) |
|
|
protected |
Sets up the statusbar for the main window by initializing a statuslabel.
void UMLApp::initView |
( |
| ) |
|
|
protected |
Creates the centerwidget of the KMainWindow instance and sets it as the view.
bool UMLApp::isCutCopyState |
( |
| ) |
const |
Returns the state on Cut/Copy.
- Returns
- True if Cut/Copy is enabled.
bool UMLApp::isPasteState |
( |
| ) |
const |
Returns the paste state.
- Returns
- True if Paste is enabled.
bool UMLApp::isRedoActionEnabled |
( |
| ) |
const |
Returns the redo state.
- Returns
- True if Redo is enabled. Is used for popupmenu of a view.
bool UMLApp::isSimpleCodeGeneratorActive |
( |
| ) |
const |
bool UMLApp::isUndoActionEnabled |
( |
| ) |
const |
Returns the undo state. Is used for popupmenu of a view.
- Returns
- True if Undo is enabled.
bool UMLApp::isUndoEnabled |
( |
| ) |
const |
Returns the state of undo support.
- Returns
- True if undo is enabled.
void UMLApp::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
protectedvirtual |
Event handler to receive key press events.
void UMLApp::keyReleaseEvent |
( |
QKeyEvent * |
e | ) |
|
|
protectedvirtual |
Event handler for key release.
Returns a pointer to the list view.
- Returns
- The listview being used.
void UMLApp::log |
( |
const QString & |
s | ) |
|
Adds a line to the log window.
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.
void UMLApp::logError |
( |
const QString & |
s | ) |
|
Logs an error message, either to the log window or to the console.
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.
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.
void UMLApp::logWarn |
( |
const QString & |
s | ) |
|
Logs a warning message, either to the log window or to the console.
QListWidget * UMLApp::logWindow |
( |
| ) |
const |
Returns the log window used.
- Returns
- the log window being used
QWidget * UMLApp::mainViewWidget |
( |
| ) |
const |
Returns the widget used as the parent for UMLViews.
- Returns
- The main view widget.
void UMLApp::newDocument |
( |
| ) |
|
Calls the UMLDoc method to create a new Document.
void UMLApp::openDocumentFile |
( |
const QUrl & |
url = QUrl() | ) |
|
Opens a file specified by commandline option.
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.
void UMLApp::readOptions |
( |
| ) |
|
|
protected |
Read general Options again and initialize all variables like the recent file list.
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.
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 last 'undone' command. Is called from popupmenu of a view.
Call the refactoring assistant on a classifier.
- Parameters
-
classifier | Pointer to the classifier to refactor. |
void UMLApp::resetStatusMsg |
( |
| ) |
|
|
private |
Helper method to reset the status bar message.
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.
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
Set the language for which code will be generated.
- Parameters
-
pl | The name of the language to set |
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 |
void UMLApp::setDiagramMenuItemsState |
( |
bool |
bState | ) |
|
Sets the state of the view properties menu item.
- Parameters
-
bState | Boolean, true to enable the view properties item. |
void UMLApp::setGenerator |
( |
CodeGenerator * |
gen, |
|
|
bool |
giveWarning = true |
|
) |
| |
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.
void UMLApp::setImageMimeType |
( |
const QString & |
mimeType | ) |
|
Sets the default mime type for all diagrams that are exported as images.
- Parameters
-
void UMLApp::setLang_actionscript |
( |
| ) |
|
|
privateslot |
Slots for connection to the QActions of the m_langSelect menu.
void UMLApp::setLang_ada |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_cpp |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_csharp |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_d |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_idl |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_java |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_javascript |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_mysql |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_none |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_pascal |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_perl |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_php |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_php5 |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_postgresql |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_python |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_ruby |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_sql |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_tcl |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_vala |
( |
| ) |
|
|
privateslot |
void UMLApp::setLang_xmlschema |
( |
| ) |
|
|
privateslot |
void UMLApp::setModified |
( |
bool |
modified | ) |
|
Sets whether the program has been modified. This will change how the program saves/exits.
- Parameters
-
Helper method to setup the programming language action.
Set up the UMLApp. To be called after the constructor, before anything else. Heavy weight initializations are factored from the constructor to here to avoid passing an UMLApp `this` pointer to other classes where the `this` pointer has not been fully constructed. In other words, it is safe for other classes to invoke UMLApp functions using the `this` pointer passed to them.
void UMLApp::setupZoomMenu |
( |
| ) |
|
|
slot |
Prepares the zoom menu for display.
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 |
bool UMLApp::shuttingDown |
( |
| ) |
|
|
static |
Return true during shutdown, i.e. during ~UMLApp().
void UMLApp::sigCutSuccessful |
( |
| ) |
|
|
signal |
void UMLApp::slotActivityDiagram |
( |
| ) |
|
|
slot |
void UMLApp::slotAddDefaultDatatypes |
( |
| ) |
|
|
slot |
Calls the active code generator to add its default datatypes.
void UMLApp::slotAlignBottom |
( |
| ) |
|
|
slot |
void UMLApp::slotAlignHorizontalDistribute |
( |
| ) |
|
|
slot |
Horizontal Distribute Alignment
void UMLApp::slotAlignHorizontalMiddle |
( |
| ) |
|
|
slot |
Horizontal Middle Alignment
void UMLApp::slotAlignLeft |
( |
| ) |
|
|
slot |
void UMLApp::slotAlignRight |
( |
| ) |
|
|
slot |
void UMLApp::slotAlignTop |
( |
| ) |
|
|
slot |
void UMLApp::slotAlignVerticalDistribute |
( |
| ) |
|
|
slot |
Vertical Distribute Alignment
void UMLApp::slotAlignVerticalMiddle |
( |
| ) |
|
|
slot |
Vertical Middle Alignment
void UMLApp::slotApplyPrefs |
( |
| ) |
|
|
slot |
Commits the changes from the global preferences dialog.
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 |
void UMLApp::slotChangeTabLeft |
( |
| ) |
|
|
slot |
Make the tab on the left of the current one the active one.
void UMLApp::slotChangeTabRight |
( |
| ) |
|
|
slot |
Make the tab on the right of the current one the active one.
void UMLApp::slotClassDiagram |
( |
| ) |
|
|
slot |
void UMLApp::slotClassWizard |
( |
| ) |
|
|
slot |
Class wizard menu selection.
void UMLApp::slotClipDataChanged |
( |
| ) |
|
|
slot |
Notification of changed clipboard data.
void UMLApp::slotCloseDiagram |
( |
int |
index | ) |
|
|
slot |
Close the current diagram. Clicked on tab close button.
- Parameters
-
index | widget's index to close |
void UMLApp::slotCollaborationDiagram |
( |
| ) |
|
|
slot |
void UMLApp::slotComponentDiagram |
( |
| ) |
|
|
slot |
void UMLApp::slotCopyChanged |
( |
| ) |
|
|
slot |
Slot for enabling cut and copy to clipboard.
void UMLApp::slotCurrentProperties |
( |
| ) |
|
|
slot |
Menu selection for current view and contained widgets properties.
void UMLApp::slotCurrentViewChanged |
( |
| ) |
|
|
slot |
The displayed diagram has changed.
void UMLApp::slotCurrentViewClearDiagram |
( |
| ) |
|
|
slot |
Menu selection for clear current view.
void UMLApp::slotCurrentViewExportImage |
( |
| ) |
|
|
slot |
Menu selection for exporting current view as an image.
void UMLApp::slotCurrentViewToggleShowGrid |
( |
| ) |
|
|
slot |
Menu selection for current view show grid property.
void UMLApp::slotCurrentViewToggleSnapToGrid |
( |
| ) |
|
|
slot |
Menu selection for current view snap to grid property.
void UMLApp::slotDeleteDiagram |
( |
| ) |
|
|
slot |
Deletes the current diagram. Called from menu action.
void UMLApp::slotDeleteSelected |
( |
| ) |
|
|
slot |
Deletes selected widgets or list view items.
void UMLApp::slotDeploymentDiagram |
( |
| ) |
|
|
slot |
void UMLApp::slotDiagramPopupMenu |
( |
const QPoint & |
point | ) |
|
|
privateslot |
Called when right clicking on tab widget.
- Parameters
-
point | the point where the right mouse button was clicked |
void UMLApp::slotEditCopy |
( |
| ) |
|
|
slot |
Put the marked text/object into the clipboard.
void UMLApp::slotEditCut |
( |
| ) |
|
|
slot |
Put the marked text/object into the clipboard and remove it from the document.
void UMLApp::slotEditPaste |
( |
| ) |
|
|
slot |
Paste the clipboard into the document.
void UMLApp::slotEditRedo |
( |
| ) |
|
|
slot |
Reverts the document back to the state it was prior to the last undo.
void UMLApp::slotEditUndo |
( |
| ) |
|
|
slot |
Reverts the document back to the state it was prior to the last action performed by the user.
void UMLApp::slotEntityRelationshipDiagram |
( |
| ) |
|
|
slot |
void UMLApp::slotExecGenerationWizard |
( |
| ) |
|
|
slot |
Runs the code generation wizard.
void UMLApp::slotFileClose |
( |
| ) |
|
|
slot |
Asks for saving if the file is modified, then closes the current file and window.
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.
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.
void UMLApp::slotFileNew |
( |
| ) |
|
|
slot |
Clears the document in the actual view to reuse it as the new document.
void UMLApp::slotFileOpen |
( |
| ) |
|
|
slot |
Open a file and load it into the document.
void UMLApp::slotFileOpenRecent |
( |
const QUrl & |
url | ) |
|
|
slot |
Opens a file from the recent files menu.
void UMLApp::slotFilePrint |
( |
| ) |
|
|
slot |
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.
void UMLApp::slotFileSave |
( |
| ) |
|
|
slot |
bool UMLApp::slotFileSaveAs |
( |
| ) |
|
|
slot |
Save a document by a new filename.
void UMLApp::slotFind |
( |
| ) |
|
|
slot |
void UMLApp::slotFindNext |
( |
| ) |
|
|
slot |
Slot for showing next find result
void UMLApp::slotFindPrevious |
( |
| ) |
|
|
slot |
Slot for showing previous find result
void UMLApp::slotGenerateAllCode |
( |
| ) |
|
|
slot |
Generate code for all classes.
void UMLApp::slotImportClass |
( |
| ) |
|
|
slot |
Import class menu selection.
void UMLApp::slotImportingWizard |
( |
| ) |
|
|
slot |
Runs the code importing wizard.
void UMLApp::slotImportProject |
( |
| ) |
|
|
slot |
Import project menu selection.
void UMLApp::slotMoveTabLeft |
( |
| ) |
|
|
slot |
Move the current tab left.
void UMLApp::slotMoveTabRight |
( |
| ) |
|
|
slot |
Move the current tab right.
void UMLApp::slotObjectDiagram |
( |
| ) |
|
|
slot |
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
Shows the global preferences dialog.
void UMLApp::slotPrintPreview |
( |
| ) |
|
|
slot |
void UMLApp::slotPrintPreviewPaintRequested |
( |
QPrinter * |
printer | ) |
|
|
slot |
Print preview painting slot
bool UMLApp::slotPrintSettings |
( |
| ) |
|
|
slot |
Slot for showing a print settings dialog.
void UMLApp::slotSelectAll |
( |
| ) |
|
|
slot |
Select all widgets on the current diagram.
void UMLApp::slotSequenceDiagram |
( |
| ) |
|
|
slot |
void UMLApp::slotSetZoom |
( |
QAction * |
action | ) |
|
|
slot |
Set the zoom factor of the current diagram.
- Parameters
-
action | Action which is called. |
void UMLApp::slotShowBirdView |
( |
bool |
state | ) |
|
|
slot |
void UMLApp::slotShowCmdHistoryView |
( |
bool |
state | ) |
|
|
slot |
void UMLApp::slotShowDebugView |
( |
bool |
state | ) |
|
|
slot |
void UMLApp::slotShowDocumentationView |
( |
bool |
state | ) |
|
|
slot |
void UMLApp::slotShowGridToggled |
( |
bool |
gridOn | ) |
|
|
slot |
The show grid value has been changed.
void UMLApp::slotShowLogView |
( |
bool |
state | ) |
|
|
slot |
void UMLApp::slotShowTreeView |
( |
bool |
state | ) |
|
|
slot |
void UMLApp::slotSnapToGridToggled |
( |
bool |
gridOn | ) |
|
|
slot |
The snap to grid value has been changed.
void UMLApp::slotStateDiagram |
( |
| ) |
|
|
slot |
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 |
void UMLApp::slotTabChanged |
( |
int |
index | ) |
|
|
slot |
Called when the tab has changed.
- Parameters
-
index | the index of the changed tab widget |
void UMLApp::slotUpdateViews |
( |
| ) |
|
|
slot |
Register new views (aka diagram) with the GUI so they show up in the menu.
void UMLApp::slotUseCaseDiagram |
( |
| ) |
|
|
slot |
void UMLApp::slotViewsExportImages |
( |
| ) |
|
|
slot |
Menu selection for exporting all views as images.
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 |
void UMLApp::slotZoom100 |
( |
| ) |
|
|
slot |
void UMLApp::slotZoomFit |
( |
| ) |
|
|
slot |
Set zoom to fit the view.
void UMLApp::slotZoomIn |
( |
| ) |
|
|
slot |
Increase the zoom factor of the current diagram.
void UMLApp::slotZoomOut |
( |
| ) |
|
|
slot |
Decrease the zoom factor of the current diagram.
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.
QString UMLApp::statusBarMsg |
( |
| ) |
const |
Returns the current text in the status bar.
- Returns
- The text in the status bar.
QTabWidget * UMLApp::tabWidget |
( |
| ) |
|
Undo last command. Is called from popupmenu of a view.
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
Call the code viewing assistant on a given UMLClassifier.
- Parameters
-
classifier | Pointer to the classifier to view. |
Returns the toolbar being used.
- Returns
- The toolbar being used.
QAction* UMLApp::deleteDiagram |
|
private |
QAction* UMLApp::deleteSelectedWidget |
|
private |
QAction* UMLApp::editCopy |
|
private |
QAction* UMLApp::editPaste |
|
private |
QAction* UMLApp::editRedo |
|
private |
QAction* UMLApp::editUndo |
|
private |
KRecentFilesAction* UMLApp::fileOpenRecent |
|
private |
QAction* UMLApp::filePrint |
|
private |
Contains the bird's eye view.
QTimer* UMLApp::m_clipTimer |
|
private |
QDockWidget* UMLApp::m_cmdHistoryDock |
|
private |
Contains the undo/redo viewer widget.
KSharedConfigPtr UMLApp::m_config |
|
private |
The configuration object of the application.
QTimer* UMLApp::m_copyTimer |
|
private |
QDockWidget* UMLApp::m_debugDock |
|
private |
QWidget* UMLApp::m_defaultZoomWdg |
|
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.
QDockWidget* UMLApp::m_documentationDock |
|
private |
bool UMLApp::m_hasBegunMacro |
|
private |
Used to export all the views.
QString UMLApp::m_imageMimeType |
|
private |
Default mime type to use for image export.
QMenu* UMLApp::m_langSelect |
|
private |
For selecting the active language.
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
QDockWidget* UMLApp::m_listDock |
|
private |
Listview shows the current open file.
True if the application is opening an existing document.
QDockWidget* UMLApp::m_logDock |
|
private |
Contains the log window widget.
QDockWidget* UMLApp::m_mainDock |
|
private |
The widget which shows the diagrams.
QToolButton* UMLApp::m_newSessionButton |
|
private |
QUndoView* UMLApp::m_pQUndoView |
|
private |
QPrinter* UMLApp::m_printer |
|
private |
QDockWidget* UMLApp::m_propertyDock |
|
private |
Contains the property browser widget.
QUndoStack* UMLApp::m_pUndoStack |
|
private |
UndoStack used to store actions, to provide Undo/Redo feature.
QPushButton* UMLApp::m_pZoomInPB |
|
private |
QPushButton* UMLApp::m_pZoomOutPB |
|
private |
QSlider* UMLApp::m_pZoomSlider |
|
private |
The global UML settings dialog.
QLabel* UMLApp::m_statusBarMessage |
|
private |
QTabWidget* UMLApp::m_tabWidget |
|
private |
Shows, and is parent of, all the UMLViews (diagrams) if tabbed diagrams are enabled.
bool UMLApp::m_undoEnabled |
|
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.
QStackedWidget* UMLApp::m_viewStack |
|
private |
Shows, and is parent of, all the UMLViews (diagrams) if tabbed diagrams are not enabled.
The running XHTML documentation generator. Null when no generation is running.
QMenu* UMLApp::m_zoomSelect |
|
private |
Popup menu for zoom selection.
QLabel* UMLApp::m_zoomValueLbl |
|
private |
KActionMenu* UMLApp::newDiagram |
|
private |
QAction* UMLApp::printPreview |
|
private |
The last created instance of this class.
Static pointer, holding the last created instance.
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.
QAction* UMLApp::viewClearDiagram |
|
private |
QAction* UMLApp::viewExportImage |
|
private |
QAction* UMLApp::viewProperties |
|
private |
QAction* UMLApp::viewShowBirdView |
|
private |
QAction* UMLApp::viewShowCmdHistory |
|
private |
QAction* UMLApp::viewShowDebug |
|
private |
QAction* UMLApp::viewShowDoc |
|
private |
KToggleAction* UMLApp::viewShowGrid |
|
private |
QAction* UMLApp::viewShowLog |
|
private |
QAction* UMLApp::viewShowTree |
|
private |
KToggleAction* UMLApp::viewSnapToGrid |
|
private |
QAction* UMLApp::zoom100Action |
|
private |
The documentation for this class was generated from the following files: