81 const QList<LDPolygon>& polygonData() const; |
81 const QList<LDPolygon>& polygonData() const; |
82 void redo(); |
82 void redo(); |
83 void redoVertices(); |
83 void redoVertices(); |
84 void reloadAllSubfiles(); |
84 void reloadAllSubfiles(); |
85 void removeFromSelection (LDObject* obj); |
85 void removeFromSelection (LDObject* obj); |
86 bool save (QString path = "", int64* sizeptr = null); |
86 bool save (QString path = "", int64* sizeptr = nullptr); |
87 long savePosition() const; |
87 long savePosition() const; |
88 void setDefaultName (QString value); |
88 void setDefaultName (QString value); |
89 void setFullPath (QString value); |
89 void setFullPath (QString value); |
90 void setImplicit (bool value); |
90 void setImplicit (bool value); |
91 void setName (QString value); |
91 void setName (QString value); |
128 // Opens the given file and parses the LDraw code within. Returns a pointer |
128 // Opens the given file and parses the LDraw code within. Returns a pointer |
129 // to the opened file or null on error. |
129 // to the opened file or null on error. |
130 LDDocument* OpenDocument (QString path, bool search, bool implicit, LDDocument* fileToOverride = nullptr, bool* aborted = nullptr); |
130 LDDocument* OpenDocument (QString path, bool search, bool implicit, LDDocument* fileToOverride = nullptr, bool* aborted = nullptr); |
131 |
131 |
132 // Opens the given file and returns a pointer to it, potentially looking in /parts and /p |
132 // Opens the given file and returns a pointer to it, potentially looking in /parts and /p |
133 QFile* OpenLDrawFile (QString relpath, bool subdirs, QString* pathpointer = null); |
133 QFile* OpenLDrawFile (QString relpath, bool subdirs, QString* pathpointer = nullptr); |
134 |
134 |
135 // Close all open files, whether user-opened or subfile caches. |
135 // Close all open files, whether user-opened or subfile caches. |
136 void CloseAllDocuments(); |
136 void CloseAllDocuments(); |
137 |
137 |
138 // Parses a string line containing an LDraw object and returns the object parsed. |
138 // Parses a string line containing an LDraw object and returns the object parsed. |
143 LDDocument* GetDocument (QString filename); |
143 LDDocument* GetDocument (QString filename); |
144 |
144 |
145 // Is it safe to close all files? |
145 // Is it safe to close all files? |
146 bool IsSafeToCloseAll(); |
146 bool IsSafeToCloseAll(); |
147 |
147 |
148 LDObjectList LoadFileContents (QFile* f, int* numWarnings, bool* ok = null); |
148 LDObjectList LoadFileContents (QFile* f, int* numWarnings, bool* ok = nullptr); |
149 |
149 |
150 const LDObjectList& selectedObjects(); |
150 const LDObjectList& selectedObjects(); |
151 void AddRecentFile (QString path); |
151 void AddRecentFile (QString path); |
152 void LoadLogoStuds(); |
152 void LoadLogoStuds(); |
153 QString Basename (QString path); |
153 QString Basename (QString path); |