src/ldtypes.h

changeset 617
f5059d144438
parent 609
a8dc74a809c6
child 618
de0d51349f6c
equal deleted inserted replaced
616:92170185dbb6 617:f5059d144438
167 167
168 // Returns a default-constructed LDObject by the given type 168 // Returns a default-constructed LDObject by the given type
169 static LDObject* getDefault (const LDObject::Type type); 169 static LDObject* getDefault (const LDObject::Type type);
170 170
171 // TODO: move this to LDDocument? 171 // TODO: move this to LDDocument?
172 static void moveObjects (QList<LDObject*> objs, const bool up); 172 static void moveObjects (LDObjectList objs, const bool up);
173 173
174 // Get a description of a list of LDObjects 174 // Get a description of a list of LDObjects
175 static QString describeObjects (const QList<LDObject*>& objs); 175 static QString describeObjects (const LDObjectList& objs);
176 static LDObject* fromID (int id); 176 static LDObject* fromID (int id);
177 177
178 // TODO: make these private! 178 // TODO: make these private!
179 // OpenGL list for this object 179 // OpenGL list for this object
180 uint glLists[4]; 180 uint glLists[4];
222 222
223 protected: 223 protected:
224 LDSharedVertex (const Vertex& a) : m_data (a) {} 224 LDSharedVertex (const Vertex& a) : m_data (a) {}
225 225
226 private: 226 private:
227 QList<LDObject*> m_refs; 227 LDObjectList m_refs;
228 Vertex m_data; 228 Vertex m_data;
229 }; 229 };
230 230
231 // ============================================================================= 231 // =============================================================================
232 // LDMatrixObject 232 // LDMatrixObject
413 setLinkPointer (this); 413 setLinkPointer (this);
414 } 414 }
415 415
416 // Inlines this subfile. Note that return type is an array of heap-allocated 416 // Inlines this subfile. Note that return type is an array of heap-allocated
417 // LDObject copies, they must be deleted manually. 417 // LDObject copies, they must be deleted manually.
418 QList<LDObject*> inlineContents (InlineFlags flags); 418 LDObjectList inlineContents (InlineFlags flags);
419 419
420 protected: 420 protected:
421 ~LDSubfile(); 421 ~LDSubfile();
422 }; 422 };
423 423

mercurial