mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-15 04:49:58 +02:00
rebase XMLProperties_New (c0d9bf9) to master
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#define CUSTOM_ELEMENT_PART_H
|
||||
|
||||
#include "qet.h"
|
||||
#include "propertiesinterface.h"
|
||||
|
||||
class CustomElement;
|
||||
class ElementPrimitiveDecorator;
|
||||
@@ -37,7 +38,7 @@ class QGraphicsSceneMouseEvent;
|
||||
there 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:
|
||||
/**
|
||||
@@ -61,14 +62,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