ldtypes.h

changeset 96
2f175b3d8211
parent 91
b4dda6348e7e
child 102
cacd4681ccb4
equal deleted inserted replaced
95:0a8ad4e3e7c1 96:2f175b3d8211
36 class QTreeWidgetItem; 36 class QTreeWidgetItem;
37 37
38 // ============================================================================= 38 // =============================================================================
39 // LDObjectType_e 39 // LDObjectType_e
40 // 40 //
41 // Object type codes 41 // Object type codes. Codes are sorted in order of significance.
42 // ============================================================================= 42 // =============================================================================
43 enum LDObjectType_e { 43 enum LDObjectType_e {
44 OBJ_Unidentified, // Object is an uninitialized (LDObject) (SHOULD NEVER HAPPEN) 44 OBJ_Subfile, // Object represents a sub-file reference
45 OBJ_Gibberish, // Object is the result of failed parsing (LDGibberish) 45 OBJ_Quad, // Object represents a quadrilateral
46 OBJ_Empty, // Object represents an empty line (LDEmpty) 46 OBJ_Triangle, // Object represents a triangle
47 OBJ_Comment, // Object represents a comment (LDComment, code: 0) 47 OBJ_Line, // Object represents a line
48 OBJ_Subfile, // Object represents a sub-file reference (LDSubfile, code: 1) 48 OBJ_CondLine, // Object represents a conditional line
49 OBJ_Line, // Object represents a line (LDLine, code: 2) 49 OBJ_Vertex, // Object is a vertex, LDForge extension object
50 OBJ_Triangle, // Object represents a triangle (LDTriangle, code: 3)
51 OBJ_Quad, // Object represents a quadrilateral (LDQuad, code: 4)
52 OBJ_CondLine, // Object represents a conditional line (LDCondLine, code: 5)
53 OBJ_BFC, // Object represents a BFC statement 50 OBJ_BFC, // Object represents a BFC statement
54 OBJ_Vertex // Object is a vertex, LDForge extension object (LDVertex) 51 OBJ_Comment, // Object represents a comment
52 OBJ_Gibberish, // Object is the result of failed parsing
53 OBJ_Empty, // Object represents an empty line
54 OBJ_Unidentified, // Object is an uninitialized (SHOULD NEVER HAPPEN)
55 NUM_ObjectTypes // Amount of object types
55 }; 56 };
56 57
57 // ============================================================================= 58 // =============================================================================
58 // LDObject 59 // LDObject
59 // 60 //
97 98
98 // Swap this object with another. 99 // Swap this object with another.
99 void swap (LDObject* other); 100 void swap (LDObject* other);
100 101
101 static void moveObjects (std::vector<LDObject*> objs, const bool bUp); 102 static void moveObjects (std::vector<LDObject*> objs, const bool bUp);
103 static str objectListContents (std::vector<LDObject*>& objs);
102 104
103 QTreeWidgetItem* qObjListEntry; 105 QTreeWidgetItem* qObjListEntry;
104 }; 106 };
105 107
106 // ============================================================================= 108 // =============================================================================

mercurial