13:3955ff2a7d72 | 14:6d9d8efae2f8 |
---|---|
6 | 6 |
7 #define IMPLEMENT_LDTYPE(N) \ | 7 #define IMPLEMENT_LDTYPE(N) \ |
8 LD##N (); \ | 8 LD##N (); \ |
9 virtual LDObjectType_e getType () const { \ | 9 virtual LDObjectType_e getType () const { \ |
10 return OBJ_##N; \ | 10 return OBJ_##N; \ |
11 } | 11 } \ |
12 virtual str getContents (); | |
13 | |
14 class QTreeWidgetItem; | |
12 | 15 |
13 // ============================================================================= | 16 // ============================================================================= |
14 // LDObjectType_e | 17 // LDObjectType_e |
15 // | 18 // |
16 // Object type codes | 19 // Object type codes |
46 | 49 |
47 // Type enumerator of this object | 50 // Type enumerator of this object |
48 virtual LDObjectType_e getType () const { | 51 virtual LDObjectType_e getType () const { |
49 return OBJ_Unidentified; | 52 return OBJ_Unidentified; |
50 }; | 53 }; |
54 | |
55 // A string that represents this line | |
56 virtual str getContents () { | |
57 return ""; | |
58 } | |
59 | |
60 void commonInit (); | |
61 | |
62 QTreeWidgetItem* qObjListEntry; | |
51 }; | 63 }; |
52 | 64 |
53 // ============================================================================= | 65 // ============================================================================= |
54 // LDGibberish | 66 // LDGibberish |
55 // | 67 // |
63 IMPLEMENT_LDTYPE (Gibberish) | 75 IMPLEMENT_LDTYPE (Gibberish) |
64 | 76 |
65 LDGibberish (str _zContent, str _zReason); | 77 LDGibberish (str _zContent, str _zReason); |
66 | 78 |
67 // Content of this unknown line | 79 // Content of this unknown line |
68 str zContent; | 80 str zContents; |
69 | 81 |
70 // Why is this gibberish? | 82 // Why is this gibberish? |
71 str zReason; | 83 str zReason; |
72 }; | 84 }; |
73 | 85 |