|
Canorus
0.7
|
Line of music elements in the sheet. More...
#include <context.h>

Public Types | |
| enum | CAContextType { Staff, FunctionMarkContext, LyricsContext } |
Public Member Functions | |
| CAContext (const QString name, CASheet *s) | |
| virtual | ~CAContext () |
| virtual CAContext * | clone (CASheet *)=0 |
| const QString | name () |
| void | setName (const QString name) |
| CAContextType | contextType () |
| CASheet * | sheet () |
| void | setSheet (CASheet *sheet) |
| virtual void | clear ()=0 |
| virtual CAMusElement * | next (CAMusElement *elt)=0 |
| virtual CAMusElement * | previous (CAMusElement *elt)=0 |
| virtual bool | remove (CAMusElement *elt)=0 |
Protected Member Functions | |
| void | setContextType (CAContextType t) |
Protected Attributes | |
| CASheet * | _sheet |
| QString | _name |
| CAContextType | _contextType |
Line of music elements in the sheet.
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.
CAContext represents usually an infinite graphical space on the sheet where music elements are
placed in. This idea was introduced by LilyPond and it turned out to be quite useful.
Contexts can be staffs, lyrics, figured bass context, function mark context, dynamics etc.
CAContext is an abstract class and different solutions should be done based on it.
\sa CAStaff, CAFunctionMarkContextThis enum holds different CAContext types:
| CAContext::CAContext | ( | const QString | name, |
| CASheet * | s | ||
| ) |
| CAContext::~CAContext | ( | ) | [virtual] |
| virtual void CAContext::clear | ( | ) | [pure virtual] |
Implemented in CAFunctionMarkContext, CAStaff, and CALyricsContext.
| CAContext::clone | ( | CASheet * | s | ) | [pure virtual] |
Clones the current context with the given parent sheet s.
Implemented in CAStaff, CALyricsContext, and CAFunctionMarkContext.
Referenced by CASheet::clone().

| CAContextType CAContext::contextType | ( | ) | [inline] |
References _contextType.
Referenced by CATranspose::addContext(), CAPropertiesDialog::applyProperties(), CASheet::clone(), CASyllable::clone(), CAMusElementFactory::configureNote(), CAMainWin::copySelection(), CAPropertiesDialog::createDocumentFromTree(), CAMainWin::currentStaff(), CACanorusMLImport::endElement(), CACanorusMLExport::exportDocumentImpl(), CAMidiExport::exportDocumentImpl(), CALilyPondExport::exportScoreBlock(), CALilyPondExport::exportSheetImpl(), CAPlayback::initStreams(), CAMainWin::insertMusElementAt(), CAMainWin::on_uiLilyPondSource_triggered(), CAMainWin::pasteAt(), CAEngraver::reposit(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMousePress(), CACanorusMLImport::startElement(), CAMainWin::updateContextToolBar(), CAMainWin::updateInsertToolBar(), and CAMainWin::updateVoiceToolBar().

| CAContext::name | ( | ) | [inline] |
Returns context's name.
References _name.
Referenced by CAStaff::addVoice(), CAPropertiesDialog::buildTree(), CAContext(), CAStaff::CAStaff(), CAFunctionMarkContext::clone(), CALyricsContext::clone(), CAStaff::clone(), CALyricsContext::cloneLyricsContextProperties(), CACanorusMLExport::exportDocumentImpl(), CALilyPondExport::exportLyricsContextBlock(), CALilyPondExport::exportScoreBlock(), CAMainWin::on_uiNewVoice_triggered(), CAMainWin::on_uiRemoveContext_triggered(), CALyricsContext::setCustomStanzaName(), setName(), CAMainWin::updateContextToolBar(), and CAStaff::voiceByName().

| virtual CAMusElement* CAContext::next | ( | CAMusElement * | elt | ) | [pure virtual] |
Implemented in CAStaff, CAFunctionMarkContext, and CALyricsContext.
Referenced by CAScoreViewPort::selectNextMusElement().

| virtual CAMusElement* CAContext::previous | ( | CAMusElement * | elt | ) | [pure virtual] |
Implemented in CAStaff, CAFunctionMarkContext, and CALyricsContext.
Referenced by CAEngraver::reposit(), and CAScoreViewPort::selectPrevMusElement().

| virtual bool CAContext::remove | ( | CAMusElement * | elt | ) | [pure virtual] |
Implemented in CAStaff, CAFunctionMarkContext, and CALyricsContext.
Referenced by CAMusElement::~CAMusElement().

| void CAContext::setContextType | ( | CAContextType | t | ) | [inline, protected] |
References _contextType.
Referenced by CALyricsContext::CALyricsContext().

| CAContext::setName | ( | const QString | name | ) | [inline] |
Sets the Context's name to name.
Referenced by CALyricsContext::cloneLyricsContextProperties(), and CAMainWin::on_uiContextName_returnPressed().


| CAContext::setSheet | ( | CASheet * | sheet | ) | [inline] |
Sets the context's parent sheet to sheet.
References _sheet, and sheet().
Referenced by CASheet::addContext(), and CALyricsContext::cloneLyricsContextProperties().


| CAContext::sheet | ( | ) | [inline] |
Returns the pointer to CASheet which this context belongs to.
References _sheet.
Referenced by CAVoice::CAVoice(), CALyricsContext::cloneLyricsContextProperties(), CAMusElementFactory::configureNote(), CAPropertiesDialog::contextProperties(), CAMainWin::on_uiRemoveContext_triggered(), CAMainWin::pasteAt(), CAMainWin::removeSheet(), CAFunctionMarkContext::repositFunctions(), CAMainWin::scoreViewPortKeyPress(), setSheet(), CAMainWin::sourceViewPortCommit(), and CAPropertiesDialog::voiceProperties().

CAContextType CAContext::_contextType [protected] |
Referenced by CAFunctionMarkContext::CAFunctionMarkContext(), CAStaff::CAStaff(), contextType(), and setContextType().
QString CAContext::_name [protected] |
Referenced by CAContext(), CAStaff::CAStaff(), name(), and setName().
CASheet* CAContext::_sheet [protected] |
Referenced by CAContext(), setSheet(), and sheet().
1.8.0