|
Canorus 0.0
|
Class which represents the current document. More...
#include <document.h>
Private Attributes | |
| QList< CASheet * > | _sheetList |
| QList< CAResource * > | _resourceList |
| QString | _title |
| QString | _subtitle |
| QString | _composer |
| QString | _arranger |
| QString | _poet |
| QString | _textTranslator |
| QString | _dedication |
| QString | _copyright |
| QDateTime | _dateLastModified |
| QDateTime | _dateCreated |
| unsigned int | _timeEdited |
| QString | _comments |
| QString | _fileName |
| bool | _modified |
| CAArchive * | _archive |
Class which represents the current document.
Copyright (c) 2006-2007, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.
CADocument is a top-most class in score hierarchy and represents the document in the current main window. Document consists of multiple sheets.
| CADocument::CADocument | ( | ) |
Creates an empty document.
References setArchive(), setDateCreated(), setDateLastModified(), setModified(), and setTimeEdited().
Referenced by clone().


|
virtual |
|
inline |
References _resourceList.
Referenced by clone(), CAResourceCtl::createEmptyResource(), and CAResourceCtl::importResource().

| CASheet * CADocument::addSheet | ( | ) |
Adds and empty sheet to the document.
References addSheet(), and sheetList().
Referenced by addSheet().


|
inline |
References _sheetList.
Referenced by clone(), CAPropertiesDialog::createDocumentFromTree(), CAMidiImport::importDocumentImpl(), CAMainWin::newDocument(), CAMainWin::on_uiNewSheet_triggered(), CAMainWin::onImportDone(), CAMusicXmlImport::readPartList(), and CACanorusMLImport::startElement().

Creates a new sheet with the given name and adds it to the sheets list.
References _sheetList.
|
inline |
References _archive.
Referenced by CACanExport::exportDocumentImpl(), CACanImport::importDocumentImpl(), and ~CADocument().

|
inline |
References _arranger.
Referenced by clone(), CACanorusMLExport::exportDocumentImpl(), setArranger(), and CAPropertiesDialog::updateDocumentProperties().

| void CADocument::clear | ( | ) |
Clears the document of any sheets and destroys them.
References _arranger, _comments, _composer, _copyright, _dateCreated, _dateLastModified, _poet, _resourceList, _sheetList, _subtitle, _timeEdited, _title, and CAResourceCtl::deleteResource().
Referenced by ~CADocument().


| CADocument * CADocument::clone | ( | ) |
Clones this document and all its sheets and returns a pointer to its clone.
References addResource(), addSheet(), arranger(), CADocument(), comments(), composer(), copyright(), dateCreated(), dateLastModified(), fileName(), poet(), resourceList(), setArranger(), setComments(), setComposer(), setCopyright(), setDateCreated(), setDateLastModified(), CASheet::setDocument(), setFileName(), setPoet(), setSubtitle(), setTimeEdited(), setTitle(), sheetList(), subtitle(), timeEdited(), and title().
Referenced by CAUndoCommand::CAUndoCommand().


|
inline |
References _comments.
Referenced by clone(), CACanorusMLExport::exportDocumentImpl(), setComments(), and CAPropertiesDialog::updateDocumentProperties().

|
inline |
References _composer.
Referenced by clone(), CACanorusMLExport::exportDocumentImpl(), setComposer(), and CAPropertiesDialog::updateDocumentProperties().

|
inline |
References _copyright.
Referenced by clone(), CACanorusMLExport::exportDocumentImpl(), setCopyright(), and CAPropertiesDialog::updateDocumentProperties().

|
inline |
References _dateCreated.
Referenced by clone(), CACanorusMLExport::exportDocumentImpl(), CADocumentProperties::on_uiComposer_editingFinished(), and setDateCreated().

|
inline |
References _dateLastModified.
Referenced by clone(), CACanorusMLExport::exportDocumentImpl(), CAAutoRecovery::openRecovery(), and setDateLastModified().

|
inline |
References _dedication.
Referenced by CACanorusMLExport::exportDocumentImpl(), setDedication(), and CAPropertiesDialog::updateDocumentProperties().

|
inline |
References _fileName.
Referenced by clone(), CAMainWin::openDocument(), and setFileName().

Returns the first sheet with the given name.
References _sheetList.
|
inline |
References _modified.
|
inline |
References _poet.
Referenced by clone(), CACanorusMLExport::exportDocumentImpl(), setPoet(), and CAPropertiesDialog::updateDocumentProperties().

|
inline |
References _resourceList.
Referenced by CAResourceCtl::deleteResource(), and CAResource::~CAResource().

|
inline |
References _sheetList.
Referenced by CAPropertiesDialog::createDocumentFromTree(), and CAMainWin::on_uiRemoveSheet_triggered().

|
inline |
References _resourceList.
Referenced by clone(), CACanExport::exportDocumentImpl(), CACanorusMLExport::exportResources(), CACanImport::importDocumentImpl(), CAResourceView::rebuildUi(), and CAUndoCommand::undoDocument().

|
inline |
References _archive.
Referenced by CADocument(), and CACanImport::importDocumentImpl().

|
inline |
References _arranger, and arranger().
Referenced by CAPropertiesDialog::applyProperties(), clone(), and CACanorusMLImport::startElement().


|
inline |
References _comments, and comments().
Referenced by CAPropertiesDialog::applyProperties(), clone(), and CACanorusMLImport::startElement().


|
inline |
References _composer, and composer().
Referenced by CAPropertiesDialog::applyProperties(), clone(), CAMusicXmlImport::readIdentification(), and CACanorusMLImport::startElement().


|
inline |
References _copyright, and copyright().
Referenced by CAPropertiesDialog::applyProperties(), clone(), CAMusicXmlImport::readIdentification(), and CACanorusMLImport::startElement().


|
inline |
References _dateCreated, and dateCreated().
Referenced by CADocument(), clone(), and CACanorusMLImport::startElement().


|
inline |
References _dateLastModified, and dateLastModified().
Referenced by CADocument(), clone(), CAMainWin::saveDocument(), and CACanorusMLImport::startElement().


|
inline |
References _dedication, and dedication().
Referenced by CAPropertiesDialog::applyProperties(), and CACanorusMLImport::startElement().


|
inline |
References _fileName, and fileName().
Referenced by clone(), CACanImport::importDocumentImpl(), CACanorusMLImport::importDocumentImpl(), CAAutoRecovery::openRecovery(), CAUndoCommand::redo(), CAMainWin::saveDocument(), and CAUndoCommand::undo().


|
inline |
References _modified.
Referenced by CADocument(), CAResourceCtl::createEmptyResource(), CAResourceCtl::deleteResource(), CAAutoRecovery::openRecovery(), CAUndo::pushUndoCommand(), and CAMainWin::saveDocument().

|
inline |
Referenced by CAPropertiesDialog::applyProperties(), clone(), CAMusicXmlImport::readIdentification(), and CACanorusMLImport::startElement().


|
inline |
References _subtitle, and subtitle().
Referenced by CAPropertiesDialog::applyProperties(), clone(), and CACanorusMLImport::startElement().


|
inline |
References _textTranslator, and textTranslator().
Referenced by CAPropertiesDialog::applyProperties(), and CACanorusMLImport::startElement().


|
inline |
References _timeEdited, and timeEdited().
Referenced by CADocument(), clone(), CAUndoCommand::redo(), CAMainWin::saveDocument(), CACanorusMLImport::startElement(), and CAUndoCommand::undo().


|
inline |
References _title, and title().
Referenced by CAPropertiesDialog::applyProperties(), clone(), CAMusicXmlImport::readScorePartwise(), CAMusicXmlImport::readWork(), and CACanorusMLImport::startElement().


References _sheetList.
Referenced by addSheet(), CAMusicXmlImport::addStavesIfNeeded(), CAPropertiesDialog::buildTree(), clone(), CAPropertiesDialog::createDocumentFromTree(), CACanorusMLImport::endElement(), CACanorusMLExport::exportDocumentImpl(), CAMidiExport::exportDocumentImpl(), CAPDFExport::exportDocumentImpl(), CASVGExport::exportDocumentImpl(), CAMainWin::on_uiRedo_toggled(), CAMainWin::on_uiSettings_triggered(), CAMainWin::on_uiTabWidget_CAMoveTab(), CAMainWin::on_uiUndo_toggled(), CAMainWin::openDocument(), CAMusicXmlImport::readNote(), CAMainWin::rebuildUI(), CACanorusMLImport::startElement(), and CAUndoCommand::undoDocument().

|
inline |
References _subtitle.
Referenced by clone(), CACanorusMLExport::exportDocumentImpl(), setSubtitle(), and CAPropertiesDialog::updateDocumentProperties().

|
inline |
References _textTranslator.
Referenced by CACanorusMLExport::exportDocumentImpl(), setTextTranslator(), and CAPropertiesDialog::updateDocumentProperties().

|
inline |
References _timeEdited.
Referenced by clone(), CACanorusMLExport::exportDocumentImpl(), and setTimeEdited().

|
inline |
References _title.
Referenced by clone(), CACanorusMLExport::exportDocumentImpl(), CAAutoRecovery::openRecovery(), setTitle(), and CAPropertiesDialog::updateDocumentProperties().

|
private |
Referenced by archive(), and setArchive().
|
private |
Referenced by arranger(), clear(), and setArranger().
|
private |
Referenced by clear(), comments(), and setComments().
|
private |
Referenced by clear(), composer(), and setComposer().
|
private |
Referenced by clear(), copyright(), and setCopyright().
|
private |
Referenced by clear(), dateCreated(), and setDateCreated().
|
private |
Referenced by clear(), dateLastModified(), and setDateLastModified().
|
private |
Referenced by dedication(), and setDedication().
|
private |
Referenced by fileName(), and setFileName().
|
private |
Referenced by isModified(), and setModified().
|
private |
Referenced by addResource(), clear(), removeResource(), and resourceList().
|
private |
Referenced by addSheet(), addSheetByName(), clear(), findSheet(), removeSheet(), and sheetList().
|
private |
Referenced by clear(), setSubtitle(), and subtitle().
|
private |
Referenced by setTextTranslator(), and textTranslator().
|
private |
Referenced by clear(), setTimeEdited(), and timeEdited().
|
private |
Referenced by clear(), setTitle(), and title().