umbrello/umbrello
#include <uml.h>
Signals | |
void | sigCutSuccessful () |
Static Public Member Functions | |
static UMLApp * | app () |
Protected Member Functions | |
virtual void | customEvent (QEvent *e) |
void | handleCursorKeyReleaseEvent (QKeyEvent *e) |
void | initActions () |
void | initStatusBar () |
void | initView () |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | keyReleaseEvent (QKeyEvent *e) |
virtual bool | queryClose () |
virtual bool | queryExit () |
void | readOptions () |
virtual void | readProperties (const KConfigGroup &cfg) |
void | saveOptions () |
virtual void | saveProperties (KConfigGroup &cfg) |
void | updateLangSelectMenu (Uml::ProgrammingLanguage::Enum activeLanguage) |
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:
- 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
Constructor & Destructor Documentation
|
explicit |
Member Function Documentation
Uml::ProgrammingLanguage::Enum UMLApp::activeLanguage | ( | ) | const |
bool UMLApp::activeLanguageIsCaseSensitive | ( | ) |
QString UMLApp::activeLanguageScopeSeparator | ( | ) |
|
static |
void UMLApp::beginMacro | ( | const QString & | text | ) |
void UMLApp::clearUndoStack | ( | ) |
CodeGenerationPolicy * UMLApp::commonPolicy | ( | ) | const |
CodeGenerator* UMLApp::createGenerator | ( | ) |
UMLView * UMLApp::currentView | ( | ) | const |
|
protectedvirtual |
Uml::ProgrammingLanguage::Enum UMLApp::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.
UMLDoc * UMLApp::document | ( | ) | const |
DocWindow * UMLApp::docWindow | ( | ) | const |
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 | ) |
void UMLApp::enableRedoAction | ( | bool | enable | ) |
void UMLApp::enableUndo | ( | bool | enable | ) |
void UMLApp::enableUndoAction | ( | bool | enable | ) |
void UMLApp::executeCommand | ( | QUndoCommand * | cmd | ) |
CodeGenerator * UMLApp::generator | ( | ) | const |
Gets the appropriate CodeGenerator.
- Returns
- Pointer to the CodeGenerator.
|
protected |
QString UMLApp::imageMimeType | ( | ) | const |
|
protected |
void UMLApp::initGenerator | ( | ) |
Reads the activeLanguage from the KConfig and calls updateLangSelectMenu()
|
protected |
|
protected |
bool UMLApp::isCutCopyState | ( | ) | const |
bool UMLApp::isPasteState | ( | ) | const |
bool UMLApp::isRedoActionEnabled | ( | ) | const |
bool UMLApp::isSimpleCodeGeneratorActive | ( | ) |
Determines if SimpleCodeGenerator is active.
- Returns
- true if SimpleCodeGenerator is active.
bool UMLApp::isUndoActionEnabled | ( | ) | const |
bool UMLApp::isUndoEnabled | ( | ) |
|
protectedvirtual |
|
protectedvirtual |
UMLListView * UMLApp::listView | ( | ) | const |
QWidget * UMLApp::mainViewWidget | ( | ) |
void UMLApp::newDocument | ( | ) |
void UMLApp::openDocumentFile | ( | const KUrl & | url = KUrl() | ) |
CodeGenPolicyExt * UMLApp::policyExt | ( | ) | const |
Returns the CodeGenPolicyExt object.
|
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.
|
protectedvirtual |
queryExit is called by KMainWindow when the last window of the application is going to be closed during the closeEvent().
In contrast to the default implementation that just returns true, this calls saveOptions() to save the settings of the last window's properties.
- See also
- KMainWindow::queryExit
- KMainWindow::closeEvent
- Returns
- True if window may be closed.
|
protected |
|
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
void UMLApp::redo | ( | ) |
void UMLApp::refactor | ( | UMLClassifier * | classifier | ) |
|
protected |
|
protectedvirtual |
void UMLApp::setActiveLanguage | ( | Uml::ProgrammingLanguage::Enum | pl | ) |
void UMLApp::setCurrentView | ( | UMLView * | view | ) |
void UMLApp::setDiagramMenuItemsState | ( | bool | bState | ) |
void UMLApp::setGenerator | ( | CodeGenerator * | gen, |
bool | giveWarning = true |
||
) |
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.
void UMLApp::setImageMimeType | ( | const QString & | mimeType | ) |
void UMLApp::setModified | ( | bool | modified | ) |
void UMLApp::setPolicyExt | ( | CodeGenPolicyExt * | policy | ) |
Sets the CodeGenPolicyExt object.
|
slot |
|
signal |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
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.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
QString UMLApp::statusBarMsg | ( | ) |
void UMLApp::undo | ( | ) |
|
protected |
void UMLApp::viewCodeDocument | ( | UMLClassifier * | classifier | ) |
Call the code viewing assistant on a given UMLClassifier.
- Parameters
-
classifier Pointer to the classifier to view.
WorkToolBar * UMLApp::workToolBar | ( | ) | const |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.