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:
blacksun
2013-12-20 20:30:55 +00:00
parent fa91cead3f
commit 7ff6ac4410
18 changed files with 326 additions and 30 deletions

View File

@@ -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);