umbrello/umbrello
#include <umldoc.h>
Public Slots | |
void | slotAutoSave () |
void | slotDiagramPopupMenu (QWidget *umlview, const QPoint &point) |
void | slotRemoveUMLObject (UMLObject *o) |
Signals | |
void | sigCurrentViewChanged () |
void | sigDiagramChanged (Uml::DiagramType::Enum) |
void | sigDiagramCreated (Uml::ID::Type id) |
void | sigDiagramRemoved (Uml::ID::Type id) |
void | sigDiagramRenamed (Uml::ID::Type t) |
void | sigObjectCreated (UMLObject *) |
void | sigObjectRemoved (UMLObject *) |
void | sigResetStatusbarProgress () |
void | sigSetStatusbarProgress (int stepPosition) |
void | sigSetStatusbarProgressSteps (int totalSteps) |
void | sigWriteToStatusBar (const QString &text) |
Static Public Member Functions | |
static bool | tagEq (const QString &tag, const QString &pattern) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Additional Inherited Members | |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
UMLDoc provides a document object for a document-view model.
The UMLDoc class provides a document object that can be used in conjunction with the classes UMLApp and UMLView to create a document-view model for standard KDE applications based on KApplication and KMainWindow. Thereby, the document object is created by the UMLApp instance and contains the document structure with the according methods for manipulation of the document data by UMLView objects. Also, UMLDoc contains the methods for serialization of the document data from and to files.
Constructor & Destructor Documentation
UMLDoc::UMLDoc | ( | ) |
Constructor for the fileclass of the application.
Definition at line 78 of file umldoc.cpp.
UMLDoc::~UMLDoc | ( | ) |
Destructor for the fileclass of the application.
Definition at line 149 of file umldoc.cpp.
Member Function Documentation
void UMLDoc::activateAllViews | ( | ) |
Activate all the diagrams/views after loading so all their widgets keep their IDs.
Definition at line 2863 of file umldoc.cpp.
void UMLDoc::addAssociation | ( | UMLAssociation * | assoc | ) |
Adds an association.
- Parameters
-
assoc Pointer to the UMLAssociation to add.
Definition at line 1156 of file umldoc.cpp.
void UMLDoc::addDefaultDatatypes | ( | ) |
Calls the active code generator to create its default datatypes.
Definition at line 2971 of file umldoc.cpp.
void UMLDoc::addDefaultStereotypes | ( | ) |
Add a stereotype if it doesn't already exist.
Used by code generators, operations and attribute dialog.
Definition at line 3060 of file umldoc.cpp.
void UMLDoc::addStereotype | ( | UMLStereotype * | s | ) |
Add a UMLStereotype to the application.
- Parameters
-
s the stereotype to be added
Definition at line 926 of file umldoc.cpp.
bool UMLDoc::addUMLObject | ( | UMLObject * | object | ) |
Adds a UMLObject thats already created but doesn't change any ids or signal.
Use AddUMLObjectPaste if pasting.
- Parameters
-
object The object to add.
- Returns
- True if the object was actually added.
Definition at line 903 of file umldoc.cpp.
bool UMLDoc::addUMLView | ( | UMLView * | pView | ) |
Adds an already created UMLView to the document, it gets assigned a new ID, if its name is already in use then the function appends a number to it to differentiate it from the others; this number is incremental so if number 1 is in use then it tries 2 and then 3 and so on.
- Parameters
-
pView Pointer to the UMLView to add.
- Returns
- True if operation successful.
Definition at line 2827 of file umldoc.cpp.
void UMLDoc::addView | ( | UMLView * | view | ) |
Adds a view to the document which represents the document contents.
Usually this is your main view.
- Parameters
-
view Pointer to the UMLView to add.
Definition at line 161 of file umldoc.cpp.
Uml::ID::Type UMLDoc::assignNewID | ( | Uml::ID::Type | oldID | ) |
Assigns a New ID to an Object, and also logs the assignment to its internal ChangeLog.
- Parameters
-
oldID The present ID of the object.
- Returns
- The new ID assigned to the object.
Definition at line 2788 of file umldoc.cpp.
bool UMLDoc::assignNewIDs | ( | UMLObject * | obj | ) |
Assigns an already created UMLObject a new ID.
If the object is a classifier then the operations/attributes are also assigned new IDs.
- Parameters
-
obj Pointer to the UMLObject to add.
- Returns
- True if operation successful.
Definition at line 2680 of file umldoc.cpp.
UMLAssociationList UMLDoc::associations | ( | ) |
Returns a list of the associations in this UMLDoc.
- Returns
- List of UML associations.
Definition at line 2592 of file umldoc.cpp.
void UMLDoc::beginPaste | ( | ) |
Opens a Paste session, deletes the old ChangeLog and creates an empty one.
Definition at line 2761 of file umldoc.cpp.
void UMLDoc::changeCurrentView | ( | Uml::ID::Type | id | ) |
Changes the current view (diagram) to the view with the given ID.
- Parameters
-
id The ID of the view to change to.
Definition at line 1446 of file umldoc.cpp.
|
virtual |
Read property of IDChangeLog* m_pChangeLog.
- Returns
- Pointer to the IDChangeLog object.
Definition at line 2752 of file umldoc.cpp.
UMLClassifierList UMLDoc::classesAndInterfaces | ( | bool | includeNested = true | ) |
Returns a list of the classes and interfaces in this UMLDoc.
- Parameters
-
includeNested Whether to include the concepts from nested packages (default: true.)
- Returns
- List of UML concepts.
Definition at line 2549 of file umldoc.cpp.
void UMLDoc::closeDocument | ( | ) |
Closes the current document.
Definition at line 318 of file umldoc.cpp.
bool UMLDoc::closing | ( | ) | const |
Returns the m_bClosing flag.
- Returns
- the value of the flag
Definition at line 1262 of file umldoc.cpp.
UMLClassifierList UMLDoc::concepts | ( | bool | includeNested = true | ) |
Returns a list of the concepts in this UMLDoc.
- Parameters
-
includeNested Whether to include the concepts from nested packages (default: true.)
- Returns
- List of UML concepts.
Definition at line 2535 of file umldoc.cpp.
void UMLDoc::createDatatype | ( | const QString & | name | ) |
Add a datatype if it doesn't already exist.
Used by code generators and attribute dialog.
Definition at line 2990 of file umldoc.cpp.
UMLView * UMLDoc::createDiagram | ( | UMLFolder * | folder, |
Uml::DiagramType::Enum | type, | ||
const QString & | name, | ||
Uml::ID::Type | id = Uml::ID::None |
||
) |
Creates a diagram of the given type.
- Parameters
-
folder the folder in which tp create the diagram. type the type of diagram to create name the name for the diagram to create id optional ID of new diagram
- Returns
- pointer to the UMLView of the new diagram
Definition at line 1313 of file umldoc.cpp.
QString UMLDoc::createDiagramName | ( | Uml::DiagramType::Enum | type, |
bool | askForName = true |
||
) |
Creates the name of the given diagram type.
- Parameters
-
type The type of diagram to create. askForName If true shows a dialog box asking for name, else uses a default name.
- Returns
- name of the new diagram
Definition at line 1274 of file umldoc.cpp.
UMLAssociation * UMLDoc::createUMLAssociation | ( | UMLObject * | a, |
UMLObject * | b, | ||
Uml::AssociationType::Enum | type | ||
) |
Creates AND adds an association between two UMLObjects.
Used by refactoring assistant. NOTE: this method does not check if the association is valid / legal
- Parameters
-
a The UMLObject "A" for the association (source) b The UMLObject "B" for the association (destination) type The association's type
- Returns
- The Association created
Definition at line 1138 of file umldoc.cpp.
UMLFolder * UMLDoc::currentRoot | ( | ) |
Return the currently selected root folder.
This will be an element from the m_root[] array.
- Returns
- the currently selected root folder or NULL
Definition at line 1521 of file umldoc.cpp.
UMLFolder * UMLDoc::datatypeFolder | ( | ) | const |
Returns the datatype folder.
- Returns
- Pointer to the predefined folder for datatypes.
Definition at line 2523 of file umldoc.cpp.
UMLClassifierList UMLDoc::datatypes | ( | ) |
Returns a list of the datatypes in this UMLDoc.
- Returns
- List of datatypes.
Definition at line 2575 of file umldoc.cpp.
QString UMLDoc::documentation | ( | ) | const |
Returns the documentation for the project.
- Returns
- The documentation text of this UMLDoc.
Definition at line 2802 of file umldoc.cpp.
short UMLDoc::encoding | ( | QIODevice & | file | ) |
Checks the given XMI file if it was saved with correct Unicode encoding set or not.
- Parameters
-
file The file to be checked.
Definition at line 1838 of file umldoc.cpp.
void UMLDoc::endPaste | ( | ) |
Closes a paste session, deletes the ChangeLog.
Definition at line 2773 of file umldoc.cpp.
UMLEntityList UMLDoc::entities | ( | bool | includeNested = true | ) |
Returns a list of the entities in this UMLDoc.
- Parameters
-
includeNested Whether to include the entities from nested packages (default: true.)
- Returns
- List of UML Entities.
Definition at line 2563 of file umldoc.cpp.
UMLAssociation * UMLDoc::findAssociation | ( | Uml::AssociationType::Enum | assocType, |
const UMLObject * | roleAObj, | ||
const UMLObject * | roleBObj, | ||
bool * | swap = 0 |
||
) |
Finds an association.
- Parameters
-
assocType Type of the UMLAssociation to seek. roleAObj Pointer to the role A UMLCanvasObject. roleBObj Pointer to the role B UMLCanvasObject. swap Optional pointer to boolean. The bool is set to true if the assocation matched with swapped roles, else it is set to false.
- Returns
- Pointer to the UMLAssociation found or NULL if not found.
Definition at line 1104 of file umldoc.cpp.
UMLObject * UMLDoc::findObjectById | ( | Uml::ID::Type | id | ) |
Used to find a reference to a UMLObject by its ID.
- Parameters
-
id The UMLObject to find.
- Returns
- Pointer to the UMLObject found, or NULL if not found.
Definition at line 782 of file umldoc.cpp.
UMLStereotype * UMLDoc::findOrCreateStereotype | ( | const QString & | name | ) |
Finds or creates a stereotype for the parent object.
- Parameters
-
name the name of the stereotype
- Returns
- the found stereotype object or a just created one
Definition at line 1056 of file umldoc.cpp.
UMLStereotype * UMLDoc::findStereotype | ( | const QString & | name | ) |
Finds a UMLStereotype by its name.
- Parameters
-
name The name of the UMLStereotype to find.
- Returns
- Pointer to the UMLStereotype found, or NULL if not found.
Definition at line 1041 of file umldoc.cpp.
UMLStereotype * UMLDoc::findStereotypeById | ( | Uml::ID::Type | id | ) |
Find a UMLStereotype by its unique ID.
- Parameters
-
id the unique ID
- Returns
- the found stereotype or NULL
Definition at line 803 of file umldoc.cpp.
UMLClassifier * UMLDoc::findUMLClassifier | ( | const QString & | name | ) |
Used to find a UMLClassifier by its name.
- Parameters
-
name The name of the UMLObject to find.
Definition at line 889 of file umldoc.cpp.
UMLObject * UMLDoc::findUMLObject | ( | const QString & | name, |
UMLObject::ObjectType | type = UMLObject::ot_UMLObject , |
||
UMLObject * | currentObj = 0 |
||
) |
Used to find a UMLObject by its type and name.
- Parameters
-
name The name of the UMLObject to find. type ObjectType of the object to find (optional.) When the given type is ot_UMLObject the type is disregarded, i.e. the given name is the only search criterion. currentObj Object relative to which to search (optional.) If given then the enclosing scope(s) of this object are searched before the global scope.
- Returns
- Pointer to the UMLObject found, or NULL if not found.
Definition at line 825 of file umldoc.cpp.
UMLObject * UMLDoc::findUMLObjectRaw | ( | Uml::ModelType::Enum | modelType, |
const QString & | name, | ||
UMLObject::ObjectType | type = UMLObject::ot_UMLObject |
||
) |
Used to find a UMLObject by its type and raw name.
- Parameters
-
modelType The model type in which to search for the object name The raw name of the UMLObject to find. type ObjectType of the object to find
- Returns
- Pointer to the UMLObject found, or NULL if not found.
Definition at line 857 of file umldoc.cpp.
UMLObject * UMLDoc::findUMLObjectRaw | ( | UMLFolder * | folder, |
const QString & | name, | ||
UMLObject::ObjectType | type = UMLObject::ot_UMLObject |
||
) |
UMLView * UMLDoc::findView | ( | Uml::ID::Type | id | ) |
Finds a view (diagram) by the ID given to method.
- Parameters
-
id The ID of the view to search for.
- Returns
- Pointer to the view found, or NULL if not found.
Definition at line 749 of file umldoc.cpp.
UMLView * UMLDoc::findView | ( | Uml::DiagramType::Enum | type, |
const QString & | name, | ||
bool | searchAllScopes = false |
||
) |
Finds a view (diagram) by the type and name given.
- Parameters
-
type The type of view to find. name The name of the view to find. searchAllScopes Search in all subfolders (default: false.)
- Returns
- Pointer to the view found, or NULL if not found.
Definition at line 769 of file umldoc.cpp.
void UMLDoc::init | ( | ) |
Initialize the UMLDoc.
To be called after the constructor, before anything else.
Definition at line 101 of file umldoc.cpp.
bool UMLDoc::isModified | ( | ) |
Returns if the document is modified or not.
Use this to determine if your document needs saving by the user on closing.
- Returns
- True if this UMLDoc is modified.
Definition at line 2667 of file umldoc.cpp.
bool UMLDoc::isUnique | ( | const QString & | name | ) |
Returns true if the given name is unique within its scope.
- Parameters
-
name The name to check.
- Returns
- True if name is unique.
Definition at line 974 of file umldoc.cpp.
bool UMLDoc::isUnique | ( | const QString & | name, |
UMLPackage * | package | ||
) |
Returns true if the given name is unique within its scope of given package.
- Parameters
-
name The name to check. package The UMLPackage in which we have to determine the unique-ness
- Returns
- True if name is unique.
Definition at line 1016 of file umldoc.cpp.
bool UMLDoc::loadDiagramsFromXMI | ( | QDomNode & | node | ) |
Loads all diagrams from XMI into the current UMLDoc.
For backward compatibility only: Since version 1.5.5 diagrams are saved as part of the UMLFolder.
- Returns
- True if operation successful.
Definition at line 2434 of file umldoc.cpp.
void UMLDoc::loadExtensionsFromXMI | ( | QDomNode & | node | ) |
Loads umbrello specific extensions from XMI to the UMLDoc.
The extension tags are: "docsettings", "diagrams", "listview", and "codegeneration".
Definition at line 2370 of file umldoc.cpp.
|
virtual |
Load a given XMI model from a file.
If the encoding of the file is already known it can be passed to the function. If this info isn't given, loadFromXMI will check which encoding was used.
- Parameters
-
file The file to be loaded. encode The encoding used.
Definition at line 1940 of file umldoc.cpp.
bool UMLDoc::loading | ( | ) | const |
Returns true when loading a document file.
- Returns
- the value of the flag
Definition at line 1244 of file umldoc.cpp.
bool UMLDoc::loadUMLObjectsFromXMI | ( | QDomElement & | element | ) |
Loads all UML objects from XMI into the current UMLDoc.
- Returns
- True if operation successful.
Definition at line 2197 of file umldoc.cpp.
Uml::ID::Type UMLDoc::modelID | ( | ) | const |
Return the m_modelID (currently this a fixed value: Umbrello supports only a single document.)
Definition at line 1680 of file umldoc.cpp.
QString UMLDoc::name | ( | ) | const |
Return the name of this model.
Definition at line 1671 of file umldoc.cpp.
bool UMLDoc::newDocument | ( | ) |
Initializes the document generally.
- Returns
- True if operation successful.
Definition at line 368 of file umldoc.cpp.
bool UMLDoc::openDocument | ( | const KUrl & | url, |
const char * | format = 0 |
||
) |
Loads the document by filename and format and emits the updateViews() signal.
- Parameters
-
url The filename in KUrl format. format The format (optional.)
- Returns
- True if operation successful.
Definition at line 403 of file umldoc.cpp.
UMLPackageList UMLDoc::packages | ( | bool | includeNested = true | ) |
Returns a list of the packages in this UMLDoc,.
- Returns
- List of UMLPackages.
Definition at line 2511 of file umldoc.cpp.
void UMLDoc::print | ( | QPrinter * | pPrinter, |
DiagramPrintPage * | selectPage | ||
) |
Controls the printing of the program.
- Parameters
-
pPrinter The printer (object) to use. selectPage The DiagramPrintPage by which diagrams are selected for printing
Definition at line 2611 of file umldoc.cpp.
void UMLDoc::removeAllObjects | ( | ) |
Call to remove all objects in the current file.
Definition at line 2499 of file umldoc.cpp.
void UMLDoc::removeAllViews | ( | ) |
Call to remove all the views (diagrams) in the current file.
Definition at line 2485 of file umldoc.cpp.
void UMLDoc::removeAssociation | ( | UMLAssociation * | assoc, |
bool | doSetModified = true |
||
) |
Removes an association.
- Parameters
-
assoc Pointer to the UMLAssociation to remove. doSetModified Whether to mark the document as modified (default: true.)
Definition at line 1073 of file umldoc.cpp.
void UMLDoc::removeDiagram | ( | Uml::ID::Type | id | ) |
Deletes a diagram from the current file.
Undo command
- Parameters
-
id The ID of the diagram to delete.
Definition at line 1473 of file umldoc.cpp.
void UMLDoc::removeDiagramCmd | ( | Uml::ID::Type | id | ) |
Deletes a diagram from the current file.
- Parameters
-
id The ID of the diagram to delete.
Definition at line 1502 of file umldoc.cpp.
void UMLDoc::removeStereotype | ( | UMLStereotype * | s | ) |
Remove a UMLStereotype from the application.
- Parameters
-
s the stereotype to be removed
Definition at line 937 of file umldoc.cpp.
void UMLDoc::removeUMLObject | ( | UMLObject * | umlobject | ) |
Removes an UMLObject from the current file.
If this object is being represented on a diagram it will also delete all those representations.
- Parameters
-
umlobject Pointer to the UMLObject to delete.
Definition at line 1557 of file umldoc.cpp.
void UMLDoc::removeView | ( | UMLView * | view, |
bool | enforceCurrentView = true |
||
) |
Removes a view from the list of currently connected views.
- Parameters
-
view Pointer to the UMLView to remove. enforceCurrentView Switch to determine if we have a current view or not. Most of the time, we DO want this, except when exiting the program.
Definition at line 199 of file umldoc.cpp.
void UMLDoc::renameChildUMLObject | ( | UMLObject * | o | ) |
Used to rename an operation or attribute of a concept.
- Parameters
-
o The attribute or operation to rename.
Definition at line 1408 of file umldoc.cpp.
void UMLDoc::renameDiagram | ( | Uml::ID::Type | id | ) |
Used to rename a document.
This method takes care of everything. You just need to give the ID of the diagram to the method.
- Parameters
-
id The ID of the diagram to rename.
Definition at line 1345 of file umldoc.cpp.
void UMLDoc::renameUMLObject | ( | UMLObject * | o | ) |
Used to rename a UMLObject.
The UMLObject is to be an actor, use case or concept.
- Parameters
-
o The object to rename.
Definition at line 1380 of file umldoc.cpp.
void UMLDoc::resolveTypes | ( | ) |
Type resolution pass.
Definition at line 2148 of file umldoc.cpp.
UMLFolder * UMLDoc::rootFolder | ( | Uml::ModelType::Enum | mt | ) |
Return the predefined root folder of the given type.
Definition at line 2721 of file umldoc.cpp.
Uml::ModelType::Enum UMLDoc::rootFolderType | ( | UMLObject * | obj | ) |
Return the corresponding Model_Type if the given object is one of the root folders.
When the given object is not one of the root folders then return Uml::ModelType::N_MODELTYPES.
Definition at line 2736 of file umldoc.cpp.
bool UMLDoc::saveDocument | ( | const KUrl & | url, |
const char * | format = 0 |
||
) |
Saves the document using the given filename and format.
- Parameters
-
url The filename in KUrl format. format The format (optional.)
- Returns
- True if operation successful.
- Todo:
- insert some checks in saveToXMI to detect a failed save attempt
Definition at line 596 of file umldoc.cpp.
bool UMLDoc::saveModified | ( | ) |
"save modified" - Asks the user for saving if the document is modified.
- Returns
- True if document can be closed.
Definition at line 270 of file umldoc.cpp.
|
virtual |
This method is called for saving the given model as a XMI file.
It is virtual and calls the corresponding saveToXMI() functions of the derived classes.
- Parameters
-
file The file to be saved to.
bugs.kde.org/56184 comment by M. Alanen 2004-12-19: " XMI.model requires xmi.version. (or leave the whole XMI.model out, it's not required) " QDomElement model = doc.createElement("XMI.model"); QFile* qfile = dynamic_cast<QFile*>(&file); if (qfile) { QString modelName = qfile->name(); modelName = modelName.section('/', -1); modelName = modelName.section('.', 0, 0); model.setAttribute("xmi.name", modelName); model.setAttribute("href", qfile->name()); }
Definition at line 1692 of file umldoc.cpp.
void UMLDoc::setCurrentRoot | ( | Uml::ModelType::Enum | rootType | ) |
Set the current root folder.
- Parameters
-
rootType The type of the root folder to set. The element from m_root[] which is indexed by this type is selected.
Definition at line 1545 of file umldoc.cpp.
void UMLDoc::setDocumentation | ( | const QString & | doc | ) |
Sets the documentation for the project.
- Parameters
-
doc The documentation to set for this UMLDoc.
Definition at line 2812 of file umldoc.cpp.
void UMLDoc::setLoading | ( | bool | state = true | ) |
Sets loading boolean flag to the value given.
- Parameters
-
state value to set
Definition at line 1253 of file umldoc.cpp.
void UMLDoc::setMainViewID | ( | Uml::ID::Type | viewID | ) |
Sets m_nViewID.
Definition at line 2360 of file umldoc.cpp.
void UMLDoc::setModified | ( | bool | modified = true | ) |
Sets the modified flag for the document after a modifying action on the view connected to the document.
- Parameters
-
modified The value to set the modified flag to.
Definition at line 2652 of file umldoc.cpp.
void UMLDoc::setName | ( | const QString & | name | ) |
Set the name of this model.
Definition at line 1663 of file umldoc.cpp.
void UMLDoc::settingsChanged | ( | Settings::OptionState | optionState | ) |
Sets the default settings to the given settings.
- Parameters
-
optionState settings
Definition at line 2879 of file umldoc.cpp.
void UMLDoc::setupSignals | ( | ) |
Sets up the signals needed by the program for it to work.
Definition at line 737 of file umldoc.cpp.
void UMLDoc::setUrl | ( | const KUrl & | url | ) |
Sets the URL of the document.
- Parameters
-
url The KUrl to set.
Definition at line 249 of file umldoc.cpp.
|
signal |
The diagram being displayed has changed.
UMLApp uses this to keep its menu items state up to date.
|
signal |
|
signal |
|
signal |
|
signal |
void UMLDoc::signalDiagramRenamed | ( | UMLView * | view | ) |
Signal a view/diagram has been renamed.
Definition at line 2954 of file umldoc.cpp.
void UMLDoc::signalUMLObjectCreated | ( | UMLObject * | o | ) |
Signal that a UMLObject has been created.
- Parameters
-
o The object that has been created.
Definition at line 1649 of file umldoc.cpp.
|
signal |
|
signal |
|
signal |
Reset the status bar.
|
signal |
Set the progress position of the progressbar.
- Parameters
-
stepPosition The step position to set.
|
signal |
Set the total range of the progressbar.
- Parameters
-
totalSteps Total range of the progressbar (0..totalSteps)
|
signal |
Write text to the status bar.
|
slot |
Called after a specified time to autosave the document.
Definition at line 2910 of file umldoc.cpp.
Make a popup menu for the tabs signalled from tabWidget's contextMenu().
Definition at line 3004 of file umldoc.cpp.
|
slot |
Simple removal of an object.
- Parameters
-
object the UMLObject to be removed
Definition at line 957 of file umldoc.cpp.
const UMLStereotypeList & UMLDoc::stereotypes | ( | ) | const |
Returns a list of the stereotypes in this UMLDoc.
- Returns
- List of UML stereotypes.
Definition at line 3073 of file umldoc.cpp.
Function for comparing tags in XMI files.
Definition at line 3081 of file umldoc.cpp.
QString UMLDoc::uniqueViewName | ( | const Uml::DiagramType::Enum | type | ) |
Returns a name for the new object, appended with a number if the default name is taken e.g.
class diagram, class diagram_1 etc.
- Parameters
-
type the diagram type
- Returns
- the unique view name
Definition at line 1198 of file umldoc.cpp.
const KUrl & UMLDoc::url | ( | ) | const |
Returns the KUrl of the document.
- Returns
- The KUrl of this UMLDoc.
Definition at line 259 of file umldoc.cpp.
bool UMLDoc::validateXMIHeader | ( | QDomNode & | headerNode | ) |
Ensures the XMI file is a valid UML file.
Currently only checks for metamodel=UML.
- Parameters
-
headerNode The <XMI.header> node
Definition at line 2174 of file umldoc.cpp.
UMLViewList UMLDoc::viewIterator | ( | ) |
Return the list of views for this document.
- Returns
- List of UML views.
Definition at line 2637 of file umldoc.cpp.
void UMLDoc::writeToStatusBar | ( | const QString & | text | ) |
Write text to the status bar.
- Parameters
-
text the text to write
Definition at line 948 of file umldoc.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.