mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-04 21:29:58 +02:00
initial work to move everything into the propertiesinterface which is related to it
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#define CUSTOM_ELEMENT_PART_H
|
||||
|
||||
#include "qet.h"
|
||||
#include "propertiesinterface.h"
|
||||
|
||||
class CustomElement;
|
||||
class ElementPrimitiveDecorator;
|
||||
@@ -35,7 +36,7 @@ class QGraphicsSceneMouseEvent;
|
||||
is no point for those classes to store their visual representation with
|
||||
anything more complex than a QImage.
|
||||
*/
|
||||
class CustomElementPart {
|
||||
class CustomElementPart: public PropertiesInterface {
|
||||
// constructors, destructor
|
||||
public:
|
||||
/**
|
||||
@@ -55,14 +56,6 @@ class CustomElementPart {
|
||||
|
||||
// methods
|
||||
public:
|
||||
/**
|
||||
Load the primitive from an XML element that describes it
|
||||
*/
|
||||
virtual void fromXml(const QDomElement &) = 0;
|
||||
/**
|
||||
Export the primitive as an XML element
|
||||
*/
|
||||
virtual const QDomElement toXml(QDomDocument &) const = 0;
|
||||
/**
|
||||
Set a specific property of the primitive
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user