98 QString getDisplayName(); |
98 QString getDisplayName(); |
99 bool hasUnsavedChanges() const; |
99 bool hasUnsavedChanges() const; |
100 EditHistory* history() const; |
100 EditHistory* history() const; |
101 void initializeCachedData(); |
101 void initializeCachedData(); |
102 void inlineContents(Model& model, bool deep, bool renderinline); |
102 void inlineContents(Model& model, bool deep, bool renderinline); |
103 QList<LDPolygon> inlinePolygons(); |
103 QVector<LDPolygon> inlinePolygons(); |
104 const QSet<Vertex>& inlineVertices(); |
104 const QSet<Vertex>& inlineVertices(); |
105 bool isFrozen() const; |
105 bool isFrozen() const; |
106 bool isSafeToClose(); |
106 bool isSafeToClose(); |
107 QString name() const; |
107 QString name() const; |
108 void objectRemoved(LDObject* object, int index); |
108 void objectRemoved(LDObject* object, int index); |
109 const QList<LDPolygon>& polygonData() const; |
109 const QVector<LDPolygon>& polygonData() const; |
110 void recountTriangles(); |
110 void recountTriangles(); |
111 void redo(); |
111 void redo(); |
112 void redoVertices(); |
112 void redoVertices(); |
113 bool save (QString path = "", qint64* sizeptr = nullptr); |
113 bool save (QString path = "", qint64* sizeptr = nullptr); |
114 long savePosition() const; |
114 long savePosition() const; |
137 bool m_needsRecache = true; // The next polygon inline of this document rebuilds stored polygon data. |
137 bool m_needsRecache = true; // The next polygon inline of this document rebuilds stored polygon data. |
138 bool m_isInlining = false; |
138 bool m_isInlining = false; |
139 long m_savePosition; |
139 long m_savePosition; |
140 int m_tabIndex; |
140 int m_tabIndex; |
141 int m_triangleCount; |
141 int m_triangleCount; |
142 QList<LDPolygon> m_polygonData; |
142 QVector<LDPolygon> m_polygonData; |
143 QMap<LDObject*, QSet<Vertex>> m_objectVertices; |
143 QMap<LDObject*, QSet<Vertex>> m_objectVertices; |
144 QSet<Vertex> m_vertices; |
144 QSet<Vertex> m_vertices; |
145 DocumentManager* m_manager; |
145 DocumentManager* m_manager; |
146 |
146 |
147 private slots: |
147 private slots: |