mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-01 02:29:58 +02:00
revert some change in comit 2675:
Qt use enum for use flags: Qt is a good exemple to make code git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2686 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -23,13 +23,6 @@
|
||||
class Diagram;
|
||||
class ElementTextItem;
|
||||
|
||||
// this define is use to know the kind of element and
|
||||
// to use flag for element provider class
|
||||
#define SIMPLE 1
|
||||
#define REPORT 2
|
||||
#define MASTER 4
|
||||
#define SLAVE 8
|
||||
#define BORNIER 16
|
||||
|
||||
/**
|
||||
This is the base class for electrical elements.
|
||||
@@ -49,6 +42,15 @@ class Element : public QetGraphicsItem {
|
||||
// attributes
|
||||
public:
|
||||
enum { Type = UserType + 1000 };
|
||||
// this enum is use to know the kind of element and
|
||||
// to use flag for element provider class
|
||||
enum {Simple = 1,
|
||||
Report = 2,
|
||||
Master = 4,
|
||||
SlaveNO = 8,
|
||||
SlaveNC = 16,
|
||||
AllSlave = 24,
|
||||
Bornier = 32};
|
||||
|
||||
protected:
|
||||
QList <Element *> connected_elements;
|
||||
|
||||
Reference in New Issue
Block a user