|
Canorus
0.0
|
Represents a single sheet of paper in the document. More...
#include <sheet.h>
Public Member Functions | |
| CASheet (const QString name, CADocument *doc) | |
| ~CASheet () | |
| CASheet * | clone (CADocument *doc) |
| CASheet * | clone () |
| const QList< CAContext * > & | contextList () |
| CAContext * | findContext (const QString name) |
| void | insertContext (int pos, CAContext *c) |
| void | insertContextAfter (CAContext *after, CAContext *c) |
| void | addContext (CAContext *c) |
| void | removeContext (CAContext *c) |
| CAStaff * | addStaff () |
| QList< CAStaff * > | staffList () |
| QList< CAVoice * > | voiceList () |
| QList< CAPlayable * > | getChord (int time) |
| CATempo * | getTempo (int time) |
| CADocument * | document () |
| void | setDocument (CADocument *doc) |
| const QString | name () |
| void | setName (const QString name) |
| void | addNoteCheckerError (CANoteCheckerError *nce) |
| void | clearNoteCheckerErrors () |
| QList< CANoteCheckerError * > & | noteCheckerErrorList () |
| void | clear () |
Private Attributes | |
| QList< CAContext * > | _contextList |
| CADocument * | _document |
| QList< CANoteCheckerError * > | _noteCheckerErrorList |
| QString | _name |
Represents a single sheet of paper in the 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.
CASheet represents a sheet of paper for the composer. The idea was taken out from spreadsheet applications. Each sheet is usually in its own tab.
CASheet parent is CADocument and CASheet includes various contexts CAContext, let it be staffs, lyrics, function marks etc.
| CASheet::CASheet | ( | const QString | name, |
| CADocument * | doc | ||
| ) |
| CASheet::~CASheet | ( | ) |
|
inline |
References _contextList.
Referenced by clone(), CAPropertiesDialog::createDocumentFromTree(), CAMainWin::pasteAt(), CACanorusMLImport::startElement(), and CAMidiImport::writeMidiFileEventsToScore_New().

|
inline |
References _noteCheckerErrorList.
Referenced by CANoteChecker::checkSheet().

| CAStaff * CASheet::addStaff | ( | ) |
Appends a new staff to the sheet with one empty voice.
References _contextList, CAStaff::addVoice(), and staffList().
Referenced by CASettingsDialog::buildPreviewSheet(), and CAMainWin::newDocument().


| void CASheet::clear | ( | ) |
References _contextList.
| void CASheet::clearNoteCheckerErrors | ( | ) |
Removes any note checker errors in the current sheet. This function is usually called when changing the score and before re-running the note checker.
References _noteCheckerErrorList.
Referenced by CANoteChecker::checkSheet().

|
inline |
References clone(), and document().
Referenced by clone().


| CASheet * CASheet::clone | ( | CADocument * | doc | ) |
Clones the current sheet with all its content. If a new parent document doc is given, it also sets the document.
References addContext(), CASheet(), contextList(), CAContext::contextType(), CAContext::LyricsContext, name(), CAVoice::removeLyricsContext(), CAContext::Staff, and voiceList().

References _contextList.
Referenced by CATranspose::addSheet(), CATranspose::CATranspose(), clone(), CAMusElementFactory::configureNote(), CAMainWin::copySelection(), CAPropertiesDialog::createDocumentFromTree(), CAMidiExport::exportDocumentImpl(), CALilyPondExport::exportScoreBlock(), CALilyPondExport::exportSheetImpl(), CAMidiExport::exportSheetImpl(), CAPlayback::initStreams(), CAMainWin::pasteAt(), CALayoutEngine::reposit(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMousePress(), and CACanorusMLImport::startElement().

|
inline |
References _document.
Referenced by clone(), CAPropertiesDialog::contextProperties(), CAMusicXmlExport::exportSheetImpl(), CALilyPondExport::exportSheetImpl(), CAPropertiesDialog::sheetProperties(), and CAPropertiesDialog::voiceProperties().

Returns the first context with the given name.
References _contextList, and name().

| QList< CAPlayable * > CASheet::getChord | ( | int | time | ) |
Returns a list of notes and rests (chord) for all the voices in all the staffs in the given time slice time.
This is useful for determination of the harmony at certain point in time.
References staffList().
Referenced by CAMainWin::insertMusElementAt(), CAFiguredBassContext::repositFiguredBassMarks(), and CAFunctionMarkContext::repositFunctions().


| CATempo * CASheet::getTempo | ( | int | time | ) |
Returns the Tempo element active at the given time.
References staffList(), and CAMusElement::timeStart().
Referenced by CAPlayback::initStreams().


|
inline |
References _contextList.
Inserts the given context c after the context after.
References _contextList.
Referenced by CAMainWin::pasteAt(), CAMainWin::scoreViewMousePress(), and CAMainWin::sourceViewCommit().

|
inline |
References _name.
Referenced by CAMainWin::addSheet(), CASheet(), clone(), findContext(), setName(), and CAMainWin::updateSheetToolBar().

|
inline |
References _noteCheckerErrorList.
Referenced by CANoteCheckerError::~CANoteCheckerError().

|
inline |
References _contextList.
Referenced by CAPropertiesDialog::createDocumentFromTree(), CAMainWin::on_uiRemoveContext_triggered(), and CAMainWin::sourceViewCommit().

|
inline |
References _document.
Referenced by CADocument::clone().

|
inline |
Referenced by CALilyPondImport::importSheetImpl(), CAMidiImport::importSheetImpl(), and CAMainWin::on_uiSheetName_returnPressed().


| QList< CAStaff * > CASheet::staffList | ( | ) |
References _contextList, and CAContext::Staff.
Referenced by addStaff(), CASettingsDialog::buildPreviewSheet(), CANoteChecker::checkSheet(), CAMusicXmlExport::exportSheetImpl(), getChord(), getTempo(), CAMainWin::pasteAt(), CAMainWin::scoreViewMousePress(), CASettingsDialog::setupPages(), CATransposeView::show(), CACanorusMLImport::startElement(), voiceList(), and CAMidiImport::writeMidiFileEventsToScore_New().

| QList< CAVoice * > CASheet::voiceList | ( | ) |
Returns the list of all the voices in the sheets staffs.
References staffList().
Referenced by clone(), CACanorusMLImport::endElement(), CAMidiImport::fixAccidentals(), CAMidiDevice::freeMidiChannel(), CAMainWin::on_uiAssociatedVoice_activated(), CAMainWin::on_uiRedo_toggled(), CAMainWin::on_uiUndo_toggled(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMousePress(), CAScoreView::timeToCoords(), CAScoreView::timeToCoordsSimpleVersion(), and CAMainWin::updateContextToolBar().


|
private |
Referenced by addContext(), addStaff(), clear(), contextList(), findContext(), insertContext(), insertContextAfter(), removeContext(), and staffList().
|
private |
Referenced by CASheet(), document(), and setDocument().
|
private |
Referenced by addNoteCheckerError(), clearNoteCheckerErrors(), and noteCheckerErrorList().