UMLApp Class Reference
The base class for UML application windows. More...
#include <uml.h>
Public Slots | |
| void | initGenerator () |
| Reads the activeLanguage from the KConfig and calls updateLangSelectMenu(). | |
| void | generationWizard () |
| Runs the code generation wizard. | |
| void | slotFileNew () |
| Clears the document in the actual view to reuse it as the new document. | |
| void | slotFileOpen () |
| Open a file and load it into the document. | |
| void | slotFileOpenRecent (const KURL &url) |
| Opens a file from the recent files menu. | |
| void | slotFileSave () |
| Save a document. | |
| bool | slotFileSaveAs () |
| Save a document by a new filename. | |
| void | slotFileClose () |
| Asks for saving if the file is modified, then closes the current file and window. | |
| void | slotFilePrint () |
| Print the current file. | |
| void | slotFileQuit () |
| Closes all open windows by calling close() on each memberList item until the list is empty, then quits the application. | |
| void | slotFileExportDocbook () |
| Exports the current model to docbook in a subdir of the current model directory named from the model name. | |
| void | slotFileExportXhtml () |
| Exports the current model to XHTML in a subdir of the current model directory named from the model name. | |
| void | slotEditCut () |
| Put the marked text/object into the clipboard and remove it from the document. | |
| void | slotEditCopy () |
| Put the marked text/object into the clipboard. | |
| void | slotEditPaste () |
| Paste the clipboard into the document. | |
| void | slotViewToolBar () |
| Toggles the toolbar. | |
| void | slotViewStatusBar () |
| Toggles the statusbar. | |
| void | slotAutolayout () |
| Autolayouts the current class diagram. | |
| void | slotStatusMsg (const QString &text) |
| Changes the statusbar contents for the standard label permanently, used to indicate current actions. | |
| void | slotClassDiagram () |
| Create this view. | |
| void | slotSequenceDiagram () |
| Create this view. | |
| void | slotCollaborationDiagram () |
| Create this view. | |
| void | slotUseCaseDiagram () |
| Create this view. | |
| void | slotStateDiagram () |
| Create this view. | |
| void | slotActivityDiagram () |
| Create this view. | |
| void | slotComponentDiagram () |
| Create this view. | |
| void | slotDeploymentDiagram () |
| Create this view. | |
| void | slotEntityRelationshipDiagram () |
| Create this view. | |
| void | slotClipDataChanged () |
| Notification of changed clipboard data. | |
| void | slotCopyChanged () |
| void | slotPrefs () |
| Shows the global preferences dialog. | |
| void | slotApplyPrefs () |
| Commits the changes from the global preferences dialog. | |
| void | slotUpdateViews () |
| Register new views (aka diagram) with the GUI so they show up in the menu. | |
| void | generateAllCode () |
| Generate code for all classes. | |
| void | setActiveLanguage (int menuID) |
| Set the language for which code will be generated. | |
| void | setActiveLanguage (const QString &activeLanguage) |
| Set the language for which code will be generated. | |
| Uml::Programming_Language | getActiveLanguage () |
| Get the language for import and code generation. | |
| bool | activeLanguageIsCaseSensitive () |
| Return true if the active language is case sensitive. | |
| QString | activeLanguageScopeSeparator () |
| Return the target language depedent scope separator. | |
| Uml::Programming_Language | getDefaultLanguage () |
| Return the default code generation language as configured by KConfig. | |
| void | slotCurrentViewClearDiagram () |
| Menu selection for clear current view. | |
| void | slotCurrentViewToggleSnapToGrid () |
| Menu selection for current view snap to grid property. | |
| void | slotCurrentViewToggleShowGrid () |
| Menu selection for current view show grid property. | |
| void | slotCurrentViewExportImage () |
| Menu selection for exporting current view as an image. | |
| void | slotAllViewsExportImage () |
| Menu selection for exporting all views as images. | |
| void | slotCurrentViewProperties () |
| Menu selection for current view properties. | |
| void | slotImportClasses () |
| Import classes menu selection. | |
| void | slotClassWizard () |
| Class wizard menu selection. | |
| void | slotAddDefaultDatatypes () |
| Calls the active code generator to add its default datatypes. | |
| void | slotCurrentViewChanged () |
| The displayed diagram has changed. | |
| void | slotSnapToGridToggled (bool gridOn) |
| The snap to grid value has been changed. | |
| void | slotShowGridToggled (bool gridOn) |
| The show grid value has been changed. | |
| void | slotSelectAll () |
| Select all widgets on the current diagram. | |
| void | slotDeleteSelectedWidget () |
| Deletes the selected widget. | |
| void | slotDeleteDiagram () |
| Deletes the current diagram. | |
| void | setZoom (int zoom) |
| Set the zoom factor of the current diagram. | |
| void | slotZoomSliderMoved (int value) |
| Connected to by the KPlayerSliderAction zoomAction, a value of between 300 and 2200 is scaled to zoom to between 9% and 525%. | |
| void | slotZoom100 () |
| Set zoom to 100%. | |
| void | setupZoomMenu () |
| Prepares the zoom menu for display. | |
| void | slotEditUndo () |
| Reverts the document back to the state it was prior to the last action performed by the user. | |
| void | slotEditRedo () |
| Reverts the document back to the state it was prior to the last undo. | |
| QPopupMenu * | findMenu (QMenuData *menu, const QString &name) |
| Searches for a menu with the given name. | |
| void | slotTabChanged (QWidget *view) |
| called when the tab has changed | |
| void | slotChangeTabLeft () |
| make the tab on the left of the current one the active one | |
| void | slotChangeTabRight () |
| make the tab on the right of the current one the active one | |
| void | slotMoveTabLeft () |
| Move the current tab left, not implemented. | |
| void | slotMoveTabRight () |
| Move the current tab right, not implemented. | |
| KConfig * | getConfig () |
| void | slotXhtmlDocGenerationFinished () |
| This slot deletes the current XHTML documentation generator as soon as this one signals that it has finished. | |
Signals | |
| void | sigCutSuccessful () |
| Emitted when a cut operation is successful. | |
Public Member Functions | |
| UMLApp (QWidget *parent=0, const char *name=0) | |
| Constructor. | |
| ~UMLApp () | |
| Standard deconstructor. | |
| void | openDocumentFile (const KURL &url=KURL()) |
| Opens a file specified by commandline option. | |
| void | newDocument () |
| Calls the UMLDoc method to create a new Document. | |
| UMLDoc * | getDocument () const |
| Returns a pointer to the current document connected to the KMainWindow instance. | |
| UMLListView * | getListView () |
| Returns a pointer to the list view. | |
| WorkToolBar * | getWorkToolBar () |
| Returns the toolbar being used. | |
| void | setModified (bool _m) |
| Sets whether the program has been modified. | |
| void | enablePrint (bool enable) |
| Set whether to allow printing. | |
| void | enableUndo (bool enable) |
| Set whether to allow printing. | |
| void | enableRedo (bool enable) |
| Set whether to allow printing. | |
| DocWindow * | getDocWindow () |
| Returns a pointer to the documentation window. | |
| bool | getUndoEnabled () |
| Returns the undo state. | |
| bool | getRedoEnabled () |
| Returns the redo state. | |
| bool | getPasteState () |
| Returns the paste state. | |
| bool | getCutCopyState () |
| Returns the state on Cut/Copy. | |
| CodeGenerator * | getGenerator () |
| Gets the appropriate CodeGenerator. | |
| void | setGenerator (CodeGenerator *gen, bool giveWarning=true) |
| Set the current generator for this app. | |
| CodeGenerator * | createGenerator () |
| Creates a new code generator for the given active language. | |
| CodeGenerator * | setGenerator (Uml::Programming_Language 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. | |
| void | refactor (UMLClassifier *classifier) |
| Call the refactoring assistant on a classifier. | |
| void | viewCodeDocument (UMLClassifier *classifier) |
| Call the code viewing assistant on a given UMLClassifier. | |
| void | setDiagramMenuItemsState (bool bState) |
| Sets the state of the view properties menu item. | |
| QWidget * | getMainViewWidget () |
| Returns the widget used as the parent for UMLViews. | |
| void | setCurrentView (UMLView *view) |
| Puts this view to the top of the viewStack, i.e. | |
| UMLView * | getCurrentView () |
| Get the current view. | |
| void | setImageMimeType (QString const &mimeType) |
| Sets the default mime type for all diagrams that are exported as images. | |
| QString const & | getImageMimeType () const |
| Gets the default mime type for all diagrams that are exported as images. | |
| bool | editCutCopy (bool bFromView) |
| Carries out the cut/copy command with different action performed depending on if from view or list view. | |
| KTabWidget * | tabWidget () |
| Return the tab widget. | |
| QString | getStatusBarMsg () |
| Returns the current text in the status bar. | |
| CodeGenerationPolicy * | getCommonPolicy () |
| Returns the default code generation policy. | |
| void | setPolicyExt (CodeGenPolicyExt *policy) |
| Sets the CodeGenPolicyExt object. | |
| CodeGenPolicyExt * | getPolicyExt () |
| Returns the CodeGenPolicyExt object. | |
Static Public Member Functions | |
| static UMLApp * | app () |
Protected Slots | |
| void | tipOfTheDay () |
| Show "Tip of the Day" dialog. | |
Protected Member Functions | |
| virtual void | keyPressEvent (QKeyEvent *e) |
| virtual void | keyReleaseEvent (QKeyEvent *e) |
| virtual void | customEvent (QCustomEvent *e) |
| Event handler to receive custom events. | |
| void | handleCursorKeyReleaseEvent (QKeyEvent *e) |
| Helper method for handling cursor key release events (refactoring). | |
| void | saveOptions () |
| Save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration file. | |
| void | readOptions () |
| Read general Options again and initialize all variables like the recent file list. | |
| void | initActions () |
| Initializes the KActions of the application. | |
| void | initStatusBar () |
| Sets up the statusbar for the main window by initialzing a statuslabel. | |
| void | initView () |
| Creates the centerwidget of the KMainWindow instance and sets it as the view. | |
| virtual bool | queryClose () |
| queryClose is called by KMainWindow on each closeEvent of a window. | |
| virtual bool | queryExit () |
| queryExit is called by KMainWindow when the last window of the application is going to be closed during the closeEvent(). | |
| virtual void | saveProperties (KConfig *_cfg) |
| 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. | |
| virtual void | readProperties (KConfig *_cfg) |
| 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(). | |
| void | updateLangSelectMenu (Uml::Programming_Language activeLanguage) |
| Updates the Menu for language selection and sets the active lanugage. | |
Protected Attributes | |
| CodeGenerationPolicy * | m_commoncodegenpolicy |
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. An instance of UMLView creates your center view, which is connected to the window's Doc object. 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 <phensgen@techie.com> Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 78 of file uml.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Constructor. Calls all init functions to create the application. Definition at line 81 of file uml.cpp. References enablePrint(), findMenu(), UMLDoc::init(), initActions(), initView(), readOptions(), setupZoomMenu(), and setZoom(). |
|
|
Standard deconstructor.
|
Member Function Documentation
|
|
Opens a file specified by commandline option.
Definition at line 478 of file uml.cpp. References enablePrint(), UMLDoc::openDocument(), slotStatusMsg(), and UMLDoc::URL(). |
|
|
Calls the UMLDoc method to create a new Document.
Definition at line 1579 of file uml.cpp. References getDefaultLanguage(), CodeGenerator::getLanguage(), UMLDoc::newDocument(), setGenerator(), and slotUpdateViews(). |
|
|
|
Returns a pointer to the list view.
Definition at line 492 of file uml.cpp. Referenced by UMLFolder::activateViews(), UMLDoc::addView(), UMLDoc::closeDocument(), UMLClipboard::copy(), UMLDoc::createDatatype(), Import_Utils::createUMLObject(), UMLDrag::decodeClip1(), UMLDrag::decodeClip2(), UMLView::isSavedInSeparateFile(), UMLDoc::isUnique(), UMLDoc::loadExtensionsFromXMI(), UMLObject::loadFromXMI(), UMLDoc::loadFromXMI(), UMLView::loadUISDiagram(), Import_Rose::petalTree2Uml(), UMLView::removeAssocInViewAndDoc(), UMLDoc::saveToXMI(), and UMLClassifier::setBaseType(). |
|
|
Returns the toolbar being used.
Definition at line 956 of file uml.cpp. Referenced by ToolBarState::changeTool(), UMLView::hideEvent(), and UMLView::showEvent(). |
|
|
Sets whether the program has been modified. This will change how the program saves/exits.
Definition at line 960 of file uml.cpp. References enablePrint(), getCurrentView(), and UMLDoc::URL(). Referenced by UMLDoc::setModified(), UMLDoc::slotAutoSave(), slotEditCopy(), slotEditPaste(), and slotFileNew(). |
|
|
Set whether to allow printing. It will enable/disable the menu/toolbar options.
Definition at line 975 of file uml.cpp. Referenced by UMLDoc::createDiagram(), openDocumentFile(), readProperties(), setModified(), slotFileNew(), slotFileOpen(), slotFileOpenRecent(), and UMLApp(). |
|
|
Set whether to allow printing. It will enable/disable the menu/toolbar options.
Definition at line 979 of file uml.cpp. Referenced by UMLDoc::addToUndoStack(), UMLDoc::loadRedoData(), UMLDoc::loadUndoData(), UMLDoc::newDocument(), and UMLDoc::openDocument(). |
|
|
Set whether to allow printing. It will enable/disable the menu/toolbar options.
Definition at line 983 of file uml.cpp. Referenced by UMLDoc::clearRedoStack(), UMLDoc::clearUndoStack(), UMLDoc::loadRedoData(), and UMLDoc::loadUndoData(). |
|
|
Returns a pointer to the documentation window.
Definition at line 161 of file uml.h. Referenced by UMLDoc::closeDocument(), UMLDoc::loadExtensionsFromXMI(), UMLListView::moveObject(), UMLListView::popupMenuSel(), UMLDoc::removeDiagram(), UMLDoc::removeUMLObject(), UMLWidget::showProperties(), UMLObject::showProperties(), StateWidget::showProperties(), ObjectWidget::showProperties(), ActivityWidget::showProperties(), UMLListView::slotDiagramRemoved(), UMLListView::slotObjectCreated(), and UMLListView::slotObjectRemoved(). |
|
|
Returns the undo state.
|
|
|
Returns the redo state.
|
|
|
Returns the paste state.
|
|
|
Returns the state on Cut/Copy.
|
|
|
Gets the appropriate CodeGenerator.
Definition at line 1249 of file uml.cpp. Referenced by UMLDoc::addDefaultDatatypes(), UMLDoc::addDefaultStereotypes(), Model_Utils::isCommonDataType(), UMLDoc::saveToXMI(), UMLWidget::startPopupMenu(), and viewCodeDocument(). |
|
||||||||||||
|
Set the current generator for this app. If giveWarning is true, then a popup box warning that the code generation library is out-of-date will show if you attempt to set the generator to NULL.
Referenced by UMLDoc::closeDocument(), initGenerator(), UMLDoc::loadExtensionsFromXMI(), UMLDoc::loadFromXMI(), newDocument(), setActiveLanguage(), and slotApplyPrefs(). |
|
|
Creates a new code generator for the given active language.
|
|
|
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. Definition at line 1224 of file uml.cpp. References CodeGenFactory::createObject(), CodeGenerator::getLanguage(), CodeGenPolicyExt::setDefaults(), and updateLangSelectMenu(). |
|
|
Call the refactoring assistant on a classifier.
Definition at line 1204 of file uml.cpp. Referenced by UMLWidget::slotMenuSelection(). |
|
|
Call the code viewing assistant on a given UMLClassifier.
Definition at line 1178 of file uml.cpp. References CodeGenerator::findCodeDocumentByClassifier(), CodeGenerator::getCodeViewerDialog(), getGenerator(), and CodeViewerDialog::getState(). Referenced by UMLWidget::slotMenuSelection(). |
|
|
Sets the state of the view properties menu item.
Definition at line 1352 of file uml.cpp. References getCurrentView(). Referenced by UMLDoc::addView(), UMLDoc::changeCurrentView(), UMLDoc::removeAllViews(), UMLDoc::removeView(), and slotFileNew(). |
|
|
Returns the widget used as the parent for UMLViews.
|
|
|
Puts this view to the top of the viewStack, i.e. makes it visible to the user.
Definition at line 1598 of file uml.cpp. References UMLView::addWidget(), UMLListView::findView(), and slotStatusMsg(). Referenced by UMLDoc::addView(), UMLDoc::changeCurrentView(), UMLDoc::newDocument(), UMLDoc::removeAllViews(), UMLDoc::removeView(), slotChangeTabLeft(), and slotChangeTabRight(). |
|
|
Get the current view. This may return a null pointer (when no view was previously specified.) Definition at line 1617 of file uml.cpp. Referenced by UMLListView::addAtContainer(), AssocRules::allowAssociation(), ClassGenPage::ClassGenPage(), UMLClipboard::copy(), UMLDoc::currentRoot(), UMLDrag::decodeClip4(), LinkWidget::getOperationText(), UMLDoc::loadRedoData(), UMLDoc::loadUndoData(), UMLListView::moveObject(), UMLDoc::removeView(), UMLDoc::saveToXMI(), setDiagramMenuItemsState(), setModified(), setupZoomMenu(), setZoom(), slotCurrentViewChanged(), slotCurrentViewClearDiagram(), slotCurrentViewExportImage(), slotCurrentViewProperties(), slotCurrentViewToggleShowGrid(), slotCurrentViewToggleSnapToGrid(), slotDeleteDiagram(), slotDeleteSelectedWidget(), slotEditCopy(), slotEditCut(), slotSelectAll(), and slotZoomSliderMoved(). |
|
|
Sets the default mime type for all diagrams that are exported as images.
Definition at line 276 of file uml.h. Referenced by UMLViewImageExporterAll::exportAllViews(), and readOptions(). |
|
|
Gets the default mime type for all diagrams that are exported as images.
Definition at line 284 of file uml.h. Referenced by saveOptions(), and UMLViewImageExporter::UMLViewImageExporter(). |
|
|
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. Definition at line 1082 of file uml.cpp. References UMLClipboard::copy(), and slotClipDataChanged(). Referenced by slotEditCopy(), slotEditCut(), and UMLView::slotMenuSelection(). |
|
|
Return the tab widget.
Definition at line 1706 of file uml.cpp. Referenced by UMLDoc::addView(), UMLDoc::loadFromXMI(), and UMLDoc::signalDiagramRenamed(). |
|
|
Returns the current text in the status bar.
Definition at line 1710 of file uml.cpp. Referenced by UMLWidgetController::mousePressEvent(). |
|
|
|
Sets the CodeGenPolicyExt object.
Definition at line 1216 of file uml.cpp. Referenced by CodeGenFactory::createObject(). |
|
|
Returns the CodeGenPolicyExt object.
Definition at line 1220 of file uml.cpp. Referenced by CPPHeaderCodeDocument::updateContent(). |
|
|
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). Definition at line 1512 of file uml.cpp. References CmdLineExportAllViewsEvent::exportAllViews(), and CmdLineExportAllViewsEvent::getType(). |
|
|
Helper method for handling cursor key release events (refactoring).
Definition at line 1520 of file uml.cpp. References UMLView::getSelectCount(), UMLView::moveSelectedBy(), and UMLDoc::setModified(). |
|
|
Save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration file.
Definition at line 497 of file uml.cpp. References getImageMimeType(), CodeGenerator::getLanguage(), UMLDoc::URL(), CodeGenerationPolicy::writeConfig(), and CodeGenPolicyExt::writeConfig(). Referenced by queryExit(), and slotFileQuit(). |
|
|
Read general Options again and initialize all variables like the recent file list.
Definition at line 577 of file uml.cpp. References setImageMimeType(). Referenced by UMLApp(). |
|
|
|
Sets up the statusbar for the main window by initialzing a statuslabel.
Definition at line 375 of file uml.cpp. References UMLView::addWidget(), UMLView::setLineWidth(), and slotStatusMsg(). Referenced by initActions(). |
|
|
Creates the centerwidget of the KMainWindow instance and sets it as the view.
Definition at line 390 of file uml.cpp. References UMLListView::init(), UMLListView::setDocument(), UMLDoc::setupSignals(), slotActivityDiagram(), slotClassDiagram(), slotCollaborationDiagram(), slotComponentDiagram(), slotDeleteDiagram(), slotDeploymentDiagram(), slotEntityRelationshipDiagram(), slotSequenceDiagram(), slotStateDiagram(), slotTabChanged(), slotUseCaseDiagram(), and UMLDoc::URL(). Referenced by UMLApp(). |
|
|
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.
Definition at line 638 of file uml.cpp. References UMLDoc::saveModified(). |
|
|
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.
Definition at line 643 of file uml.cpp. References saveOptions(). |
|
|
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.
Definition at line 590 of file uml.cpp. References UMLDoc::isModified(), UMLDoc::saveDocument(), and UMLDoc::URL(). |
|
|
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().
Definition at line 606 of file uml.cpp. References enablePrint(), UMLDoc::openDocument(), and UMLDoc::setModified(). |
|
|
Updates the Menu for language selection and sets the active lanugage. If no active lanugage is found or if it is not one of the registered languages it tries to fall back to Cpp Definition at line 1483 of file uml.cpp. References Model_Utils::progLangToString(), and setActiveLanguage(). Referenced by initGenerator(), and setGenerator(). |
|
|
Show "Tip of the Day" dialog.
Definition at line 1494 of file uml.cpp. Referenced by initActions(). |
|
|
Reads the activeLanguage from the KConfig and calls updateLangSelectMenu().
Definition at line 1471 of file uml.cpp. References getDefaultLanguage(), setActiveLanguage(), setGenerator(), and updateLangSelectMenu(). Referenced by UMLDoc::newDocument(). |
|
|
Runs the code generation wizard.
Definition at line 1259 of file uml.cpp. References CodeGenerationWizard::exec(). Referenced by initActions(). |
|
|
Clears the document in the actual view to reuse it as the new document.
Definition at line 649 of file uml.cpp. References enablePrint(), UMLDoc::newDocument(), UMLDoc::saveModified(), setDiagramMenuItemsState(), setModified(), slotStatusMsg(), slotUpdateViews(), and UMLDoc::URL(). Referenced by initActions(), and slotFileClose(). |
|
|
Open a file and load it into the document.
Definition at line 663 of file uml.cpp. References enablePrint(), UMLDoc::openDocument(), UMLDoc::saveModified(), slotStatusMsg(), slotUpdateViews(), and UMLDoc::URL(). Referenced by initActions(). |
|
|
Opens a file from the recent files menu.
Definition at line 691 of file uml.cpp. References enablePrint(), UMLDoc::openDocument(), UMLDoc::saveModified(), slotStatusMsg(), slotUpdateViews(), and UMLDoc::URL(). Referenced by initActions(). |
|
|
Save a document.
Definition at line 715 of file uml.cpp. References UMLDoc::saveDocument(), slotFileSaveAs(), slotStatusMsg(), and UMLDoc::URL(). Referenced by initActions(). |
|
|
Save a document by a new filename.
Definition at line 725 of file uml.cpp. References UMLDoc::isModified(), UMLDoc::saveDocument(), and slotStatusMsg(). Referenced by initActions(), UMLDoc::saveModified(), and slotFileSave(). |
|
|
Asks for saving if the file is modified, then closes the current file and window.
Definition at line 772 of file uml.cpp. References slotFileNew(), and slotStatusMsg(). Referenced by initActions(). |
|
|
Print the current file.
Definition at line 779 of file uml.cpp. References slotStatusMsg(), and UMLDoc::URL(). Referenced by initActions(). |
|
|
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. Definition at line 795 of file uml.cpp. References UMLDoc::saveModified(), saveOptions(), and slotStatusMsg(). Referenced by initActions(). |
|
|
Exports the current model to docbook in a subdir of the current model directory named from the model name.
Definition at line 805 of file uml.cpp. Referenced by initActions(). |
|
|
Exports the current model to XHTML in a subdir of the current model directory named from the model name.
Definition at line 810 of file uml.cpp. References XhtmlGenerator::generateXhtmlForProject(), and slotXhtmlDocGenerationFinished(). Referenced by initActions(). |
|
|
Put the marked text/object into the clipboard and remove it from the document.
Definition at line 831 of file uml.cpp. References editCutCopy(), getCurrentView(), UMLView::getSelectCount(), UMLDoc::setModified(), sigCutSuccessful(), slotDeleteSelectedWidget(), and slotStatusMsg(). Referenced by initActions(), and AssociationWidget::slotMenuSelection(). |
|
|
Put the marked text/object into the clipboard.
Definition at line 844 of file uml.cpp. References editCutCopy(), getCurrentView(), UMLView::getSelectCount(), setModified(), and slotStatusMsg(). Referenced by initActions(), and AssociationWidget::slotMenuSelection(). |
|
|
Paste the clipboard into the document.
Definition at line 852 of file uml.cpp. References UMLClipboard::paste(), setModified(), and slotStatusMsg(). Referenced by initActions(), UMLView::slotMenuSelection(), and AssociationWidget::slotMenuSelection(). |
|
|
Toggles the toolbar. Deprecated. For compatibility with KDE 3.1, remove if we stop supporting KDE 3.1 Definition at line 871 of file uml.cpp. References slotStatusMsg(). |
|
|
Toggles the statusbar. Deprecated. For compatibility with KDE 3.1, remove if we stop supporting KDE 3.1 Definition at line 886 of file uml.cpp. References slotStatusMsg(). |
|
|
Autolayouts the current class diagram.
Definition at line 1691 of file uml.cpp. Referenced by initActions(). |
|
|
Changes the statusbar contents for the standard label permanently, used to indicate current actions.
Definition at line 901 of file uml.cpp. Referenced by initStatusBar(), openDocumentFile(), setCurrentView(), slotEditCopy(), slotEditCut(), slotEditPaste(), slotEditRedo(), slotEditUndo(), slotFileClose(), slotFileNew(), slotFileOpen(), slotFileOpenRecent(), slotFilePrint(), slotFileQuit(), slotFileSave(), slotFileSaveAs(), slotViewStatusBar(), and slotViewToolBar(). |
|
|
Create this view.
Definition at line 910 of file uml.cpp. References UMLDoc::createDiagram(), getDocument(), and UMLDoc::getRootFolder(). Referenced by initActions(), and initView(). |
|
|
Create this view.
Definition at line 916 of file uml.cpp. References UMLDoc::createDiagram(), and UMLDoc::getRootFolder(). Referenced by initActions(), and initView(). |
|
|
Create this view.
Definition at line 921 of file uml.cpp. References UMLDoc::createDiagram(), and UMLDoc::getRootFolder(). Referenced by initActions(), and initView(). |
|
|
Create this view.
Definition at line 926 of file uml.cpp. References UMLDoc::createDiagram(), and UMLDoc::getRootFolder(). Referenced by initActions(), and initView(). |
|
|
Create this view.
Definition at line 931 of file uml.cpp. References UMLDoc::createDiagram(), and UMLDoc::getRootFolder(). Referenced by initActions(), and initView(). |
|
|
Create this view.
Definition at line 936 of file uml.cpp. References UMLDoc::createDiagram(), and UMLDoc::getRootFolder(). Referenced by initActions(), and initView(). |
|
|
Create this view.
Definition at line 941 of file uml.cpp. References UMLDoc::createDiagram(), and UMLDoc::getRootFolder(). Referenced by initActions(), and initView(). |
|
|
Create this view.
Definition at line 946 of file uml.cpp. References UMLDoc::createDiagram(), and UMLDoc::getRootFolder(). Referenced by initActions(), and initView(). |
|
|
Create this view.
Definition at line 951 of file uml.cpp. References UMLDoc::createDiagram(), and UMLDoc::getRootFolder(). Referenced by initActions(), and initView(). |
|
|
Notification of changed clipboard data.
Definition at line 1018 of file uml.cpp. Referenced by editCutCopy(). |
|
|
Shows the global preferences dialog.
Definition at line 1035 of file uml.cpp. References SettingsDlg::getChangesApplied(), and slotApplyPrefs(). Referenced by initActions(). |
|
|
Commits the changes from the global preferences dialog.
Definition at line 1052 of file uml.cpp. References SettingsDlg::getCodeGenerationLanguage(), setGenerator(), and Model_Utils::stringToProgLang(). Referenced by slotPrefs(). |
|
|
Register new views (aka diagram) with the GUI so they show up in the menu.
Definition at line 1366 of file uml.cpp. References UMLView::fileLoaded(), findMenu(), getDocument(), UMLView::getName(), and UMLDoc::getViewIterator(). Referenced by UMLDoc::addView(), newDocument(), slotFileNew(), slotFileOpen(), and slotFileOpenRecent(). |
|
|
Generate code for all classes.
Definition at line 1253 of file uml.cpp. References CodeGenerator::writeCodeToFile(). Referenced by initActions(). |
|
|
Set the language for which code will be generated.
Definition at line 1264 of file uml.cpp. References setGenerator(). Referenced by initGenerator(), UMLEntityAttributeDialog::setupDialog(), and updateLangSelectMenu(). |
|
|
Set the language for which code will be generated.
Definition at line 1285 of file uml.cpp. References setGenerator(). |
|
|
Get the language for import and code generation.
Definition at line 1304 of file uml.cpp. Referenced by activeLanguageScopeSeparator(), UMLAttributeDialog::apply(), Import_Utils::createUMLObject(), UMLAttribute::getTemplateParams(), Import_Utils::insertAttribute(), and UMLOperation::toString(). |
|
|
Return true if the active language is case sensitive.
Definition at line 1308 of file uml.cpp. Referenced by UMLCanvasObject::findChildObject(), UMLPackage::findObject(), UMLClassifier::findOperations(), Model_Utils::findUMLObject(), and Model_Utils::isCommonDataType(). |
|
|
Return the target language depedent scope separator.
Definition at line 1314 of file uml.cpp. References getActiveLanguage(). Referenced by UMLObject::getFullyQualifiedName(), UMLAttribute::getFullyQualifiedName(), and UMLObject::getPackage(). |
|
|
Return the default code generation language as configured by KConfig. If the activeLanguage is not found in the KConfig then use Uml::pl_Cpp as the default. Definition at line 1465 of file uml.cpp. References Model_Utils::stringToProgLang(). Referenced by initGenerator(), and newDocument(). |
|
|
Menu selection for clear current view.
Definition at line 1326 of file uml.cpp. References UMLView::clearDiagram(), and getCurrentView(). Referenced by initActions(). |
|
|
Menu selection for current view snap to grid property.
Definition at line 1330 of file uml.cpp. References getCurrentView(), and UMLView::toggleSnapToGrid(). Referenced by initActions(). |
|
|
Menu selection for current view show grid property.
Definition at line 1335 of file uml.cpp. References getCurrentView(), and UMLView::toggleShowGrid(). Referenced by initActions(). |
|
|
Menu selection for exporting current view as an image.
Definition at line 1340 of file uml.cpp. References UMLViewImageExporter::exportView(), getCurrentView(), and UMLView::getImageExporter(). Referenced by initActions(). |
|
|
Menu selection for exporting all views as images.
Definition at line 1344 of file uml.cpp. References UMLViewImageExporterAll::exportAllViews(). Referenced by initActions(). |
|
|
Menu selection for current view properties.
Definition at line 1348 of file uml.cpp. References getCurrentView(), and UMLView::showPropDialog(). Referenced by initActions(). |
|
|
Import classes menu selection.
Definition at line 1388 of file uml.cpp. References ClassImport::createImporterByFileExt(), CodeGenerator::getLanguage(), ClassImport::importFiles(), UMLDoc::setLoading(), and UMLDoc::setModified(). Referenced by initActions(), and UMLListView::popupMenuSel(). |
|
|
Class wizard menu selection.
Definition at line 1423 of file uml.cpp. Referenced by initActions(). |
|
|
Calls the active code generator to add its default datatypes.
Definition at line 1428 of file uml.cpp. References UMLDoc::addDefaultDatatypes(). Referenced by initActions(). |
|
|
The displayed diagram has changed.
Definition at line 1432 of file uml.cpp. References getCurrentView(), slotShowGridToggled(), and slotSnapToGridToggled(). |
|
|
The snap to grid value has been changed.
Definition at line 1441 of file uml.cpp. Referenced by slotCurrentViewChanged(). |
|
|
The show grid value has been changed.
Definition at line 1445 of file uml.cpp. Referenced by slotCurrentViewChanged(). |
|
|
Select all widgets on the current diagram.
Definition at line 1449 of file uml.cpp. References getCurrentView(), and UMLView::selectAll(). Referenced by initActions(). |
|
|
Deletes the selected widget.
Definition at line 1453 of file uml.cpp. References UMLView::deleteSelection(), and getCurrentView(). Referenced by initActions(), and slotEditCut(). |
|
|
Deletes the current diagram.
Definition at line 1461 of file uml.cpp. References getCurrentView(), and UMLDoc::removeDiagram(). Referenced by initActions(), and initView(). |
|
|
Set the zoom factor of the current diagram.
Definition at line 339 of file uml.cpp. References getCurrentView(), and UMLView::setZoom(). Referenced by slotZoom100(), and UMLApp(). |
|
|
Connected to by the KPlayerSliderAction 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 KPlayerSliderAction for now.
Definition at line 330 of file uml.cpp. References getCurrentView(), and UMLView::setZoom(). Referenced by initActions(). |
|
|
Set zoom to 100%.
Definition at line 335 of file uml.cpp. References setZoom(). Referenced by initActions(). |
|
|
Prepares the zoom menu for display.
Definition at line 343 of file uml.cpp. References UMLView::currentZoom(), and getCurrentView(). Referenced by UMLApp(). |
|
|
Reverts the document back to the state it was prior to the last action performed by the user.
Definition at line 821 of file uml.cpp. References UMLDoc::loadUndoData(), and slotStatusMsg(). Referenced by initActions(). |
|
|
Reverts the document back to the state it was prior to the last undo.
Definition at line 826 of file uml.cpp. References UMLDoc::loadRedoData(), and slotStatusMsg(). Referenced by initActions(). |
|
||||||||||||
|
Searches for a menu with the given name.
Definition at line 1621 of file uml.cpp. Referenced by initActions(), slotUpdateViews(), and UMLApp(). |
|
|
called when the tab has changed
Definition at line 1640 of file uml.cpp. References UMLDoc::changeCurrentView(), and UMLView::getID(). Referenced by initView(). |
|
|
make the tab on the left of the current one the active one
Definition at line 1645 of file uml.cpp. References UMLDoc::getViewIterator(), and setCurrentView(). Referenced by initActions(). |
|
|
make the tab on the right of the current one the active one
Definition at line 1662 of file uml.cpp. References UMLDoc::getViewIterator(), and setCurrentView(). Referenced by initActions(). |
|
|
Move the current tab left, not implemented.
Definition at line 1679 of file uml.cpp. Referenced by initActions(). |
|
|
Move the current tab right, not implemented.
Definition at line 1686 of file uml.cpp. Referenced by initActions(). |
|
|
This slot deletes the current XHTML documentation generator as soon as this one signals that it has finished.
Definition at line 1700 of file uml.cpp. Referenced by slotFileExportXhtml(). |
|
|
Emitted when a cut operation is successful.
Referenced by slotEditCut(). |
The documentation for this class was generated from the following files:
