umbrello/umbrello
umldoc.cpp
Go to the documentation of this file.
177 connect(this, SIGNAL(sigObjectRemoved(UMLObject*)), view->umlScene(), SLOT(slotObjectRemoved(UMLObject*)));
422 KMessageBox::error(0, i18n("The file %1 does not exist.", url.pathOrUrl()), i18n("Load Error"));
444 KMessageBox::error(0, i18n("The file %1 seems to be corrupted.", url.pathOrUrl()), i18n("Load Error"));
482 KMessageBox::error(0, i18n("There was no XMI file found in the compressed file %1.", url.pathOrUrl()),
495 KMessageBox::error(0, i18n("There was no XMI file found in the compressed file %1.", url.pathOrUrl()),
510 KMessageBox::error(0, i18n("There was a problem loading the extracted file: %1", url.pathOrUrl()),
524 KMessageBox::error(0, i18n("There was no XMI file found in the compressed file %1.", url.pathOrUrl()),
611 } else if (fileExt == QLatin1String("xmi.tar.bz2") || fileExt == QLatin1String("bak.xmi.tar.bz2")) {
642 KMessageBox::error(0, i18n("There was a problem saving file: %1", url.pathOrUrl()), i18n("Save Error"));
652 KMessageBox::error(0, i18n("There was a problem saving file: %1", url.pathOrUrl()), i18n("Save Error"));
669 KMessageBox::error(0, i18n("There was a problem saving file: %1", url.pathOrUrl()), i18n("Save Error"));
702 KMessageBox::error(0, i18n("There was a problem saving file: %1", url.pathOrUrl()), i18n("Save Error"));
720 KMessageBox::error(0, i18n("There was a problem saving file: %1", url.pathOrUrl()), i18n("Save Error"));
727 KMessageBox::error(0, i18n("There was a problem uploading file: %1", url.pathOrUrl()), i18n("Save Error"));
740 connect(this, SIGNAL(sigDiagramChanged(Uml::DiagramType::Enum)), tb, SLOT(slotCheckToolBar(Uml::DiagramType::Enum)));
906 if (ot == UMLObject::ot_Attribute || ot == UMLObject::ot_Operation || ot == UMLObject::ot_EnumLiteral
907 || ot == UMLObject::ot_EntityAttribute || ot == UMLObject::ot_Template || ot == UMLObject::ot_Stereotype) {
1115 if (a->getObject(Uml::RoleType::A) == roleAObj && a->getObject(Uml::RoleType::B) == roleBObj) {
1118 if (a->getObject(Uml::RoleType::A) == roleBObj && a->getObject(Uml::RoleType::B) == roleAObj) {
1294 KMessageBox::error(0, i18n("A diagram is already using that name."), i18n("Not a Unique Name"));
1313 UMLView* UMLDoc::createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString& name, Uml::ID::Type id)
1354 QString name = KInputDialog::getText(i18nc("renaming diagram", "Name"), i18n("Enter name:"), oldName, &ok, (QWidget*)UMLApp::app());
1369 KMessageBox::error(0, i18n("A diagram is already using that name."), i18n("Not a Unique Name"));
1385 QString name = KInputDialog::getText(i18nc("renaming uml object", "Name"), i18n("Enter name:"), oldName, &ok, (QWidget*)UMLApp::app());
1419 QString name = KInputDialog::getText(i18nc("renaming child uml object", "Name"), i18n("Enter name:"), oldName, &ok, (QWidget*)UMLApp::app());
1430 i18n("Name Not Unique"), KGuiItem(i18n("Use Name")), KGuiItem(i18n("Enter New Name"))) == KMessageBox::Yes)) {
1581 } else if (type == UMLObject::ot_UniqueConstraint || type == UMLObject::ot_ForeignKeyConstraint ||
1706 root.setAttribute(QLatin1String("xmlns:UML"), QLatin1String("http://schema.omg.org/spec/UML/1.3"));
1743 exporter.appendChild(doc.createTextNode(QLatin1String("umbrello uml modeller http://umbrello.kde.org")));
2959 UMLApp::app()->tabWidget()->setTabText(UMLApp::app()->tabWidget()->indexOf(view), view->umlScene()->name());
int removeAttribute(UMLAttribute *att)
Removes an attribute from the class.
Definition: classifier.cpp:901
QString completeSuffix() const
void setCodec(QTextCodec *codec)
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Return the corresponding Model_Type if the given object is one of the root folders.
Definition: umldoc.cpp:2736
UMLObject * getObject(Uml::RoleType::Enum role) const
Returns the UMLObject assigned to the given role.
Definition: association.cpp:497
void addDefaultStereotypes()
Add a stereotype if it doesn't already exist.
Definition: umldoc.cpp:3060
Definition: umlobject.h:61
Enum fromString(const QString &item)
Return ProgrammingLanguage corresponding to the given string.
Definition: basictypes.cpp:859
bool addUMLObject(UMLObject *object)
Adds a UMLObject thats already created but doesn't change any ids or signal.
Definition: umldoc.cpp:903
QString toString(Qt::DateFormat format) const
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
void addDefaultDatatypes()
Calls the active code generator to create its default datatypes.
Definition: umldoc.cpp:2971
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id=Uml::ID::None)
Creates a diagram of the given type.
Definition: umldoc.cpp:1313
QString cap(int nth) const
void createDatatype(const QString &name)
Add a datatype if it doesn't already exist.
Definition: umldoc.cpp:2990
bool addUMLView(UMLView *pView)
Adds an already created UMLView to the document, it gets assigned a new ID, if its name is already in...
Definition: umldoc.cpp:2827
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
QDomProcessingInstruction createProcessingInstruction(const QString &target, const QString &data)
UMLObject * umlObject() const
Return the UMLObject associated with this instance.
Definition: umllistviewitem.cpp:309
void setUMLStereotype(UMLStereotype *stereo)
Sets the class' UMLStereotype.
Definition: umlobject.cpp:466
void setDiagramMenuItemsState(bool bState)
Sets the state of the view properties menu item.
Definition: uml.cpp:2558
bool end()
virtual bool loadFromXMI(QDomElement &element)
This method loads the generic parts of the XMI common to most model classes.
Definition: umlobject.cpp:912
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=0)
Finds an association.
Definition: umldoc.cpp:1104
virtual void loadFromXMI(QDomElement &element)
Load codegenerator data from xmi.
Definition: codegenerator.cpp:191
QString toString(Enum item)
Convert DiagramType item into QString representation.
Definition: basictypes.cpp:158
QDomNode appendChild(const QDomNode &newChild)
Definition: basictypes.h:215
void initGenerator()
Reads the activeLanguage from the KConfig and calls updateLangSelectMenu()
Definition: uml.cpp:2798
Definition: basictypes.h:76
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1027
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Definition: umllistview.cpp:2313
QString attribute(const QString &name, const QString &defValue) const
void sigObjectRemoved(UMLObject *)
QString nodeValue() const
UMLAssociation * createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type)
Creates AND adds an association between two UMLObjects.
Definition: umldoc.cpp:1138
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3081
void showDocumentation(UMLObject *object, bool overwrite=false)
Called when a widget wishes to display its documentation in the doc window.
Definition: docwindow.cpp:88
QString toString(int indent) const
Uml::ModelType::Enum convert_DT_MT(Uml::DiagramType::Enum dt)
Return the Model_Type which corresponds to the given DiagramType.
Definition: model_utils.cpp:1141
int removeEnumLiteral(UMLEnumLiteral *literal)
Removes an enumliteral from the class.
Definition: enum.cpp:204
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates a UML:Model or UML:Package element: UML:Model is created for the predefined fixed folders...
Definition: folder.cpp:318
Definition: basictypes.h:216
virtual void saveToXMI(QIODevice &file)
This method is called for saving the given model as a XMI file.
Definition: umldoc.cpp:1692
int removeTemplate(UMLTemplate *umltemplate)
Removes a template from the class.
Definition: classifier.cpp:1128
Definition: cmd_renameUMLObject.h:20
Definition: umllistviewitem.h:91
void setViewOptions(const Settings::OptionState &optionState)
Set the options for the views in this folder.
Definition: folder.cpp:210
virtual bool loadFromXMI(QDomElement &qElement)
Loads the "diagram" tag.
Definition: umlscene.cpp:3613
bool contains(const QString &str, Qt::CaseSensitivity cs) const
QString uniqueViewName(const Uml::DiagramType::Enum type)
Returns a name for the new object, appended with a number if the default name is taken e...
Definition: umldoc.cpp:1198
void updateDocumentation(bool clear=false, bool startup=false)
Call when you wish move changes in the doc window back into the members documentation.
Definition: docwindow.cpp:230
void setLocalName(const QString &localName)
Set the localized name of this folder.
Definition: folder.cpp:69
This class contains the non-graphical information required for UMLObjects which appear as moveable wi...
Definition: umlcanvasobject.h:33
void slotUpdateViews()
Register new views (aka diagram) with the GUI so they show up in the menu.
Definition: uml.cpp:2577
Definition: basictypes.h:84
bool hasAssociation(UMLAssociation *assoc)
Determine if this canvasobject has the given association.
Definition: umlcanvasobject.cpp:104
Definition: umlobject.h:72
bool saveDocument(const KUrl &url, const char *format=0)
Saves the document using the given filename and format.
Definition: umldoc.cpp:596
void sigSetStatusbarProgressSteps(int totalSteps)
Set the total range of the progressbar.
Definition: basictypes.h:80
const UMLStereotypeList & stereotypes() const
Returns a list of the stereotypes in this UMLDoc.
Definition: umldoc.cpp:3073
Definition: umlobject.h:60
void setGenerator(CodeGenerator *gen, bool giveWarning=true)
Definition: umlobject.h:62
bool exists() const
QString & remove(int position, int n)
void setOptionState(const Settings::OptionState &options)
Sets the options to be used.
Definition: umlscene.cpp:436
UMLObject * findUMLObject(const UMLObjectList &inList, const QString &inName, UMLObject::ObjectType type, UMLObject *currentObj)
Find the UML object of the given type and name in the passed-in list.
Definition: model_utils.cpp:140
UMLStereotype * findStereotypeById(Uml::ID::Type id)
Find a UMLStereotype by its unique ID.
Definition: umldoc.cpp:803
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString homePath()
bool isProcessingInstruction() const
void sigDiagramCreated(Uml::ID::Type id)
void signalDiagramRenamed(UMLView *view)
Signal a view/diagram has been renamed.
Definition: umldoc.cpp:2954
int removeOperation(UMLOperation *op)
Remove an operation from the Classifier.
Definition: classifier.cpp:372
int size() const
Definition: optionstate.h:142
QDomNode nextSibling() const
This class contains the non-graphic representation of an association.
Definition: association.h:32
QDomElement toElement() const
UMLObject * findObjectById(Uml::ID::Type id)
Find the object of the given ID in the list of contained objects.
Definition: package.cpp:262
void appendPackages(UMLPackageList &packages, bool includeNested=true)
Append all packages from this package (and those from nested packages) to the given UMLPackageList...
Definition: package.cpp:275
void removeStereotype(UMLStereotype *s)
Remove a UMLStereotype from the application.
Definition: umldoc.cpp:937
QString documentation() const
Returns the documentation for the project.
Definition: umldoc.cpp:2802
UMLAssociationList getAssociations()
Return the list of associations for the CanvasObject.
Definition: umlcanvasobject.cpp:337
int indexIn(const QString &str, int offset, CaretMode caretMode) const
void appendClassifiers(UMLClassifierList &classifiers, bool includeNested=true)
Append all classifiers from this package (and those from nested packages) to the given UMLClassifierL...
Definition: package.cpp:298
void slotAutoSave()
Called after a specified time to autosave the document.
Definition: umldoc.cpp:2910
void appendEntities(UMLEntityList &entities, bool includeNested=true)
Append all entities from this package (and those from nested packages) to the given UMLEntityList...
Definition: package.cpp:322
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Creates a UMLObject of the given type.
Definition: object_factory.cpp:192
UMLView * findView(Uml::ID::Type id)
Finds a view (diagram) by the ID given to method.
Definition: umldoc.cpp:749
QString createDiagramName(Uml::DiagramType::Enum type, bool askForName=true)
Creates the name of the given diagram type.
Definition: umldoc.cpp:1274
Definition: docwindow.h:28
void sigSetStatusbarProgress(int stepPosition)
Set the progress position of the progressbar.
Definition: basictypes.h:79
QString number(int n, int base)
Definition: basictypes.h:82
ListViewType type() const
Returns the type this instance represents.
Definition: umllistviewitem.cpp:231
QString printUmlDiagram(int sel)
Return ID string of UML diagram.
Definition: diagramprintpage.cpp:130
void append(const T &value)
void removeDiagramCmd(Uml::ID::Type id)
Deletes a diagram from the current file.
Definition: umldoc.cpp:1502
void setFolder(UMLFolder *folder)
Set the UMLFolder in which this diagram lives.
Definition: umlscene.cpp:198
bool assignNewIDs(UMLObject *obj)
Assigns an already created UMLObject a new ID.
Definition: umldoc.cpp:2680
QString text() const
void activateAllViews()
Activate all the diagrams/views after loading so all their widgets keep their IDs.
Definition: umldoc.cpp:2863
short encoding(QIODevice &file)
Checks the given XMI file if it was saved with correct Unicode encoding set or not.
Definition: umldoc.cpp:1838
bool hasAttribute(const QString &name) const
Definition: basictypes.h:83
void executeCommand(QUndoCommand *cmd)
Execute a command and push it in the stack.
Definition: uml.cpp:3227
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:543
void setAttribute(const QString &name, const QString &value)
bool isUnique(const QString &name)
Returns true if the given name is unique within its scope.
Definition: umldoc.cpp:974
void removeObject(UMLObject *pObject)
Removes an object from this package.
Definition: package.cpp:193
void changeCurrentView(Uml::ID::Type id)
Changes the current view (diagram) to the view with the given ID.
Definition: umldoc.cpp:1446
void setCurrentRoot(Uml::ModelType::Enum rootType)
Set the current root folder.
Definition: umldoc.cpp:1545
bool isEmpty() const
UMLView * findView(Uml::ID::Type id)
Seek a view of the given ID in this folder.
Definition: folder.cpp:152
UMLClassifierList concepts(bool includeNested=true)
Returns a list of the concepts in this UMLDoc.
Definition: umldoc.cpp:2535
bool typeIsContainer(UMLListViewItem::ListViewType type)
Return true if the listview type may act as a container for other objects, i.e.
Definition: model_utils.cpp:993
QString nodeName() const
Definition: umlobject.h:70
void sigObjectCreated(UMLObject *)
bool isEmpty() const
int removeAll(const T &value)
Uml::AssociationType::Enum getAssocType() const
Returns the AssociationType::Enum of the UMLAssociation.
Definition: association.cpp:103
static bool loadFromZArgoFile(QIODevice &file, UMLPackage *parentPkg=0)
Definition: import_argo.cpp:123
virtual QStringList defaultDatatypes()
Return the default datatypes for your language (bool, int etc).
Definition: codegenerator.cpp:878
void removeAssociation(UMLAssociation *assoc, bool doSetModified=true)
Removes an association.
Definition: umldoc.cpp:1073
void setCurrentView(UMLView *view, bool updateTreeView=true)
Puts this view to the top of the viewStack, i.e.
Definition: uml.cpp:2950
void slotDiagramPopupMenu(QWidget *umlview, const QPoint &point)
Make a popup menu for the tabs signalled from tabWidget's contextMenu().
Definition: umldoc.cpp:3004
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
bool removeConstraint(UMLEntityConstraint *constr)
Removes an existing constraint from this UMLEntity.
Definition: entity.cpp:596
virtual void saveToXMI(QDomDocument &doc, QDomElement &root)
Save the XMI representation of this object.
Definition: codegenerator.cpp:258
typedef Iterator
Definition: umlobject.h:74
bool isOpen() const
QString data() const
void removeUMLObject(UMLObject *umlobject)
Removes an UMLObject from the current file.
Definition: umldoc.cpp:1557
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
T & first()
QTreeWidgetItem * currentItem() const
UMLObject * findUMLObjectRaw(const UMLObjectList &inList, const QString &name, UMLObject::ObjectType type, UMLObject *currentObj)
Find the UML object of the given type and name in the passed-in list.
Definition: model_utils.cpp:299
void hide()
void addView(UMLView *view)
Adds a view to the document which represents the document contents.
Definition: umldoc.cpp:161
void removeAllViews()
Call to remove all the views (diagrams) in the current file.
Definition: umldoc.cpp:2485
virtual bool reset()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
void setModified(bool modified=true)
Sets the modified flag for the document after a modifying action on the view connected to the documen...
Definition: umldoc.cpp:2652
void appendClassesAndInterfaces(UMLClassifierList &classifiers, bool includeNested=true)
Append all classes and interfaces from this package (and those from nested packages) to the given UML...
Definition: package.cpp:346
void loadExtensionsFromXMI(QDomNode &node)
Loads umbrello specific extensions from XMI to the UMLDoc.
Definition: umldoc.cpp:2370
void sigDiagramRenamed(Uml::ID::Type t)
QDomProcessingInstruction toProcessingInstruction() const
UMLFolder * folder() const
Return the UMLFolder in which this diagram lives.
Definition: umlscene.cpp:190
Definition: umlobject.h:73
Uml::ID::Type assignNewID(Uml::ID::Type oldID)
Assigns a New ID to an Object, and also logs the assignment to its internal ChangeLog.
Definition: umldoc.cpp:2788
Definition: basictypes.h:81
bool validateXMIHeader(QDomNode &headerNode)
Ensures the XMI file is a valid UML file.
Definition: umldoc.cpp:2174
QDomText createTextNode(const QString &value)
void renameChildUMLObject(UMLObject *o)
Used to rename an operation or attribute of a concept.
Definition: umldoc.cpp:1408
void setupSignals()
Sets up the signals needed by the program for it to work.
Definition: umldoc.cpp:737
int removeEntityAttribute(UMLClassifierListItem *att)
Removes an entityAttribute from the class.
Definition: entity.cpp:372
iterator end()
QString toLower() const
void settingsChanged(Settings::OptionState optionState)
Sets the default settings to the given settings.
Definition: umldoc.cpp:2879
UMLClassifierList classesAndInterfaces(bool includeNested=true)
Returns a list of the classes and interfaces in this UMLDoc.
Definition: umldoc.cpp:2549
void slotMenuSelection(QAction *action)
When a menu selection has been made on the menu that this view created, this method gets called...
Definition: umlscene.cpp:2851
Definition: basictypes.h:78
UMLAssociationList associations()
Returns a list of the associations in this UMLDoc.
Definition: umldoc.cpp:2592
bool isCommonXMIAttribute(const QString &tag)
Return true if the given tag is one of the common XMI attributes, such as: "name" | "visibility" | "i...
Definition: model_utils.cpp:525
void show()
Overrides standard method from QWidget to resize scene when it's shown.
Definition: umlview.cpp:130
Definition: cmd_removeDiagram.h:23
bool contains(const T &value) const
void stop()
virtual void close()
QTreeWidgetItem * parent() const
Definition: umlobject.h:59
Uml::ID::Type get()
Return the last generated unique ID without generating a new one.
Definition: uniqueid.cpp:45
bool isNull() const
Enum fromInt(int item)
Convert a integer item into ModelType representation.
Definition: basictypes.cpp:80
bool newPage()
UMLClassifierList datatypes()
Returns a list of the datatypes in this UMLDoc.
Definition: umldoc.cpp:2575
bool loadUISDiagram(QDomElement &qElement)
Loads the "UISDiagram" tag of Unisys.IntegratePlus.2 generated files.
Definition: umlscene.cpp:3946
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
Definition: umlobject.h:54
UMLEntityList entities(bool includeNested=true)
Returns a list of the entities in this UMLDoc.
Definition: umldoc.cpp:2563
virtual void createDefaultStereotypes()
Create the default stereotypes for your language (constructor, int etc).
Definition: codegenerator.cpp:909
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:782
QString & replace(int position, int n, QChar after)
void activateAfterLoad(bool bUseLog=false)
Activate the view after a load a new file.
Definition: umlscene.cpp:2003
Definition: umlobject.h:58
void print(QPrinter *pPrinter, DiagramPrintPage *selectPage)
Controls the printing of the program.
Definition: umldoc.cpp:2611
void addIDChange(Uml::ID::Type OldID, Uml::ID::Type NewID)
Definition: idchangelog.cpp:88
QDateTime currentDateTime()
QDomNode firstChild() const
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:639
UMLStereotype * findOrCreateStereotype(const QString &name)
Finds or creates a stereotype for the parent object.
Definition: umldoc.cpp:1056
QString toString(Enum item)
Convert ModelType item into QString representation.
Definition: basictypes.cpp:39
Definition: basictypes.h:77
Definition: basictypes.h:44
bool openDocument(const KUrl &url, const char *format=0)
Loads the document by filename and format and emits the updateViews() signal.
Definition: umldoc.cpp:403
Definition: umlobject.h:57
bool isComment() const
This sub-class adds copyInto and clone to the QList base class.
Definition: umlobjectlist.h:26
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Make a new UMLObject according to the given XMI tag.
Definition: object_factory.cpp:355
void setLoading(bool state=true)
Sets loading boolean flag to the value given.
Definition: umldoc.cpp:1253
int count() const
This is the toolbar that is displayed on the right-hand side of the program window.
Definition: worktoolbar.h:40
void removeDiagram(Uml::ID::Type id)
Deletes a diagram from the current file.
Definition: umldoc.cpp:1473
Definition: umlobject.h:50
typedef ConstIterator
void sigDiagramRemoved(Uml::ID::Type id)
void setDocumentation(const QString &doc)
Sets the documentation for the project.
Definition: umldoc.cpp:2812
A popup menu that depending on what type is set to will display a different menu. ...
Definition: listpopupmenu.h:40
This class collects together all of the code documents which form this project, and generates code fo...
Definition: codegenerator.h:67
Definition: basictypes.h:39
int length() const
bool loadDiagramsFromXMI(QDomNode &node)
Loads all diagrams from XMI into the current UMLDoc.
Definition: umldoc.cpp:2434
void sigWriteToStatusBar(const QString &text)
Write text to the status bar.
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
void removeView(UMLView *view, bool enforceOneView=true)
Removes a view from the list of currently connected views.
Definition: umldoc.cpp:199
QString fromLatin1(const char *str, int size)
Uml::ID::Type modelID() const
Return the m_modelID (currently this a fixed value: Umbrello supports only a single document...
Definition: umldoc.cpp:1680
UMLPackageList packages(bool includeNested=true)
Returns a list of the packages in this UMLDoc,.
Definition: umldoc.cpp:2511
void start(int msec)
UMLObject * findObject(const QString &name)
Find the object of the given name in the list of contained objects.
Definition: package.cpp:241
UMLClassifier * findUMLClassifier(const QString &name)
Used to find a UMLClassifier by its name.
Definition: umldoc.cpp:889
This is a page on the print dialog to select what diagram(s) you wish to print.
Definition: diagramprintpage.h:37
UMLPackage * rootPackage(UMLObject *obj)
Get the root folder of the given UMLObject.
Definition: model_utils.cpp:316
Definition: umlobject.h:66
void clearUndoStack()
Removes all entries from the UndoStack and RedoStack and disables the undo and redo actions...
Definition: uml.cpp:3177
QString tagName() const
UMLStereotype * findStereotype(const QString &name)
Finds a UMLStereotype by its name.
Definition: umldoc.cpp:1041
bool loadUMLObjectsFromXMI(QDomElement &element)
Loads all UML objects from XMI into the current UMLDoc.
Definition: umldoc.cpp:2197
bool saveModified()
"save modified" - Asks the user for saving if the document is modified.
Definition: umldoc.cpp:270
virtual void setID(Uml::ID::Type NewID)
Assigns a new Id to the object.
Definition: umlobject.cpp:158
QDomElement createElement(const QString &tagName)
void addStereotype(UMLStereotype *s)
Add a UMLStereotype to the application.
Definition: umldoc.cpp:926
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
UMLObject * findUMLObjectRaw(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Used to find a UMLObject by its type and raw name.
Definition: umldoc.cpp:857
virtual IDChangeLog * changeLog()
Read property of IDChangeLog* m_pChangeLog.
Definition: umldoc.cpp:2752
QObject * parent() const
Uml::ModelType::Enum guessContainer(UMLObject *o)
Try to guess the correct container folder type of an UMLObject.
Definition: model_utils.cpp:594
QString readAll()
void sigDiagramChanged(Uml::DiagramType::Enum)
void beginPaste()
Opens a Paste session, deletes the old ChangeLog and creates an empty one.
Definition: umldoc.cpp:2761
void appendViews(UMLViewList &viewList, bool includeNested=true)
Append the views in this folder to the given diagram list.
Definition: folder.cpp:106
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Used to find a UMLObject by its type and name.
Definition: umldoc.cpp:825
iterator begin()
void print(QPrinter *pPrinter, QPainter &pPainter)
Contains the implementation for printing functionality.
Definition: umlscene.cpp:494
UMLPackage * loadFromMDL(QFile &file, UMLPackage *parentPkg)
Parse a file into the PetalNode internal tree representation and then create Umbrello objects by trav...
Definition: import_rose.cpp:394
Definition: umlobject.h:55
UMLObjectList containedObjects()
Returns the list of objects contained in this package.
Definition: package.cpp:230
Definition: umlobject.h:69
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
virtual bool loadFromXMI(QIODevice &file, short encode=ENC_UNKNOWN)
Load a given XMI model from a file.
Definition: umldoc.cpp:1940
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Return the predefined root folder of the given type.
Definition: umldoc.cpp:2721
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
void signalUMLObjectCreated(UMLObject *o)
Signal that a UMLObject has been created.
Definition: umldoc.cpp:1649
void setSingleShot(bool singleShot)
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves to the XMI element.
Definition: stereotype.cpp:98
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.