Skip to content

Commit

Permalink
App: expose document map in Application
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed May 27, 2024
1 parent 662e1b4 commit 530787c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/App/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,11 @@ std::vector<App::Document*> Application::getDocuments() const
return docs;
}

std::map<std::string, App::Document*> Application::getDocumentMap() const
{
return DocMap;
}

std::string Application::getUniqueDocumentName(const char *Name, bool tempDoc) const
{
if (!Name || *Name == '\0')
Expand Down
1 change: 1 addition & 0 deletions src/App/Application.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class AppExport Application
const char * getDocumentName(const App::Document* ) const;
/// get a list of all documents in the application
std::vector<App::Document*> getDocuments() const;
std::map<std::string, App::Document*> getDocumentMap() const;
/// Set the active document
void setActiveDocument(App::Document* pDoc);
void setActiveDocument(const char *Name);
Expand Down

0 comments on commit 530787c

Please sign in to comment.