|
Canorus
0.7
|
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().

| void CADocument::addSheet | ( | CASheet * | sheet | ) |
Adds an already created sheet to the document. Sheet's owner document is set to this document.
References _sheetList, and CASheet::setDocument().
Referenced by clone(), CAPropertiesDialog::createDocumentFromTree(), CAMidiImport::importDocumentImpl(), CAMainWin::on_uiNewSheet_triggered(), CAMusicXmlImport::readPartList(), and CACanorusMLImport::startElement().


| CASheet * CADocument::addSheet | ( | ) |
Adds and empty sheet to the document.
References sheetCount().

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(), setFileName(), setPoet(), setSubtitle(), setTimeEdited(), setTitle(), sheetAt(), sheetCount(), 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 |
Returns the absolute path of the file the document has been saved to or empty string if document hasn't been saved yet. Document's file name property is not saved to a file.
References _fileName.
Referenced by clone(), CAMainWin::openDocument(), and setFileName().

|
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(), CAMainWin::openDocument(), 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 _sheetList.
|
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::readWork(), and CACanorusMLImport::startElement().


Returns the first sheet with the given name.
References _sheetList.
|
inline |
Returns the sheet with index i.
References _sheetList.
Referenced by CAPropertiesDialog::buildTree(), clone(), CAPropertiesDialog::createDocumentFromTree(), CACanorusMLImport::endElement(), CACanorusMLExport::exportDocumentImpl(), CALilyPondExport::exportDocumentImpl(), CAMidiExport::exportDocumentImpl(), CAMainWin::on_uiImportDocument_triggered(), CAMusicXmlImport::readAttributes(), CAMusicXmlImport::readNote(), and CAUndoCommand::undoDocument().

|
inline |
Returns the number of created sheets in the document.
References _sheetList.
Referenced by addSheet(), CAPropertiesDialog::buildTree(), clone(), CAPropertiesDialog::createDocumentFromTree(), CACanorusMLImport::endElement(), CACanorusMLExport::exportDocumentImpl(), CAPDFExport::exportDocumentImpl(), CASVGExport::exportDocumentImpl(), CALilyPondExport::exportDocumentImpl(), CAMidiExport::exportDocumentImpl(), CAMainWin::on_uiImportDocument_triggered(), CAMainWin::openDocument(), CAMainWin::rebuildUI(), CACanorusMLImport::startElement(), and CAUndoCommand::undoDocument().

|
inline |
References _sheetList.
|
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 |
List of documents sheets.
Referenced by addSheet(), addSheetByName(), clear(), removeSheet(), setSheetAt(), sheet(), sheetAt(), sheetCount(), 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().
1.8.3