score::Document Class Referencefinal

The Document class is the central part of the software. More...

Inheritance diagram for score::Document:

Detailed Description

The Document class is the central part of the software.

It is similar to the opened file in Word for instance, this is the data on which score operates, further defined by the plugins.

It has ownership on the useful classes for document edition and display :

Public Member Functions

void blockAllSignals ()
 
const DocumentMetadatametadata () const noexcept
 
DocumentMetadatametadata () noexcept
 
const Id< DocumentModel > & id () const noexcept
 
CommandStackcommandStack () noexcept
 
SelectionStackselectionStack () noexcept
 
FocusManagerfocusManager () noexcept
 
ObjectLockerlocker () noexcept
 
const DocumentContextcontext () const noexcept
 
DocumentModelmodel () const noexcept
 
DocumentPresenterpresenter () const noexcept
 
DocumentViewview () const noexcept
 
DocumentBackupManagerbackupManager () const noexcept
 
void saveDocumentModelAsJson (JSONObject::Serializer &writer)
 
QByteArray saveDocumentModelAsByteArray ()
 
void saveAsJson (JSONObject::Serializer &writer)
 
QByteArray saveAsByteArray ()
 
bool virgin () const
 
 Document (const QString &name, DocumentDelegateFactory &type, QObject *parent)
 
void ready ()
 
void updateTimers ()
 

Friends

class DocumentBuilder
 
struct DocumentContext
 

Member Function Documentation

◆ virgin()

bool score::Document::virgin ( ) const
inline

Indicates if the document has just been created and can be safely discarded.


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