rocs/RocsCore
DataStructureBackendManager.cpp
Go to the documentation of this file.
67 qDeleteAll<QHash<QString, DataStructureBackendInterface*>::iterator>(_pluginList.begin(), _pluginList.end());
79 DataStructurePtr convertDataStructureToActiveBackend(const DataStructurePtr dataStructure, Document* parent)
140 // this is the case when no kbuildsycoa4 run is performed and hence no trader cache was generated
176 kDebug() << "set up backend " << service->property(QLatin1String("X-Rocs-DataStructureIdentifier")).toString();
186 DataStructureBackendInterface *plugin = factory->create<DataStructureBackendInterface>(_parent);
190 QString identifier = info->property(QLatin1String("X-Rocs-DataStructureIdentifier")).toString();
193 kWarning() << "No data structure backend identifier exists for plugin " << identifier << ", using its name.";
255 DataStructurePtr DataStructureBackendManager::createDataStructure(const DataStructurePtr dataStructure, Document *parent)
260 DataStructurePtr DataStructureBackendManager::createDataStructure(Document *parent, const QString &pluginName)
265 KPluginInfo DataStructureBackendManager::backendInfo(DataStructureBackendInterface *plugin) const
280 DataStructureBackendInterface * DataStructureBackendManager::backend(const QString &internalName) const
301 QLayout * DataStructureBackendManager::pointerExtraProperties(PointerPtr pointer, QWidget *parent) const
309 QLayout * DataStructureBackendManager::dataStructureExtraProperties(DataStructurePtr dataStructure, QWidget *parent) const
const QStringList backends() const
Returns list of loaded backends.
Definition: DataStructureBackendManager.cpp:270
DataStructureBackendInterface * activeBackend() const
Returns the currently active data structure backend.
Definition: DataStructureBackendManager.cpp:275
QGraphicsItem * pointerItem(PointerPtr pointer) const
Generates graphics item for represenation of pointer at graph scene based on data structure backend o...
Definition: DataStructureBackendManager.cpp:293
static DataStructureBackendManager & self()
Returns self reference to backend manager.
Definition: DataStructureBackendManager.cpp:233
QGraphicsItem * dataItem(DataPtr data) const
Generates graphics item for represenation of data at graph scene based on data structure backend of t...
Definition: DataStructureBackendManager.cpp:285
QString & insert(int position, QChar ch)
const_iterator constEnd() const
bool isEmpty() const
virtual DataStructurePtr createDataStructure(Document *parent)=0
QLayout * dataStructureExtraProperties(DataStructurePtr dataStructure, QWidget *parent) const
Create widgets for backend specific data structure properties.
Definition: DataStructureBackendManager.cpp:309
const T value(const Key &key) const
Definition: Document.h:41
const_iterator constBegin() const
void setBackend(const QString &pluginIdentifier)
Change the active backend.
Definition: DataStructureBackendManager.cpp:240
void backendChanged(const QString &pluginName)
Emitted if the active backend is changed.
QList< T > values() const
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
QString fromLatin1(const char *str, int size)
QLayout * dataExtraProperties(DataPtr data, QWidget *parent) const
Create widgets for backend specific data properties.
Definition: DataStructureBackendManager.cpp:317
QLayout * pointerExtraProperties(PointerPtr pointer, QWidget *parent) const
Create widgets for backend specific pointer properties.
Definition: DataStructureBackendManager.cpp:301
This singelton class provides access to all available data structure backends.
Definition: DataStructureBackendManager.h:43
KPluginInfo backendInfo(DataStructureBackendInterface *plugin) const
Returns KPluginInfo object representing the plugin information for plugin.
Definition: DataStructureBackendManager.cpp:265
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.