src/documentmanager.h

changeset 230
a1f3f7d9078b
parent 214
8e1fe64ce4e3
child 235
7ef03c2b46ab
equal deleted inserted replaced
229:38d86002d548 230:a1f3f7d9078b
49 auto end() const { return this->openModels.end(); } 49 auto end() const { return this->openModels.end(); }
50 ModelId newModel(); 50 ModelId newModel();
51 Model* findDependencyByName(const ModelId modelId, const QString& name); 51 Model* findDependencyByName(const ModelId modelId, const QString& name);
52 Model* getModelById(ModelId modelId); 52 Model* getModelById(ModelId modelId);
53 std::optional<ModelId> openModel(const QString& path, QTextStream& errorStream, const OpenType openType); 53 std::optional<ModelId> openModel(const QString& path, QTextStream& errorStream, const OpenType openType);
54 std::map<QString, QString> loadDependenciesForAllModels(const LibraryManager &libraries); 54 std::map<QString, QString> loadDependenciesForAllModels(const LibrariesModel &libraries);
55 void closeDocument(const ModelId modelId); 55 void closeDocument(const ModelId modelId);
56 const QString* modelPath(ModelId modelId) const; 56 const QString* modelPath(ModelId modelId) const;
57 void setModelPath( 57 void setModelPath(
58 const ModelId modelId, 58 const ModelId modelId,
59 const QString& newPath, 59 const QString& newPath,
60 const LibraryManager &libraries, 60 const LibrariesModel &libraries,
61 QTextStream &errorStream); 61 QTextStream &errorStream);
62 bool saveModel(const ModelId modelId, QTextStream& errors); 62 bool saveModel(const ModelId modelId, QTextStream& errors);
63 std::optional<ModelId> findIdForModel(const Model* model) const; 63 std::optional<ModelId> findIdForModel(const Model* model) const;
64 PolygonCache* getPolygonCacheForModel(ModelId modelId); 64 PolygonCache* getPolygonCacheForModel(ModelId modelId);
65 const ModelInfo* find(ModelId modelId) const; 65 const ModelInfo* find(ModelId modelId) const;

mercurial