umbrello API Documentation

UMLApp Class Reference

The base class for UML application windows. More...

#include <uml.h>

List of all members.

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.
UMLDocgetDocument () const
 Returns a pointer to the current document connected to the KMainWindow instance.
UMLListViewgetListView ()
 Returns a pointer to the list view.
WorkToolBargetWorkToolBar ()
 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.
DocWindowgetDocWindow ()
 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.
CodeGeneratorgetGenerator ()
 Gets the appropriate CodeGenerator.
void setGenerator (CodeGenerator *gen, bool giveWarning=true)
 Set the current generator for this app.
CodeGeneratorcreateGenerator ()
 Creates a new code generator for the given active language.
CodeGeneratorsetGenerator (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.
UMLViewgetCurrentView ()
 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.
CodeGenerationPolicygetCommonPolicy ()
 Returns the default code generation policy.
void setPolicyExt (CodeGenPolicyExt *policy)
 Sets the CodeGenPolicyExt object.
CodeGenPolicyExtgetPolicyExt ()
 Returns the CodeGenPolicyExt object.

Static Public Member Functions

static UMLAppapp ()

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

CodeGenerationPolicym_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

UMLApp::UMLApp QWidget *  parent = 0,
const char *  name = 0
 

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().

UMLApp::~UMLApp  ) 
 

Standard deconstructor.

Definition at line 147 of file uml.cpp.


Member Function Documentation

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

Opens a file specified by commandline option.

Definition at line 478 of file uml.cpp.

References enablePrint(), UMLDoc::openDocument(), slotStatusMsg(), and UMLDoc::URL().

void UMLApp::newDocument  ) 
 

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().

UMLDoc * UMLApp::getDocument  )  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.

Definition at line 488 of file uml.cpp.

Referenced by UMLTemplateDialog::apply(), UMLEntityAttributeDialog::apply(), UMLAttributeDialog::apply(), ClassPropDlg::ClassPropDlg(), CodeGenerator::connect_newcodegen_slots(), Model_Utils::convert_OT_LVT(), UMLEntity::createAttribute(), UMLClassifier::createAttribute(), UMLEnum::createEnumLiteral(), Import_Utils::createGeneralization(), UMLClassifier::createOperation(), UMLClassifier::createTemplate(), Import_Utils::createUMLObject(), UMLDrag::decodeClip1(), UMLDrag::decodeClip4(), NoteWidgetController::doMouseDoubleClick(), UMLObject::emitModified(), UMLViewImageExporterModel::exportAllViews(), UMLViewImageExporterAll::exportAllViews(), UMLViewImageExporter::exportView(), DocbookGenerator::generateDocbookForProject(), DocbookGenerator::generateDocbookForProjectInto(), XhtmlGenerator::generateXhtmlForProject(), UMLObject::getFullyQualifiedName(), Model_Utils::guessContainer(), FloatingTextWidget::handleRename(), ClassImport::importFiles(), UMLWidget::init(), UMLAssociation::init(), CodeGenerator::initFromParentDocument(), Import_Utils::insertAttribute(), LinePath::insertPoint(), Import_Utils::isDatatype(), UMLRole::load(), UMLFolder::load(), UMLClassifier::load(), UMLAssociation::load(), RubyClassifierCodeDocument::loadChildTextBlocksFromNode(), JavaClassifierCodeDocument::loadChildTextBlocksFromNode(), JavaANTCodeDocument::loadChildTextBlocksFromNode(), CPPHeaderCodeDocument::loadChildTextBlocksFromNode(), CodeGenObjectWithTextBlocks::loadChildTextBlocksFromNode(), UMLFolder::loadDiagramsFromXMI(), UMLObject::loadFromXMI(), Widget_Factory::makeWidgetFromXMI(), UMLObject::maybeSignalObjectCreated(), UMLWidgetController::mouseMoveEvent(), UMLWidgetController::mouseReleaseEvent(), Model_Utils::parseAttribute(), Model_Utils::parseOperation(), AdaImport::parseStmt(), Model_Utils::parseTemplate(), UMLClipboard::paste(), Import_Rose::petalTree2Uml(), UMLFolder::removeAllViews(), UMLWidgetController::resize(), UMLObject::resolveRef(), UMLObject::save(), UMLFolder::save(), UMLFolder::saveToXMI(), UMLAssociation::setAssocType(), OwnedCodeBlock::setAttributesFromNode(), CodeParameter::setAttributesFromNode(), CodeDocument::setAttributesFromNode(), NoteWidget::setDiagramLink(), UMLObject::setPackage(), ToolBarStateMessages::setSecondWidget(), UMLObject::setStereotype(), MessageWidget::setText(), UMLClassifierListItem::setTypeName(), UMLObject::setUMLStereotype(), UMLTemplateDialog::setupDialog(), UMLEntityAttributeDialog::setupDialog(), UMLAttributeDialog::setupDialog(), UMLObject::showProperties(), StateWidget::showProperties(), ObjectWidget::showProperties(), ActivityWidget::showProperties(), SimpleCodeGenerator::SimpleCodeGenerator(), slotClassDiagram(), XhtmlGenerator::slotDocbookToXhtml(), ObjectWidget::slotMenuSelection(), NoteWidget::slotMenuSelection(), EnumWidget::slotMenuSelection(), EntityWidget::slotMenuSelection(), ClassifierWidget::slotMenuSelection(), slotUpdateViews(), Import_Rose::umbrellify(), UMLOperationDialog::UMLOperationDialog(), UMLStereotype::UMLStereotype(), UMLView::UMLView(), Model_Utils::uniqObjectName(), and CSharpWriter::writeClass().

UMLListView * UMLApp::getListView  ) 
 

Returns a pointer to the list view.

Returns:
The listview being used.

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().

WorkToolBar * UMLApp::getWorkToolBar  ) 
 

Returns the toolbar being used.

Returns:
The toolbar being used.

Definition at line 956 of file uml.cpp.

Referenced by ToolBarState::changeTool(), UMLView::hideEvent(), and UMLView::showEvent().

void UMLApp::setModified bool  _m  ) 
 

Sets whether the program has been modified.

This will change how the program saves/exits.

Parameters:
_m true - modified.

Definition at line 960 of file uml.cpp.

References enablePrint(), getCurrentView(), and UMLDoc::URL().

Referenced by UMLDoc::setModified(), UMLDoc::slotAutoSave(), slotEditCopy(), slotEditPaste(), and slotFileNew().

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.

Definition at line 975 of file uml.cpp.

Referenced by UMLDoc::createDiagram(), openDocumentFile(), readProperties(), setModified(), slotFileNew(), slotFileOpen(), slotFileOpenRecent(), and UMLApp().

void UMLApp::enableUndo bool  enable  ) 
 

Set whether to allow printing.

It will enable/disable the menu/toolbar options.

Parameters:
enable Set whether to allow printing.

Definition at line 979 of file uml.cpp.

Referenced by UMLDoc::addToUndoStack(), UMLDoc::loadRedoData(), UMLDoc::loadUndoData(), UMLDoc::newDocument(), and UMLDoc::openDocument().

void UMLApp::enableRedo bool  enable  ) 
 

Set whether to allow printing.

It will enable/disable the menu/toolbar options.

Parameters:
enable Set whether to allow printing.

Definition at line 983 of file uml.cpp.

Referenced by UMLDoc::clearRedoStack(), UMLDoc::clearUndoStack(), UMLDoc::loadRedoData(), and UMLDoc::loadUndoData().

DocWindow* UMLApp::getDocWindow  )  [inline]
 

Returns a pointer to the documentation window.

Returns:
Pointer to the DocWindow.

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().

bool UMLApp::getUndoEnabled  ) 
 

Returns the undo state.

Returns:
True if Undo is enabled.

Definition at line 1066 of file uml.cpp.

bool UMLApp::getRedoEnabled  ) 
 

Returns the redo state.

Returns:
True if Redo is enabled.

Definition at line 1070 of file uml.cpp.

bool UMLApp::getPasteState  ) 
 

Returns the paste state.

Returns:
True if Paste is enabled.

Definition at line 1074 of file uml.cpp.

bool UMLApp::getCutCopyState  ) 
 

Returns the state on Cut/Copy.

Returns:
True if Cut/Copy is enabled.

Definition at line 1078 of file uml.cpp.

CodeGenerator * UMLApp::getGenerator  ) 
 

Gets the appropriate CodeGenerator.

Returns:
Pointer to the CodeGenerator.

Definition at line 1249 of file uml.cpp.

Referenced by UMLDoc::addDefaultDatatypes(), UMLDoc::addDefaultStereotypes(), Model_Utils::isCommonDataType(), UMLDoc::saveToXMI(), UMLWidget::startPopupMenu(), and viewCodeDocument().

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

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.

Parameters:
gen Pointer to the CodeGenerator to set.
giveWarning True to enable out-of-date warning.

Referenced by UMLDoc::closeDocument(), initGenerator(), UMLDoc::loadExtensionsFromXMI(), UMLDoc::loadFromXMI(), newDocument(), setActiveLanguage(), and slotApplyPrefs().

CodeGenerator* UMLApp::createGenerator  ) 
 

Creates a new code generator for the given active language.

Returns:
Pointer to the CodeGenerator created.

CodeGenerator * UMLApp::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.

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().

void UMLApp::refactor UMLClassifier classifier  ) 
 

Call the refactoring assistant on a classifier.

Parameters:
classifier Pointer to the classifier to refactor.

Definition at line 1204 of file uml.cpp.

Referenced by UMLWidget::slotMenuSelection().

void UMLApp::viewCodeDocument UMLClassifier classifier  ) 
 

Call the code viewing assistant on a given UMLClassifier.

Parameters:
classifier Pointer to the classifier to view.

Definition at line 1178 of file uml.cpp.

References CodeGenerator::findCodeDocumentByClassifier(), CodeGenerator::getCodeViewerDialog(), getGenerator(), and CodeViewerDialog::getState().

Referenced by UMLWidget::slotMenuSelection().

void UMLApp::setDiagramMenuItemsState bool  bState  ) 
 

Sets the state of the view properties menu item.

Parameters:
bState Boolean, true to enable the view properties item.

Definition at line 1352 of file uml.cpp.

References getCurrentView().

Referenced by UMLDoc::addView(), UMLDoc::changeCurrentView(), UMLDoc::removeAllViews(), UMLDoc::removeView(), and slotFileNew().

QWidget * UMLApp::getMainViewWidget  ) 
 

Returns the widget used as the parent for UMLViews.

Returns:
The main view widget.

Definition at line 1591 of file uml.cpp.

void UMLApp::setCurrentView UMLView view  ) 
 

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.

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().

UMLView * UMLApp::getCurrentView  ) 
 

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().

void UMLApp::setImageMimeType QString const &  mimeType  )  [inline]
 

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

Parameters:
mimeType The MIME type to set as the default.

Definition at line 276 of file uml.h.

Referenced by UMLViewImageExporterAll::exportAllViews(), and readOptions().

QString const& UMLApp::getImageMimeType  )  const [inline]
 

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

Returns:
The default MIME type for images.

Definition at line 284 of file uml.h.

Referenced by saveOptions(), and UMLViewImageExporter::UMLViewImageExporter().

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.

Definition at line 1082 of file uml.cpp.

References UMLClipboard::copy(), and slotClipDataChanged().

Referenced by slotEditCopy(), slotEditCut(), and UMLView::slotMenuSelection().

KTabWidget * UMLApp::tabWidget  ) 
 

Return the tab widget.

Definition at line 1706 of file uml.cpp.

Referenced by UMLDoc::addView(), UMLDoc::loadFromXMI(), and UMLDoc::signalDiagramRenamed().

QString UMLApp::getStatusBarMsg  ) 
 

Returns the current text in the status bar.

Returns:
The text in the status bar.

Definition at line 1710 of file uml.cpp.

Referenced by UMLWidgetController::mousePressEvent().

CodeGenerationPolicy * UMLApp::getCommonPolicy  ) 
 

Returns the default code generation policy.

Definition at line 1212 of file uml.cpp.

Referenced by JavaCodeGenerationPolicyPage::apply(), CodeGenerator::connect_newcodegen_slots(), CodeGenerator::findFileName(), RubyCodeDocumentation::firstEditableLine(), JavaCodeDocumentation::firstEditableLine(), CPPCodeDocumentation::firstEditableLine(), JavaClassifierCodeDocument::forceDoc(), CodeGenerator::formatDoc(), CodeGenerator::getHeadingFile(), TextBlock::getIndentation(), RubyCodeDocumentation::getNewEditorLine(), JavaCodeDocumentation::getNewEditorLine(), CPPCodeDocumentation::getNewEditorLine(), JavaCodeGenerationPolicyPage::JavaCodeGenerationPolicyPage(), CodeGenerator::openFile(), CodeGenerator::overwritableName(), TextBlock::setAttributesFromNode(), CodeMethodBlock::setAttributesFromNode(), TextBlock::setAttributesOnNode(), CodeMethodBlock::setAttributesOnNode(), SimpleCodeGenerator::syncCodeToDocument(), TextBlock::toString(), RubyCodeDocumentation::toString(), JavaCodeDocumentation::toString(), CPPCodeDocumentation::toString(), CodeMethodBlock::toString(), RubyCodeDocumentation::unformatText(), JavaCodeDocumentation::unformatText(), CPPCodeDocumentation::unformatText(), CPPHeaderCodeDocument::updateContent(), and PerlWriter::writeClass().

void UMLApp::setPolicyExt CodeGenPolicyExt policy  ) 
 

Sets the CodeGenPolicyExt object.

Definition at line 1216 of file uml.cpp.

Referenced by CodeGenFactory::createObject().

CodeGenPolicyExt * UMLApp::getPolicyExt  ) 
 

Returns the CodeGenPolicyExt object.

Definition at line 1220 of file uml.cpp.

Referenced by CPPHeaderCodeDocument::updateContent().

void UMLApp::customEvent QCustomEvent *  e  )  [protected, virtual]
 

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().

void UMLApp::handleCursorKeyReleaseEvent QKeyEvent *  e  )  [protected]
 

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().

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.

Definition at line 497 of file uml.cpp.

References getImageMimeType(), CodeGenerator::getLanguage(), UMLDoc::URL(), CodeGenerationPolicy::writeConfig(), and CodeGenPolicyExt::writeConfig().

Referenced by queryExit(), and slotFileQuit().

void UMLApp::readOptions  )  [protected]
 

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().

void UMLApp::initActions  )  [protected]
 

Initializes the KActions of the application.

Definition at line 162 of file uml.cpp.

References findMenu(), generateAllCode(), generationWizard(), initStatusBar(), slotActivityDiagram(), slotAddDefaultDatatypes(), slotAllViewsExportImage(), slotAutolayout(), slotChangeTabLeft(), slotChangeTabRight(), slotClassDiagram(), slotClassWizard(), slotCollaborationDiagram(), slotComponentDiagram(), slotCurrentViewClearDiagram(), slotCurrentViewExportImage(), slotCurrentViewProperties(), slotCurrentViewToggleShowGrid(), slotCurrentViewToggleSnapToGrid(), slotDeleteDiagram(), slotDeleteSelectedWidget(), slotDeploymentDiagram(), slotEditCopy(), slotEditCut(), slotEditPaste(), slotEditRedo(), slotEditUndo(), slotEntityRelationshipDiagram(), slotFileClose(), slotFileExportDocbook(), slotFileExportXhtml(), slotFileNew(), slotFileOpen(), slotFileOpenRecent(), slotFilePrint(), slotFileQuit(), slotFileSave(), slotFileSaveAs(), slotImportClasses(), slotMoveTabLeft(), slotMoveTabRight(), slotPrefs(), slotSelectAll(), slotSequenceDiagram(), slotStateDiagram(), slotUseCaseDiagram(), slotZoom100(), slotZoomSliderMoved(), and tipOfTheDay().

Referenced by UMLApp().

void UMLApp::initStatusBar  )  [protected]
 

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().

void UMLApp::initView  )  [protected]
 

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().

bool UMLApp::queryClose  )  [protected, virtual]
 

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.

Definition at line 638 of file uml.cpp.

References UMLDoc::saveModified().

bool UMLApp::queryExit  )  [protected, virtual]
 

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.

Definition at line 643 of file uml.cpp.

References saveOptions().

void UMLApp::saveProperties KConfig *  _cfg  )  [protected, virtual]
 

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

Definition at line 590 of file uml.cpp.

References UMLDoc::isModified(), UMLDoc::saveDocument(), and UMLDoc::URL().

void UMLApp::readProperties KConfig *  _cfg  )  [protected, virtual]
 

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

Definition at line 606 of file uml.cpp.

References enablePrint(), UMLDoc::openDocument(), and UMLDoc::setModified().

void UMLApp::updateLangSelectMenu Uml::Programming_Language  activeLanguage  )  [protected]
 

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().

void UMLApp::tipOfTheDay  )  [protected, slot]
 

Show "Tip of the Day" dialog.

Definition at line 1494 of file uml.cpp.

Referenced by initActions().

void UMLApp::initGenerator  )  [slot]
 

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().

void UMLApp::generationWizard  )  [slot]
 

Runs the code generation wizard.

Definition at line 1259 of file uml.cpp.

References CodeGenerationWizard::exec().

Referenced by initActions().

void UMLApp::slotFileNew  )  [slot]
 

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().

void UMLApp::slotFileOpen  )  [slot]
 

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().

void UMLApp::slotFileOpenRecent const KURL &  url  )  [slot]
 

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().

void UMLApp::slotFileSave  )  [slot]
 

Save a document.

Definition at line 715 of file uml.cpp.

References UMLDoc::saveDocument(), slotFileSaveAs(), slotStatusMsg(), and UMLDoc::URL().

Referenced by initActions().

bool UMLApp::slotFileSaveAs  )  [slot]
 

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().

void UMLApp::slotFileClose  )  [slot]
 

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().

void UMLApp::slotFilePrint  )  [slot]
 

Print the current file.

Definition at line 779 of file uml.cpp.

References slotStatusMsg(), and UMLDoc::URL().

Referenced by initActions().

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.

Definition at line 795 of file uml.cpp.

References UMLDoc::saveModified(), saveOptions(), and slotStatusMsg().

Referenced by initActions().

void UMLApp::slotFileExportDocbook  )  [slot]
 

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().

void UMLApp::slotFileExportXhtml  )  [slot]
 

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().

void UMLApp::slotEditCut  )  [slot]
 

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().

void UMLApp::slotEditCopy  )  [slot]
 

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().

void UMLApp::slotEditPaste  )  [slot]
 

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().

void UMLApp::slotViewToolBar  )  [slot]
 

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().

void UMLApp::slotViewStatusBar  )  [slot]
 

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().

void UMLApp::slotAutolayout  )  [slot]
 

Autolayouts the current class diagram.

Definition at line 1691 of file uml.cpp.

Referenced by initActions().

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

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().

void UMLApp::slotClassDiagram  )  [slot]
 

Create this view.

Definition at line 910 of file uml.cpp.

References UMLDoc::createDiagram(), getDocument(), and UMLDoc::getRootFolder().

Referenced by initActions(), and initView().

void UMLApp::slotSequenceDiagram  )  [slot]
 

Create this view.

Definition at line 916 of file uml.cpp.

References UMLDoc::createDiagram(), and UMLDoc::getRootFolder().

Referenced by initActions(), and initView().

void UMLApp::slotCollaborationDiagram  )  [slot]
 

Create this view.

Definition at line 921 of file uml.cpp.

References UMLDoc::createDiagram(), and UMLDoc::getRootFolder().

Referenced by initActions(), and initView().

void UMLApp::slotUseCaseDiagram  )  [slot]
 

Create this view.

Definition at line 926 of file uml.cpp.

References UMLDoc::createDiagram(), and UMLDoc::getRootFolder().

Referenced by initActions(), and initView().

void UMLApp::slotStateDiagram  )  [slot]
 

Create this view.

Definition at line 931 of file uml.cpp.

References UMLDoc::createDiagram(), and UMLDoc::getRootFolder().

Referenced by initActions(), and initView().

void UMLApp::slotActivityDiagram  )  [slot]
 

Create this view.

Definition at line 936 of file uml.cpp.

References UMLDoc::createDiagram(), and UMLDoc::getRootFolder().

Referenced by initActions(), and initView().

void UMLApp::slotComponentDiagram  )  [slot]
 

Create this view.

Definition at line 941 of file uml.cpp.

References UMLDoc::createDiagram(), and UMLDoc::getRootFolder().

Referenced by initActions(), and initView().

void UMLApp::slotDeploymentDiagram  )  [slot]
 

Create this view.

Definition at line 946 of file uml.cpp.

References UMLDoc::createDiagram(), and UMLDoc::getRootFolder().

Referenced by initActions(), and initView().

void UMLApp::slotEntityRelationshipDiagram  )  [slot]
 

Create this view.

Definition at line 951 of file uml.cpp.

References UMLDoc::createDiagram(), and UMLDoc::getRootFolder().

Referenced by initActions(), and initView().

void UMLApp::slotClipDataChanged  )  [slot]
 

Notification of changed clipboard data.

Definition at line 1018 of file uml.cpp.

Referenced by editCutCopy().

void UMLApp::slotPrefs  )  [slot]
 

Shows the global preferences dialog.

Definition at line 1035 of file uml.cpp.

References SettingsDlg::getChangesApplied(), and slotApplyPrefs().

Referenced by initActions().

void UMLApp::slotApplyPrefs  )  [slot]
 

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().

void UMLApp::slotUpdateViews  )  [slot]
 

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().

void UMLApp::generateAllCode  )  [slot]
 

Generate code for all classes.

Definition at line 1253 of file uml.cpp.

References CodeGenerator::writeCodeToFile().

Referenced by initActions().

void UMLApp::setActiveLanguage int  menuID  )  [slot]
 

Set the language for which code will be generated.

Parameters:
menuID the ID of the langSelect menu item for the relevant language.

Definition at line 1264 of file uml.cpp.

References setGenerator().

Referenced by initGenerator(), UMLEntityAttributeDialog::setupDialog(), and updateLangSelectMenu().

void UMLApp::setActiveLanguage const QString &  activeLanguage  )  [slot]
 

Set the language for which code will be generated.

Parameters:
activeLanguage The name of the language to set

Definition at line 1285 of file uml.cpp.

References setGenerator().

Uml::Programming_Language UMLApp::getActiveLanguage  )  [slot]
 

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().

bool UMLApp::activeLanguageIsCaseSensitive  )  [slot]
 

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().

QString UMLApp::activeLanguageScopeSeparator  )  [slot]
 

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().

Uml::Programming_Language UMLApp::getDefaultLanguage  )  [slot]
 

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().

void UMLApp::slotCurrentViewClearDiagram  )  [slot]
 

Menu selection for clear current view.

Definition at line 1326 of file uml.cpp.

References UMLView::clearDiagram(), and getCurrentView().

Referenced by initActions().

void UMLApp::slotCurrentViewToggleSnapToGrid  )  [slot]
 

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().

void UMLApp::slotCurrentViewToggleShowGrid  )  [slot]
 

Menu selection for current view show grid property.

Definition at line 1335 of file uml.cpp.

References getCurrentView(), and UMLView::toggleShowGrid().

Referenced by initActions().

void UMLApp::slotCurrentViewExportImage  )  [slot]
 

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().

void UMLApp::slotAllViewsExportImage  )  [slot]
 

Menu selection for exporting all views as images.

Definition at line 1344 of file uml.cpp.

References UMLViewImageExporterAll::exportAllViews().

Referenced by initActions().

void UMLApp::slotCurrentViewProperties  )  [slot]
 

Menu selection for current view properties.

Definition at line 1348 of file uml.cpp.

References getCurrentView(), and UMLView::showPropDialog().

Referenced by initActions().

void UMLApp::slotImportClasses  )  [slot]
 

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().

void UMLApp::slotClassWizard  )  [slot]
 

Class wizard menu selection.

Definition at line 1423 of file uml.cpp.

Referenced by initActions().

void UMLApp::slotAddDefaultDatatypes  )  [slot]
 

Calls the active code generator to add its default datatypes.

Definition at line 1428 of file uml.cpp.

References UMLDoc::addDefaultDatatypes().

Referenced by initActions().

void UMLApp::slotCurrentViewChanged  )  [slot]
 

The displayed diagram has changed.

Definition at line 1432 of file uml.cpp.

References getCurrentView(), slotShowGridToggled(), and slotSnapToGridToggled().

void UMLApp::slotSnapToGridToggled bool  gridOn  )  [slot]
 

The snap to grid value has been changed.

Definition at line 1441 of file uml.cpp.

Referenced by slotCurrentViewChanged().

void UMLApp::slotShowGridToggled bool  gridOn  )  [slot]
 

The show grid value has been changed.

Definition at line 1445 of file uml.cpp.

Referenced by slotCurrentViewChanged().

void UMLApp::slotSelectAll  )  [slot]
 

Select all widgets on the current diagram.

Definition at line 1449 of file uml.cpp.

References getCurrentView(), and UMLView::selectAll().

Referenced by initActions().

void UMLApp::slotDeleteSelectedWidget  )  [slot]
 

Deletes the selected widget.

Definition at line 1453 of file uml.cpp.

References UMLView::deleteSelection(), and getCurrentView().

Referenced by initActions(), and slotEditCut().

void UMLApp::slotDeleteDiagram  )  [slot]
 

Deletes the current diagram.

Definition at line 1461 of file uml.cpp.

References getCurrentView(), and UMLDoc::removeDiagram().

Referenced by initActions(), and initView().

void UMLApp::setZoom int  zoom  )  [slot]
 

Set the zoom factor of the current diagram.

Parameters:
zoom Zoom factor in percentage.

Definition at line 339 of file uml.cpp.

References getCurrentView(), and UMLView::setZoom().

Referenced by slotZoom100(), and UMLApp().

void UMLApp::slotZoomSliderMoved int  value  )  [slot]
 

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.

Parameters:
value Zoom factor before scaleing

Definition at line 330 of file uml.cpp.

References getCurrentView(), and UMLView::setZoom().

Referenced by initActions().

void UMLApp::slotZoom100  )  [slot]
 

Set zoom to 100%.

Definition at line 335 of file uml.cpp.

References setZoom().

Referenced by initActions().

void UMLApp::setupZoomMenu  )  [slot]
 

Prepares the zoom menu for display.

Definition at line 343 of file uml.cpp.

References UMLView::currentZoom(), and getCurrentView().

Referenced by UMLApp().

void UMLApp::slotEditUndo  )  [slot]
 

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().

void UMLApp::slotEditRedo  )  [slot]
 

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().

QPopupMenu * UMLApp::findMenu QMenuData *  menu,
const QString &  name
[slot]
 

Searches for a menu with the given name.

Parameters:
menu The QPopupMenu or QMenuBar to search through.
name The name of the menu to search for (name, not text)

Definition at line 1621 of file uml.cpp.

Referenced by initActions(), slotUpdateViews(), and UMLApp().

void UMLApp::slotTabChanged QWidget *  view  )  [slot]
 

called when the tab has changed

Definition at line 1640 of file uml.cpp.

References UMLDoc::changeCurrentView(), and UMLView::getID().

Referenced by initView().

void UMLApp::slotChangeTabLeft  )  [slot]
 

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().

void UMLApp::slotChangeTabRight  )  [slot]
 

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().

void UMLApp::slotMoveTabLeft  )  [slot]
 

Move the current tab left, not implemented.

Definition at line 1679 of file uml.cpp.

Referenced by initActions().

void UMLApp::slotMoveTabRight  )  [slot]
 

Move the current tab right, not implemented.

Definition at line 1686 of file uml.cpp.

Referenced by initActions().

void UMLApp::slotXhtmlDocGenerationFinished  )  [slot]
 

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().

void UMLApp::sigCutSuccessful  )  [signal]
 

Emitted when a cut operation is successful.

Referenced by slotEditCut().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:06 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003