65 // which is a token of the object's type. The object can be casted into |
65 // which is a token of the object's type. The object can be casted into |
66 // sub-classes based on this enumerator. |
66 // sub-classes based on this enumerator. |
67 // ============================================================================= |
67 // ============================================================================= |
68 class LDObject |
68 class LDObject |
69 { |
69 { |
70 PROPERTY (public, bool, Hidden, BOOL_OPS, STOCK_WRITE) |
70 PROPERTY (public, bool, Hidden, BOOL_OPS, STOCK_WRITE) |
71 PROPERTY (public, bool, Selected, BOOL_OPS, STOCK_WRITE) |
71 PROPERTY (public, bool, Selected, BOOL_OPS, STOCK_WRITE) |
72 PROPERTY (public, LDObject*, Parent, NO_OPS, STOCK_WRITE) |
72 PROPERTY (public, LDObject*, Parent, NO_OPS, STOCK_WRITE) |
73 PROPERTY (public, LDDocument*, File, NO_OPS, STOCK_WRITE) // TODO: rename~ |
73 PROPERTY (public, LDDocument*, File, NO_OPS, STOCK_WRITE) // TODO: rename~ |
74 PROPERTY (private, int, ID, NUM_OPS, STOCK_WRITE) |
74 PROPERTY (private, int, ID, NUM_OPS, STOCK_WRITE) |
75 PROPERTY (public, int, Color, NUM_OPS, CUSTOM_WRITE) |
75 PROPERTY (public, int, Color, NUM_OPS, CUSTOM_WRITE) |
76 PROPERTY (public, bool, GLInit, BOOL_OPS, STOCK_WRITE) |
76 PROPERTY (public, bool, GLInit, BOOL_OPS, STOCK_WRITE) |
77 |
77 |
78 public: |
78 public: |
79 // Object type codes. Codes are sorted in order of significance. |
79 // Object type codes. Codes are sorted in order of significance. |
80 enum Type |
80 enum Type |
81 { |
81 { |