rocs/RocsCore
TestLoadSave.cpp
Go to the documentation of this file.
72 QVERIFY2(DocumentManager::self().activeDocument()->dataStructures().count() == 1, "ERROR: DataStructure not loaded");
163 DocumentManager::self().openDocument(KUrl::fromLocalFile("TestGraphFiles/multipleLayerGraph.graph"));
167 QVERIFY2(!document->activeDataStructure()->dataList(0).first()->property("name").toString().isEmpty(), "property must be present");
168 QVERIFY2(!document->activeDataStructure()->dataList(0).first()->property("target").toString().isEmpty(), "property must be present");
int registerDataType(const QString &name, int identifier=0)
Register new type for data elements.
Definition: Document.cpp:124
Definition: TestLoadSave.h:29
Document * activeDocument() const
Returns the currently active document, or 0 if there document list is empty.
Definition: DocumentManager.cpp:96
const T & at(int i) const
A "Project" object represents the compilation of file pointers that form a Rocs project.
Definition: Project.h:47
int registerPointerType(const QString &name, int identifier=0)
Register new type for pointers.
Definition: Document.cpp:142
DataStructurePtr activeDataStructure() const
Definition: Document.cpp:431
bool writeProjectFile(const QString &fileUrl=QString())
Save the project to its current file if empty or no filename is given.
Definition: Project.cpp:315
void changeDocument(Document *document)
Change active document to be document.
Definition: DocumentManager.cpp:143
Definition: Document.h:41
QList< DataStructurePtr > & dataStructures() const
Definition: Document.cpp:227
QList< KUrl > graphFiles() const
Get list of all graph files of the project that have a path.
Definition: Project.cpp:244
QList< int > pointerTypeList() const
Getter for all registered pointer types.
Definition: Document.cpp:165
QList< KUrl > codeFiles() const
Get list of all code files of the project that have a path.
Definition: Project.cpp:184
iterator insert(const Key &key, const T &value)
int compare(const QString &other) const
void addDocument(Document *document)
Add document to document list and set this document as active document.
Definition: DocumentManager.cpp:106
void saveAs(const QString &fileUrl)
Save graph document under the given fileUrl.
Definition: Document.cpp:381
Document * openDocument(const KUrl &documentUrl)
Loads graph document specified by documentUrl and adds document to document list. ...
Definition: DocumentManager.cpp:245
void removeDocument(Document *document)
Remove document from document list.
Definition: DocumentManager.cpp:173
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 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:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.