• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

rocs/RocsCore

  • sources
  • kde-4.12
  • kdeedu
  • rocs
  • RocsCore
DataStructureBackendManager.h
Go to the documentation of this file.
1 /*
2  This file is part of Rocs.
3  Copyright 2010 Wagner Reck <wagner.reck@gmail.com>
4  Copyright 2012 Andreas Cord-Landwehr <cola@uni-paderborn.de>
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License as
8  published by the Free Software Foundation; either version 2 of
9  the License, or (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef DATASTRUCTUREBACKENDMANAGER_H
21 #define DATASTRUCTUREBACKENDMANAGER_H
22 
23 #include <QObject>
24 #include "RocsCoreExport.h"
25 #include "CoreTypes.h"
26 
27 class QLayout;
28 class QGraphicsItem;
29 class KPluginInfo;
30 class DataStructure;
31 class Document;
32 class Data;
33 class Pointer;
34 class DataStructureBackendManagerPrivate;
35 class DataStructureBackendInterface;
36 
37 
43 class ROCSLIB_EXPORT DataStructureBackendManager
44  : public QObject
45 {
46  Q_OBJECT
47 
48 public:
55  static DataStructureBackendManager & self();
56 
62  const QStringList backends() const;
63 
70  KPluginInfo backendInfo(DataStructureBackendInterface *plugin) const;
71 
78  DataStructureBackendInterface * backend(const QString &internalName) const;
79 
91  DataStructurePtr createDataStructure(Document *parent, const QString &pluginName=QString());
92 
101  DataStructurePtr createDataStructure(const DataStructurePtr dataStructure, Document *parent);
102 
109  DataStructureBackendInterface * activeBackend() const;
110 
118  QGraphicsItem * dataItem(DataPtr data) const;
119 
127  QGraphicsItem * pointerItem(PointerPtr pointer) const;
128 
133  QLayout * dataExtraProperties(DataPtr data, QWidget *parent) const;
134 
139  QLayout * pointerExtraProperties(PointerPtr pointer, QWidget *parent) const;
140 
145  QLayout * dataStructureExtraProperties(DataStructurePtr dataStructure, QWidget *parent) const;
146 
147 public Q_SLOTS:
154  void setBackend(const QString& pluginIdentifier);
155 
156 Q_SIGNALS:
160  void backendChanged(const QString& pluginName);
161 
162 private:
167  DataStructureBackendManager();
168 
172  ~DataStructureBackendManager();
173 
174  DataStructureBackendManager(const DataStructureBackendManager&);
175  void operator=(const DataStructureBackendManager&);
176 
177  const QScopedPointer<DataStructureBackendManagerPrivate> d;
178 };
179 
180 #endif
DataStructure
Definition: DataStructure.h:43
DataStructurePtr
boost::shared_ptr< DataStructure > DataStructurePtr
Definition: CoreTypes.h:38
CoreTypes.h
RocsCoreExport.h
QObject
PointerPtr
boost::shared_ptr< Pointer > PointerPtr
Definition: CoreTypes.h:35
Document
Definition: Document.h:41
ROCSLIB_EXPORT
#define ROCSLIB_EXPORT
Definition: RocsCoreExport.h:32
DataPtr
boost::shared_ptr< Data > DataPtr
Definition: CoreTypes.h:34
Pointer
Pointers are connections between two nodes in the data structure.
Definition: Pointer.h:48
DataStructureBackendInterface
Definition: DataStructureBackendInterface.h:42
Data
Definition: Data.h:40
DataStructureBackendManager
This singelton class provides access to all available data structure backends.
Definition: DataStructureBackendManager.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/RocsCore

Skip menu "rocs/RocsCore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal