Owns the documents. More...

Inheritance diagram for score::DocumentManager:
score::DocumentList

Detailed Description

Owns the documents.

Public Member Functions

 DocumentManager (score::View *view, QObject *parentPresenter)
 
void init (const score::GUIApplicationContext &ctx)
 
auto recentFiles () const
 
DocumentsetupDocument (const score::GUIApplicationContext &ctx, score::Document *doc)
 
template<typename... Args>
DocumentnewDocument (const score::GUIApplicationContext &ctx, Args &&... args)
 
template<typename... Args>
DocumentloadDocument (const score::GUIApplicationContext &ctx, Args &&... args)
 
template<typename... Args>
void restoreDocument (const score::GUIApplicationContext &ctx, Args &&... args)
 
void restoreDocuments (const score::GUIApplicationContext &ctx)
 
void setCurrentDocument (const score::GUIApplicationContext &ctx, Document *doc)
 
bool closeDocument (const score::GUIApplicationContext &ctx, Document &)
 
void forceCloseDocument (const score::GUIApplicationContext &ctx, Document &)
 
bool saveDocument (Document &)
 
bool saveDocumentAs (Document &)
 
bool saveStack ()
 
DocumentloadStack (const score::GUIApplicationContext &ctx)
 
DocumentloadStack (const score::GUIApplicationContext &ctx, const QString &)
 
DocumentloadFile (const score::GUIApplicationContext &ctx)
 
DocumentloadFile (const score::GUIApplicationContext &ctx, const QString &filename)
 
bool closeAllDocuments (const score::GUIApplicationContext &ctx)
 
bool preparingNewDocument () const
 
void documentChanged (score::Document *arg_1)
 
- Public Member Functions inherited from score::DocumentList
const std::vector< Document * > & documents () const
 
std::vector< Document * > & documents ()
 
DocumentcurrentDocument () const
 
void setCurrentDocument (Document *d)
 

Static Public Member Functions

static bool checkAndUpdateJson (rapidjson::Value &, const score::GUIApplicationContext &ctx)
 checkAndUpdateJson More...
 

Additional Inherited Members

- Protected Attributes inherited from score::DocumentList
std::vector< Document * > m_documents
 
Documentm_currentDocument {}
 

Member Function Documentation

◆ checkAndUpdateJson()

bool score::DocumentManager::checkAndUpdateJson ( rapidjson::Value &  obj,
const score::GUIApplicationContext ctx 
)
static

checkAndUpdateJson

Returns
boolean indicating if the document is loadable

The documentation for this class was generated from the following files: