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

Public Types | |
| enum | CAContextType { Staff, LyricsContext, FunctionMarkContext, FiguredBassContext } |
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.
This enum holds different CAContext types:
| Enumerator | |
|---|---|
| Staff | |
| LyricsContext | |
| FunctionMarkContext | |
| FiguredBassContext | |
|
virtual |
|
pure virtual |
Implemented in CAStaff, CALyricsContext, CAFunctionMarkContext, and CAFiguredBassContext.
|
pure virtual |
Clones the current context with the given parent sheet s.
Implemented in CAStaff, CALyricsContext, CAFunctionMarkContext, and CAFiguredBassContext.
|
inline |
References _contextType.
Referenced by CATranspose::addContext(), CAPropertiesDialog::applyProperties(), CASyllable::clone(), CAFiguredBassMark::clone(), CASheet::clone(), CAMainWin::copySelection(), CAPropertiesDialog::createDocumentFromTree(), CAMainWin::currentStaff(), CACanorusMLImport::endElement(), CACanorusMLExport::exportDocumentImpl(), CAMainWin::insertMusElementAt(), CAMainWin::on_uiLilyPondSource_triggered(), CAMainWin::pasteAt(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMousePress(), CACanorusMLImport::startElement(), CAMainWin::updateContextToolBar(), CAMainWin::updateInsertToolBar(), and CAMainWin::updateVoiceToolBar().

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

|
pure virtual |
Implemented in CAStaff, CAFunctionMarkContext, CAFiguredBassContext, and CALyricsContext.
Referenced by CAScoreView::selectNextMusElement().

|
pure virtual |
Implemented in CAStaff, CAFunctionMarkContext, CAFiguredBassContext, and CALyricsContext.
Referenced by CALayoutEngine::reposit(), and CAScoreView::selectPrevMusElement().

|
pure virtual |
Implemented in CAStaff, CAFunctionMarkContext, CAFiguredBassContext, and CALyricsContext.
Referenced by CAFiguredBassMark::~CAFiguredBassMark(), and CAMusElement::~CAMusElement().

|
inlineprotected |
References _contextType.
Referenced by CAFiguredBassContext::CAFiguredBassContext(), and CALyricsContext::CALyricsContext().

|
inline |
Sets the Context's name to name.
Referenced by CALyricsContext::cloneLyricsContextProperties(), and CAMainWin::on_uiContextName_returnPressed().


|
inline |
Sets the context's parent sheet to sheet.
References _sheet, and sheet().
Referenced by CALyricsContext::cloneLyricsContextProperties().


|
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_uiRedo_toggled(), CAMainWin::on_uiRemoveContext_triggered(), CAMainWin::on_uiUndo_toggled(), CAMainWin::pasteAt(), CAMainWin::removeSheet(), CAFiguredBassContext::repositFiguredBassMarks(), CAFunctionMarkContext::repositFunctions(), CAMainWin::scoreViewKeyPress(), setSheet(), CAMainWin::sourceViewCommit(), CAPropertiesDialog::voiceProperties(), and CANoteCheckerError::~CANoteCheckerError().

|
protected |
Referenced by CAFunctionMarkContext::CAFunctionMarkContext(), CAStaff::CAStaff(), contextType(), and setContextType().
|
protected |
Referenced by CAContext(), CAStaff::CAStaff(), name(), and setName().
|
protected |
Referenced by CAContext(), setSheet(), and sheet().