• 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
DataStructureBackendInterface.h
Go to the documentation of this file.
1 /*
2  This file is part of Rocs.
3  Copyright 2011 Tomaz Canabrava <tomaz.canabrava@gmail.com>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License as
7  published by the Free Software Foundation; either version 2 of
8  the License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 
20 #ifndef DATASTRUCTUREBACKENDINTERFACE_H
21 #define DATASTRUCTUREBACKENDINTERFACE_H
22 
23 #include <kplugininfo.h>
24 
25 //Qt classes
26 class QLayout;
27 class QGraphicsItem;
28 
29 //Rocs Classes
30 class DataStructure;
31 class Data;
32 class Pointer;
33 class Document;
34 
35 // KClasses
36 class KComponentData;
37 
38 #include "RocsCoreExport.h"
39 #include "CoreTypes.h"
40 
41 
42 class ROCSLIB_EXPORT DataStructureBackendInterface : public QObject
43 {
44  Q_OBJECT
45 
46 public:
47  DataStructureBackendInterface(const KComponentData& instance, QObject* parent);
48 
49  virtual ~DataStructureBackendInterface();
50  virtual DataStructurePtr createDataStructure(Document * parent) = 0;
51  virtual DataStructurePtr convertToDataStructure(DataStructurePtr, Document* parent) = 0;
52 
56  virtual bool canConvertFrom(Document* doc) const = 0;
57 
60  QString name();
61 
67  QString internalName();
68 
69  virtual QGraphicsItem * dataItem(DataPtr data) const = 0;
70  virtual QGraphicsItem * pointerItem(PointerPtr pointer) const = 0;
71 
72  virtual QLayout* dataExtraProperties(DataPtr data, QWidget* widget) const;
73  virtual QLayout* pointerExtraProperties(PointerPtr pointer, QWidget* widget)const;
74  virtual QLayout* dataStructureExtraProperties(DataStructurePtr dataStructure, QWidget* widget)const;
75 
76 };
77 
78 
79 #endif // DataStructurePLUGININTERFACE_H
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
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