70 PROPERTY (public, bool, isSelected, setSelected, STOCK_WRITE) |
70 PROPERTY (public, bool, isSelected, setSelected, STOCK_WRITE) |
71 PROPERTY (public, LDObject*, parent, setParent, STOCK_WRITE) |
71 PROPERTY (public, LDObject*, parent, setParent, STOCK_WRITE) |
72 PROPERTY (public, LDDocument*, document, setDocument, STOCK_WRITE) |
72 PROPERTY (public, LDDocument*, document, setDocument, STOCK_WRITE) |
73 PROPERTY (private, int, id, setID, STOCK_WRITE) |
73 PROPERTY (private, int, id, setID, STOCK_WRITE) |
74 PROPERTY (public, int, color, setColor, CUSTOM_WRITE) |
74 PROPERTY (public, int, color, setColor, CUSTOM_WRITE) |
75 PROPERTY (public, bool, isGLInit, setGLInit, STOCK_WRITE) |
|
76 PROPERTY (private, QColor, randomColor, setRandomColor, STOCK_WRITE) |
75 PROPERTY (private, QColor, randomColor, setRandomColor, STOCK_WRITE) |
77 |
76 |
78 public: |
77 public: |
79 // Object type codes. |
78 // Object type codes. |
80 enum Type |
79 enum Type |
174 // Get a description of a list of LDObjects |
173 // Get a description of a list of LDObjects |
175 static String describeObjects (const LDObjectList& objs); |
174 static String describeObjects (const LDObjectList& objs); |
176 static LDObject* fromID (int id); |
175 static LDObject* fromID (int id); |
177 LDPolygon* getPolygon(); |
176 LDPolygon* getPolygon(); |
178 |
177 |
179 // TODO: make these private! |
178 // TODO: make this private! |
180 // OpenGL list for this object |
|
181 uint glLists[4]; |
|
182 |
|
183 // Object list entry for this object |
|
184 QListWidgetItem* qObjListEntry; |
179 QListWidgetItem* qObjListEntry; |
185 |
180 |
186 protected: |
181 protected: |
187 // LDObjects are to be deleted with the deleteSelf() method, not with |
182 // LDObjects are to be deleted with the deleteSelf() method, not with |
188 // operator delete. This is because it seems virtual functions cannot |
183 // operator delete. This is because it seems virtual functions cannot |