Canorus  0.0
canorusmlexport.h
Go to the documentation of this file.
1 
8 #ifndef CANORUSMLEXPORT_H_
9 #define CANORUSMLEXPORT_H_
10 
11 #include <QDomElement>
12 #include <QColor>
13 
14 #include "export/export.h"
15 #include "score/playablelength.h"
16 #include "score/diatonicpitch.h"
17 #include "score/diatonickey.h"
18 
19 class CAMusElement;
21 
22 class CACanorusMLExport : public CAExport {
23 public:
24  CACanorusMLExport( QTextStream *stream=0 );
25  virtual ~CACanorusMLExport();
26 
27  void exportDocumentImpl( CADocument *doc );
28 
29 private:
30  void exportVoiceImpl( CAVoice* voice, QDomElement &dVoice );
31  void exportFiguredBass( CAFiguredBassContext *c, QDomElement &domParent );
32  void exportMarks( CAMusElement *associatedElt, QDomElement& domParent );
33  void exportPlayableLength( CAPlayableLength l, QDomElement& domParent );
34  void exportDiatonicPitch( CADiatonicPitch p, QDomElement& domParent );
35  void exportDiatonicKey( CADiatonicKey k, QDomElement& domParent );
36  void exportColor( CAMusElement *elt, QDomElement& domParent );
37  void exportTime( CAMusElement *elt, QDomElement& domParent );
38  void exportResources( CADocument*, QDomElement& );
39 
40  QDomElement _dTuplet;
41  QColor _color; // foreground color of elements
42 };
43 
44 #endif /* CANORUSMLEXPORT_H_ */
rest.h
CANote::stemDirectionToString
static const QString stemDirectionToString(CAStemDirection)
Definition: note.cpp:288
CAMark::Crescendo
@ Crescendo
Definition: mark.h:23
CADocument::composer
const QString composer()
Definition: document.h:39
CACanorusMLExport::_dTuplet
QDomElement _dTuplet
Definition: canorusmlexport.h:40
CADynamic::volume
const int volume()
Definition: dynamic.h:33
CAFermata::fermataTypeToString
static const QString fermataTypeToString(CAFermataType t)
Definition: fermata.cpp:52
CACanorusMLExport::exportDocumentImpl
void exportDocumentImpl(CADocument *doc)
Definition: canorusmlexport.cpp:63
CACrescendo::finalVolume
const int finalVolume()
Definition: crescendo.h:28
CAStaff::voiceList
const QList< CAVoice * > & voiceList()
Definition: staff.h:35
CARitardando
Ritardando and Accellerando marks.
Definition: ritardando.h:15
CAContext::Staff
@ Staff
Definition: context.h:23
CADocument::comments
const QString comments()
Definition: document.h:48
CARest
Represents a rest in the score.
Definition: rest.h:15
CATuplet::number
int number()
Definition: tuplet.h:27
CADynamic::text
const QString text()
Definition: dynamic.h:31
CACanorusMLExport::_color
QColor _color
Definition: canorusmlexport.h:41
CAMusElement::Mark
@ Mark
Definition: muselement.h:37
CAMusElement::MidiNote
@ MidiNote
Definition: muselement.h:27
CARitardando::ritardandoTypeToString
static const QString ritardandoTypeToString(CARitardandoType t)
Definition: ritardando.cpp:52
note.h
CANote::phrasingSlurStart
CASlur * phrasingSlurStart()
Definition: note.h:51
CAArticulation
Note articulation marks.
Definition: articulation.h:14
CAResource::url
const QUrl url()
Definition: resource.h:36
CAMark::Pedal
@ Pedal
Definition: mark.h:24
CAClef
Definition: clef.h:18
CACanorusMLExport::exportTime
void exportTime(CAMusElement *elt, QDomElement &domParent)
Definition: canorusmlexport.cpp:463
CATuplet::actualNumber
int actualNumber()
Definition: tuplet.h:30
CANote::slurEnd
CASlur * slurEnd()
Definition: note.h:50
figuredbasscontext.h
CANote
Represents a note in the score.
Definition: note.h:18
CACanorusMLExport::exportDiatonicPitch
void exportDiatonicPitch(CADiatonicPitch p, QDomElement &domParent)
Definition: canorusmlexport.cpp:477
CASlur::slurStyle
CASlurStyle slurStyle()
Definition: slur.h:52
CACanorusMLExport::exportResources
void exportResources(CADocument *, QDomElement &)
Definition: canorusmlexport.cpp:502
CACrescendo::crescendoTypeToString
static const QString crescendoTypeToString(CACrescendoType t)
Definition: crescendo.cpp:50
CAMusElement::Tuplet
@ Tuplet
Definition: muselement.h:33
CADocument
Class which represents the current document.
Definition: document.h:19
CAKeySignature::keySignatureTypeToString
static const QString keySignatureTypeToString(CAKeySignatureType)
Definition: keysignature.cpp:157
CAMusElement::Clef
@ Clef
Definition: muselement.h:29
CARitardando::finalTempo
const int finalTempo()
Definition: ritardando.h:28
CAMark::isCommon
bool isCommon()
Definition: mark.h:48
CAText::text
const QString text()
Definition: text.h:19
CAVoice
Class which represents a voice in the staff.
Definition: voice.h:23
CACanorusMLExport::exportColor
void exportColor(CAMusElement *elt, QDomElement &domParent)
Definition: canorusmlexport.cpp:457
canorusmlexport.h
CADocument::dateCreated
const QDateTime dateCreated()
Definition: document.h:45
document.h
CADocument::dedication
const QString dedication()
Definition: document.h:43
CAMusElement::Barline
@ Barline
Definition: muselement.h:28
CATimeSignature
Represents a time signature in the staff.
Definition: timesignature.h:18
CAResource::resourceTypeToString
static QString resourceTypeToString(CAResourceType type)
Definition: resource.cpp:70
CAArticulation::articulationTypeToString
static const QString articulationTypeToString(CAArticulationType t)
Definition: articulation.cpp:37
CAMark::RehersalMark
@ RehersalMark
Definition: mark.h:27
CAResource::description
const QString description()
Definition: resource.h:33
CAResource::name
const QString name()
Definition: resource.h:30
CAFiguredBassContext
Context for keeping the figured bass marks.
Definition: figuredbasscontext.h:16
CANote::stemDirection
CAStemDirection stemDirection()
Definition: note.h:42
CAResource::resourceType
const CAResourceType resourceType()
Definition: resource.h:39
diatonicpitch.h
CACanorusMLExport::exportFiguredBass
void exportFiguredBass(CAFiguredBassContext *c, QDomElement &domParent)
Definition: canorusmlexport.cpp:343
CACanorusMLExport
Definition: canorusmlexport.h:22
CAMusElement::markList
const QList< CAMark * > markList()
Definition: muselement.h:70
CAContext::name
const QString name()
Definition: context.h:29
CAKeySignature::MajorMinor
@ MajorMinor
Definition: keysignature.h:22
CARepeatMark::repeatMarkType
CARepeatMarkType repeatMarkType()
Definition: repeatmark.h:34
CACanorusMLExport::exportPlayableLength
void exportPlayableLength(CAPlayableLength l, QDomElement &domParent)
Definition: canorusmlexport.cpp:471
functionmarkcontext.h
CAFiguredBassContext::figuredBassMarkList
QList< CAFiguredBassMark * > & figuredBassMarkList()
Definition: figuredbasscontext.h:27
CATimeSignature::timeSignatureTypeToString
static const QString timeSignatureTypeToString(CATimeSignatureType)
Definition: timesignature.cpp:114
CAInstrumentChange::instrument
const int instrument()
Definition: instrumentchange.h:24
CAMark::Tempo
@ Tempo
Definition: mark.h:20
CATempo::bpm
int bpm()
Definition: tempo.h:22
CARepeatMark::Volta
@ Volta
Definition: repeatmark.h:19
CACanorusMLExport::exportVoiceImpl
void exportVoiceImpl(CAVoice *voice, QDomElement &dVoice)
Definition: canorusmlexport.cpp:208
CAKeySignature::modusToString
static const QString modusToString(CAModus)
Definition: keysignature.cpp:169
CADiatonicKey
Musical key.
Definition: diatonickey.h:15
CACrescendo::crescendoType
const CACrescendoType crescendoType()
Definition: crescendo.h:30
CADocument::textTranslator
const QString textTranslator()
Definition: document.h:42
CAResource::copy
bool copy(QString fileName)
Definition: resource.cpp:59
CAClef::offset
int offset()
Definition: clef.h:59
CAFunctionMarkContext::functionMarkList
const QList< CAFunctionMark * > & functionMarkList()
Definition: functionmarkcontext.h:25
CAPlayableLength::musicLengthToString
static const QString musicLengthToString(CAMusicLength length)
Definition: playablelength.cpp:75
repeatmark.h
CAClef::clefTypeToString
static const QString clefTypeToString(CAClefType)
Definition: clef.cpp:147
CANote::StemPreferred
@ StemPreferred
Definition: note.h:25
CAPlayable::tuplet
CATuplet * tuplet()
Definition: playable.h:28
CARepeatMark::repeatMarkTypeToString
static const QString repeatMarkTypeToString(CARepeatMarkType t)
Definition: repeatmark.cpp:46
crescendo.h
CACrescendo
Crescendo and Decrescendo marks.
Definition: crescendo.h:15
CAFile::stream
QTextStream * stream()
Definition: file.h:36
CARitardando::ritardandoType
const CARitardandoType ritardandoType()
Definition: ritardando.h:30
CAMark::RepeatMark
@ RepeatMark
Definition: mark.h:29
CAVoice::stemDirection
CANote::CAStemDirection stemDirection()
Definition: voice.h:98
CAResource
Different resources included in the file.
Definition: resource.h:15
CAMusElement::TimeSignature
@ TimeSignature
Definition: muselement.h:30
CAMark::markType
CAMarkType markType()
Definition: mark.h:45
CALyricsContext::stanzaNumber
int stanzaNumber()
Definition: lyricscontext.h:43
ritardando.h
functionmark.h
CAMusElement::Undefined
@ Undefined
Definition: muselement.h:24
CAFingering::fingerNumberToString
static const QString fingerNumberToString(CAFingerNumber n)
Definition: fingering.cpp:62
CAPlayableLength::musicLength
const CAMusicLength musicLength()
Definition: playablelength.h:34
CAMark::Fingering
@ Fingering
Definition: mark.h:31
CADocument::poet
const QString poet()
Definition: document.h:41
instrumentchange.h
CAVoice::midiProgram
unsigned char midiProgram()
Definition: voice.h:107
CACanorusMLExport::CACanorusMLExport
CACanorusMLExport(QTextStream *stream=0)
Definition: canorusmlexport.cpp:52
CAFunctionMarkContext
Context for function marks.
Definition: functionmarkcontext.h:19
CAMark::markTypeToString
static const QString markTypeToString(CAMarkType t)
Definition: mark.cpp:44
CAFingering
Finger marks.
Definition: fingering.h:16
keysignature.h
CAMusElement::timeLength
virtual int timeLength() const
Definition: muselement.h:53
CAMusElement::color
const QColor color()
Definition: muselement.h:67
dynamic.h
fingering.h
CADocument::copyright
const QString copyright()
Definition: document.h:44
CANote::phrasingSlurEnd
CASlur * phrasingSlurEnd()
Definition: note.h:52
CAMark::Articulation
@ Articulation
Definition: mark.h:30
CAKeySignature::keySignatureType
CAKeySignatureType keySignatureType()
Definition: keysignature.h:47
CADynamic
Absolute dynamic marks.
Definition: dynamic.h:16
syllable.h
CAMark::Ritardando
@ Ritardando
Definition: mark.h:21
CABarline::barlineTypeToString
static const QString barlineTypeToString(CABarlineType)
Definition: barline.cpp:65
CASlur::slurDirectionToString
static const QString slurDirectionToString(CASlurDirection dir)
Definition: slur.cpp:116
CAFermata
Fermata mark.
Definition: fermata.h:16
CADiatonicPitch::noteName
const int noteName() const
Definition: diatonicpitch.h:50
CADiatonicPitch
Musical note pitch.
Definition: diatonicpitch.h:16
resource.h
CANote::tieStart
CASlur * tieStart()
Definition: note.h:47
CAClef::clefType
CAClefType clefType()
Definition: clef.h:51
CAMusElement::Syllable
@ Syllable
Definition: muselement.h:34
CATempo
Tempo mark.
Definition: tempo.h:14
CAVoice::midiChannel
unsigned char midiChannel()
Definition: voice.h:104
fermata.h
CALyricsContext::associatedVoice
CAVoice * associatedVoice()
Definition: lyricscontext.h:41
text.h
CAMusElement::FunctionMark
@ FunctionMark
Definition: muselement.h:35
CAFingering::fingerList
const QList< CAFingerNumber > & fingerList()
Definition: fingering.h:41
CAMusElement::KeySignature
@ KeySignature
Definition: muselement.h:31
CARest::restTypeToString
static const QString restTypeToString(CARestType)
Definition: rest.cpp:64
CAResource::isLinked
bool isLinked()
Definition: resource.h:42
CAFermata::fermataType
CAFermataType fermataType()
Definition: fermata.h:32
CAVoice::musElementList
const QList< CAMusElement * > & musElementList()
Definition: voice.h:47
diatonickey.h
CABookMark::text
const QString text()
Definition: bookmark.h:19
CAPlayable::isFirstInTuplet
bool isFirstInTuplet()
Definition: playable.h:35
CANote::isFirstInChord
bool isFirstInChord()
Definition: note.cpp:166
CADocument::sheetList
const QList< CASheet * > & sheetList()
Definition: document.h:26
CAContext::FunctionMarkContext
@ FunctionMarkContext
Definition: context.h:25
CABarline::barlineType
CABarlineType barlineType()
Definition: barline.h:36
CAStaff
Represents a staff in the sheet.
Definition: staff.h:25
CAMusElement
An abstract class which represents every music element in the score.
Definition: muselement.h:21
CAContext::contextType
CAContextType contextType()
Definition: context.h:32
CADocument::title
const QString title()
Definition: document.h:37
CASlur::slurDirection
CASlurDirection slurDirection()
Definition: slur.h:46
articulation.h
CANote::slurStart
CASlur * slurStart()
Definition: note.h:49
CADiatonicKey::gender
const CAGender gender()
Definition: diatonickey.h:43
figuredbassmark.h
CAMusElement::Rest
@ Rest
Definition: muselement.h:26
CAClef::c1
const int c1()
Definition: clef.h:52
CADiatonicPitch::accs
const int accs() const
Definition: diatonicpitch.h:51
CAMusElement::isPlayable
bool isPlayable()
Definition: muselement.cpp:78
CADiatonicKey::diatonicPitch
CADiatonicPitch diatonicPitch()
Definition: diatonickey.h:42
CAPlayableLength
Musical length of notes and rests.
Definition: playablelength.h:16
CAPlayableLength::dotted
const int dotted()
Definition: playablelength.h:35
playablelength.h
CACanorusMLExport::~CACanorusMLExport
virtual ~CACanorusMLExport()
Definition: canorusmlexport.cpp:56
CAKeySignature
Represents a key signature sign in the staff.
Definition: keysignature.h:19
CABookMark
A bookmark shortcut.
Definition: bookmark.h:14
CADocument::timeEdited
const unsigned int timeEdited()
Definition: document.h:47
CACanorusMLExport::exportDiatonicKey
void exportDiatonicKey(CADiatonicKey k, QDomElement &domParent)
Definition: canorusmlexport.cpp:483
CARepeatMark
Repeat marks like segno, volta, coda etc.
Definition: repeatmark.h:15
CAMark::InstrumentChange
@ InstrumentChange
Definition: mark.h:25
CATimeSignature::timeSignatureType
CATimeSignatureType timeSignatureType()
Definition: timesignature.h:42
CARepeatMark::voltaNumber
int voltaNumber()
Definition: repeatmark.h:37
CAMusElement::Note
@ Note
Definition: muselement.h:25
sheet.h
CATimeSignature::beats
int beats()
Definition: timesignature.h:34
CADocument::subtitle
const QString subtitle()
Definition: document.h:38
CADocument::resourceList
const QList< CAResource * > & resourceList()
Definition: document.h:33
CALyricsContext
One stanza line of lyrics.
Definition: lyricscontext.h:19
CAMusElement::FiguredBassMark
@ FiguredBassMark
Definition: muselement.h:36
timesignature.h
context.h
barline.h
CAMusElement::timeStart
virtual int timeStart() const
Definition: muselement.h:51
muselement.h
bookmark.h
CAKeySignature::diatonicKey
CADiatonicKey diatonicKey()
Definition: keysignature.h:50
CANote::diatonicPitch
CADiatonicPitch & diatonicPitch()
Definition: note.h:35
CAContext
Line of music elements in the sheet.
Definition: context.h:16
CADocument::arranger
const QString arranger()
Definition: document.h:40
CAFunctionMark::functionTypeToString
static const QString functionTypeToString(CAFunctionType)
Definition: functionmark.cpp:141
CAContext::FiguredBassContext
@ FiguredBassContext
Definition: context.h:26
CADocument::dateLastModified
const QDateTime dateLastModified()
Definition: document.h:46
CAContext::LyricsContext
@ LyricsContext
Definition: context.h:24
tempo.h
CAFile::setProgress
void setProgress(const int progress)
Definition: file.h:34
CABarline
Music element which represents a barline in the score.
Definition: barline.h:17
CAText
Text sign.
Definition: text.h:14
CAMark
Marks that depend on other music elements.
Definition: mark.h:15
CAMark::Undefined
@ Undefined
Definition: mark.h:18
voice.h
CAFingering::isOriginal
bool isOriginal()
Definition: fingering.h:45
CAInstrumentChange
Instrument change during the score.
Definition: instrumentchange.h:16
clef.h
CAArticulation::articulationType
CAArticulationType articulationType()
Definition: articulation.h:56
CAVoice::name
const QString name()
Definition: voice.h:101
CAStaff::numberOfLines
int numberOfLines()
Definition: staff.h:30
CADiatonicKey::genderToString
static const QString genderToString(CAGender)
Definition: diatonickey.cpp:121
CAKeySignature::Modus
@ Modus
Definition: keysignature.h:23
CATimeSignature::beat
int beat()
Definition: timesignature.h:37
CACanorusMLExport::exportMarks
void exportMarks(CAMusElement *associatedElt, QDomElement &domParent)
Definition: canorusmlexport.cpp:364
CAMark::Fermata
@ Fermata
Definition: mark.h:28
staff.h
CAMark::Text
@ Text
Definition: mark.h:19
CALyricsContext::syllableList
const QList< CASyllable * > & syllableList()
Definition: lyricscontext.h:34
CAExport::out
QTextStream & out()
Definition: export.h:71
lyricscontext.h
CAExport
Base class for export filters.
Definition: export.h:22
CAMark::Dynamic
@ Dynamic
Definition: mark.h:22
CARest::restType
CARestType restType()
Definition: rest.h:28
CAFile::file
QFile * file()
Definition: file.h:39
CAMusElement::musElementType
CAMusElementType musElementType()
Definition: muselement.h:46
mark.h
CATempo::beat
CAPlayableLength beat()
Definition: tempo.h:24
CAMark::BookMark
@ BookMark
Definition: mark.h:26
CAPlayable::playableLength
CAPlayableLength & playableLength()
Definition: playable.h:23
CAKeySignature::modus
CAModus modus()
Definition: keysignature.h:51
CAVoice::midiPitchOffset
char midiPitchOffset()
Definition: voice.h:110
CASlur::slurStyleToString
static const QString slurStyleToString(CASlurStyle style)
Definition: slur.cpp:92
CAMusElement::Slur
@ Slur
Definition: muselement.h:32
export.h