mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-01 02:29:58 +02:00
add pattern factory/singletton to create different type of element
add two news class for element type : simple and folio report add an empty tab for the element report in the element properties widget git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2665 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -28,6 +28,15 @@ class ElementTextItem;
|
||||
class Element : public QetGraphicsItem {
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum linkerType{
|
||||
simple = 1,
|
||||
report = 2,
|
||||
master = 4,
|
||||
slave = 8,
|
||||
bornier = 16
|
||||
};
|
||||
|
||||
// constructors, destructor
|
||||
public:
|
||||
@@ -78,6 +87,8 @@ class Element : public QetGraphicsItem {
|
||||
virtual QString typeId() const = 0;
|
||||
/// @return the human name for this element
|
||||
virtual QString name() const = 0;
|
||||
/// @return the linkable type
|
||||
virtual int linkType() const = 0;
|
||||
|
||||
virtual bool isHighlighted() const;
|
||||
virtual void setHighlighted(bool);
|
||||
|
||||
Reference in New Issue
Block a user