rocs/RocsCore
Document.cpp
Go to the documentation of this file.
268 QtConcurrent::blockingMap(structure->pointers(pointerType->identifier()), PointerGraphicsUpdated());
367 connect(dataStructure.get(), SIGNAL(dataPositionChanged(QPointF)), this, SLOT(updateSceneRect(QPointF)));
418 for (QMap<int,DataTypePtr>::const_iterator iter= d->_dataTypes.constBegin(); iter != d->_dataTypes.constEnd(); ++iter) {
424 for (QMap<int,PointerTypePtr>::const_iterator iter= d->_pointerTypes.constBegin(); iter != d->_pointerTypes.constEnd(); ++iter) {
443 DataStructureBackendInterface * plugin = DataStructureBackendManager::self().backend(pluginIdentifier);
bool removeDataType(int dataType)
removes this data type and all data elements of this type
Definition: Document.cpp:175
int registerDataType(const QString &name, int identifier=0)
Register new type for data elements.
Definition: Document.cpp:124
DataStructureBackendInterface * activeBackend() const
Returns the currently active data structure backend.
Definition: DataStructureBackendManager.cpp:275
iterator remove(iterator pos)
void sceneRectChanged(const QRectF &)
void dataTypeCreated(int identifier)
void changeBackend()
Change data structure backend of this document to currently active backend.
Definition: Document.cpp:101
int length() const
const T & at(int i) const
void updateSceneRect(const QPointF &position)
Updates scene rect according to given position.
Definition: Document.cpp:277
static DataStructureBackendManager & self()
Returns self reference to backend manager.
Definition: DataStructureBackendManager.cpp:233
Definition: ConcurrentHelpClasses.h:63
void reset(T *other)
void saveDocumentAs(Document *document, const KUrl &documentUrl)
Save graph document document at url documentUrl.
Definition: DocumentManager.cpp:263
int indexIn(const QString &str, int offset, CaretMode caretMode) const
int count(const T &value) const
qreal x() const
qreal y() const
void append(const T &value)
void setBackend(const QString &pluginIdentifier)
Set data structure plugin for this document.
Definition: Document.cpp:441
virtual void cleanUpBeforeConvert()
clear data that only is useful for a type of data structure and that cannot be converted to others fr...
Definition: Document.cpp:308
bool isEmpty() const
DataStructurePtr addDataStructure(const QString &name=QString())
Add data structure to graph document with name name.
Definition: Document.cpp:333
int registerPointerType(const QString &name, int identifier=0)
Register new type for pointers.
Definition: Document.cpp:142
DataStructurePtr activeDataStructure() const
Definition: Document.cpp:431
void pointerTypeCreated(int identifier)
void setActiveDataStructure(int index)
Sets the active data structure of graph document with index index in the data structure list...
Definition: Document.cpp:315
void dataStructureListChanged()
static DataTypePtr create(Document *document, int identifier)
Create data type objects.
Definition: DataType.cpp:63
This class provides the script backend for script executions.
Definition: QtScriptBackend.h:40
bool contains(const T &value) const
void blockingMap(Sequence &sequence, MapFunction function)
void activeDataStructureChanged(DataStructurePtr g)
QList< DataStructurePtr > & dataStructures() const
Definition: Document.cpp:227
void pointerTypeRemoved(int identifier)
QList< int > pointerTypeList() const
Getter for all registered pointer types.
Definition: Document.cpp:165
static PointerTypePtr create(Document *document, int identifier)
Create pointer type objects.
Definition: PointerType.cpp:62
T & last()
void dataStructureCreated(DataStructurePtr g)
QList< int > dataTypeList() const
Getter for all registered data types.
Definition: Document.cpp:160
DataStructurePtr createDataStructure(Document *parent, const QString &pluginName=QString())
TODO change this method: it is not clear how the parent document is registered; the creation function...
Definition: DataStructureBackendManager.cpp:260
void nameChanged(QString name)
bool removePointerType(int pointerType)
Removes this pointer type and all data elements of this type.
Definition: Document.cpp:186
Definition: ConcurrentHelpClasses.h:71
static bool isValidIdentifier(const QString &identifier)
Evaluates given string and returns true if identifier is valid, otherwise returns false...
Definition: Document.cpp:232
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void dataTypeRemoved(int identifier)
QSvgRenderer * registerSharedRenderer(const QString &iconPackage)
Definition: DocumentManager.cpp:293
void saveAs(const QString &fileUrl)
Save graph document under the given fileUrl.
Definition: Document.cpp:381
DataStructureBackendInterface * backend(const QString &internalName) const
Returns data structure backend identified by its identifier internalName.
Definition: DataStructureBackendManager.cpp:280
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.