rocs/RocsCore
TestGraphStructure.cpp
Go to the documentation of this file.
48 DataStructurePtr ds = DocumentManager::self().activeDocument()->addDataStructure("AddDeleteTest");
69 DataStructurePtr ds = DocumentManager::self().activeDocument()->addDataStructure("AddDeleteTest");
111 DataStructurePtr ds = DocumentManager::self().activeDocument()->addDataStructure("AddDeleteTest");
140 DataStructurePtr ds = DocumentManager::self().activeDocument()->addDataStructure("AddDeleteTest");
184 DataStructurePtr ds = DocumentManager::self().activeDocument()->addDataStructure("AddDeleteTest");
187 QVERIFY2(ds->document()->pointerTypeList().size() == 1, "ERROR: no default pointer type created");
196 QVERIFY2(ds->document()->pointerTypeList().size() == 2, "ERROR: pointer types were not created");
230 boost::static_pointer_cast<Rocs::GraphStructure>(ds)->setGraphType(Rocs::GraphStructure::Multigraph);
243 QVERIFY2(DocumentManager::self().activeDocument()->dataStructures().count() == 1, "ERROR: DataStructure not loaded");
245 Rocs::GraphStructure::GRAPH_TYPE graphType = boost::static_pointer_cast<Rocs::GraphStructure>(ds)->graphType();
246 QVERIFY2(graphType == Rocs::GraphStructure::Multigraph, "ERROR: graph type not loaded correctly");
Definition: GraphStructure.h:29
iterator remove(iterator pos)
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
static DataStructureBackendManager & self()
Returns self reference to backend manager.
Definition: DataStructureBackendManager.cpp:233
int size() const
void append(const T &value)
DataStructurePtr addDataStructure(const QString &name=QString())
Add data structure to graph document with name name.
Definition: Document.cpp:333
DataStructurePtr activeDataStructure() const
Definition: Document.cpp:431
void changeDocument(Document *document)
Change active document to be document.
Definition: DocumentManager.cpp:143
Definition: Document.h:41
Definition: TestGraphStructure.h:30
void setBackend(const QString &pluginIdentifier)
Change the active backend.
Definition: DataStructureBackendManager.cpp:240
QList< DataStructurePtr > & dataStructures() const
Definition: Document.cpp:227
iterator insert(const Key &key, const T &value)
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.