src/documentmanager.h

changeset 1308
dcc8c02530c2
parent 1288
d1e45f90654b
child 1326
69a90bd2dba2
equal deleted inserted replaced
1307:adb9d32a1426 1308:dcc8c02530c2
35 35
36 void addRecentFile (QString path); 36 void addRecentFile (QString path);
37 const Documents& allDocuments() const { return m_documents; } 37 const Documents& allDocuments() const { return m_documents; }
38 void clear(); 38 void clear();
39 LDDocument* createNew(); 39 LDDocument* createNew();
40 QString findDocument(QString name) const;
40 LDDocument* findDocumentByName (QString name); 41 LDDocument* findDocumentByName (QString name);
41 QString findDocumentPath (QString relpath, bool subdirs);
42 LDDocument* getDocumentByName (QString filename); 42 LDDocument* getDocumentByName (QString filename);
43 bool isSafeToCloseAll(); 43 bool isSafeToCloseAll();
44 void loadLogoedStuds(); 44 void loadLogoedStuds();
45 LDDocument* openDocument (QString path, bool search, bool implicit, LDDocument* fileToOverride = nullptr); 45 LDDocument* openDocument(
46 QFile* openLDrawFile (QString relpath, bool subdirs, QString* pathpointer); 46 QString path,
47 bool search,
48 bool implicit,
49 LDDocument* fileToOverride = nullptr
50 );
47 void openMainModel (QString path); 51 void openMainModel (QString path);
48 bool preInline (LDDocument* doc, Model& model, bool deep, bool renderinline); 52 bool preInline (LDDocument* doc, Model& model, bool deep, bool renderinline);
49 53
50 static const QStringList specialSubdirectories; 54 static const QStringList specialSubdirectories;
51 55

mercurial