Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CAFermata Class Reference

Fermata mark. More...

#include <fermata.h>

Inheritance diagram for CAFermata:
Inheritance graph
[legend]

Public Types

enum  CAFermataType { NormalFermata, ShortFermata, LongFermata, VeryLongFermata }
 
- Public Types inherited from CAMark
enum  CAMarkType {
  Undefined = -1, Text, Tempo, Ritardando,
  Dynamic, Crescendo, Pedal, InstrumentChange,
  BookMark, RehersalMark, Fermata, RepeatMark,
  Articulation, Fingering
}
 
- Public Types inherited from CAMusElement
enum  CAMusElementType {
  Undefined = 0, Note, Rest, Barline,
  Clef, TimeSignature, KeySignature, Slur,
  Tuplet, Syllable, FunctionMark, Mark
}
 

Public Member Functions

 CAFermata (CAPlayable *m, CAFermataType t=NormalFermata)
 
 CAFermata (CABarline *b, CAFermataType t=NormalFermata)
 
virtual ~CAFermata ()
 
CAFermataclone (CAMusElement *elt=0)
 
int compare (CAMusElement *)
 
CAFermataType fermataType ()
 
void setFermataType (CAFermataType t)
 
- Public Member Functions inherited from CAMark
 CAMark (CAMarkType type, CAMusElement *associatedElt, int timeStart=-1, int timeLength=-1)
 
 CAMark (CAMarkType type, CAContext *context, int timeStart, int timeLength)
 
virtual ~CAMark ()
 
virtual CAMarkclone (CAContext *context)
 
CAMusElementassociatedElement ()
 
void setAssociatedElement (CAMusElement *elt)
 
CAMarkType markType ()
 
void setMarkType (CAMarkType type)
 
bool isCommon ()
 
- Public Member Functions inherited from CAMusElement
 CAMusElement (CAContext *context, int timeStart, int timeLength=0)
 
virtual ~CAMusElement ()
 
CAMusElementType musElementType ()
 
CAContextcontext ()
 
CAContextsetContext (CAContext *context)
 
virtual int timeStart ()
 
void setTimeStart (int time)
 
virtual int timeLength ()
 
void setTimeLength (int length)
 
int timeEnd ()
 
const QString name ()
 
void setName (const QString name)
 
const bool isVisible ()
 
void setVisible (const bool v)
 
const QColor color ()
 
void setColor (const QColor c)
 
const QList< CAMark * > markList ()
 
void addMark (CAMark *mark)
 
void addMarks (QList< CAMark * > marks)
 
void removeMark (CAMark *mark)
 
bool isPlayable ()
 

Static Public Member Functions

static const QString fermataTypeToString (CAFermataType t)
 
static CAFermataType fermataTypeFromString (const QString r)
 
- Static Public Member Functions inherited from CAMark
static const QString markTypeToString (CAMarkType t)
 
static CAMarkType markTypeFromString (const QString s)
 
- Static Public Member Functions inherited from CAMusElement
static const QString musElementTypeToString (CAMusElementType)
 
static CAMusElementType musElementTypeFromString (const QString)
 

Private Attributes

CAFermataType _fermataType
 

Additional Inherited Members

- Protected Member Functions inherited from CAMark
void setCommon (bool c)
 
- Protected Attributes inherited from CAMusElement
QList< CAMark * > _markList
 
CAMusElementType _musElementType
 
CAContext_context
 
int _timeStart
 
int _timeLength
 
bool _visible
 
QColor _color
 
QString _name
 

Detailed Description

Fermata mark.

Copyright (c) 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.

Extended mark for fermata. Fermata is assigned to playable elements or to the barlines.

Member Enumeration Documentation

Enumerator
NormalFermata 
ShortFermata 
LongFermata 
VeryLongFermata 

Constructor & Destructor Documentation

CAFermata::CAFermata ( CAPlayable m,
CAFermataType  t = NormalFermata 
)

References setFermataType().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

CAFermata::CAFermata ( CABarline b,
CAFermataType  t = NormalFermata 
)

References setFermataType().

Here is the call graph for this function:

CAFermata::~CAFermata ( )
virtual

Member Function Documentation

CAFermata * CAFermata::clone ( CAMusElement elt = 0)
virtual

Reimplemented from CAMark.

References CAMusElement::Barline, CAFermata(), fermataType(), CAMusElement::isPlayable(), and CAMusElement::musElementType().

Here is the call graph for this function:

int CAFermata::compare ( CAMusElement elt)
virtual

Compares the music element with the given elt and returns number of differences in their properties. Returns 0, if the music elements are exact; -1 if the music element type differs; otherwise number greater than 0.

This method is usually used when opening a score document where music elements are written in various voices (eg. barlines), but are eventually merged and written only once per staff.

Reimplemented from CAMark.

References CAMark::Fermata, fermataType(), CAMusElement::Mark, and CAMusElement::musElementType().

Here is the call graph for this function:

CAFermataType CAFermata::fermataType ( )
inline

References _fermataType.

Referenced by clone(), compare(), CACanorusMLExport::exportMarks(), and CAMainWin::updateFermataToolBar().

Here is the caller graph for this function:

CAFermata::CAFermataType CAFermata::fermataTypeFromString ( const QString  r)
static

References LongFermata, NormalFermata, ShortFermata, and VeryLongFermata.

Referenced by CACanorusMLImport::importMark().

Here is the caller graph for this function:

const QString CAFermata::fermataTypeToString ( CAFermataType  t)
static

References LongFermata, NormalFermata, ShortFermata, and VeryLongFermata.

Referenced by CACanorusMLExport::exportMarks().

Here is the caller graph for this function:

void CAFermata::setFermataType ( CAFermataType  t)
inline

References _fermataType.

Referenced by CAFermata(), and CAMainWin::on_uiFermataType_toggled().

Here is the caller graph for this function:

Member Data Documentation

CAFermataType CAFermata::_fermataType
private

Referenced by fermataType(), and setFermataType().


The documentation for this class was generated from the following files: