Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
CACanorusMLExport Class Reference

#include <canorusmlexport.h>

Inheritance diagram for CACanorusMLExport:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CACanorusMLExport (QTextStream *stream=0)
virtual ~CACanorusMLExport ()
void exportDocumentImpl (CADocument *doc)

Private Member Functions

void exportVoiceImpl (CAVoice *voice, QDomElement &dVoice)
void exportMarks (CAMusElement *associatedElt, QDomElement &domParent)
void exportPlayableLength (CAPlayableLength l, QDomElement &domParent)
void exportDiatonicPitch (CADiatonicPitch p, QDomElement &domParent)
void exportDiatonicKey (CADiatonicKey k, QDomElement &domParent)
void exportColor (CAMusElement *elt, QDomElement &domParent)
void exportTime (CAMusElement *elt, QDomElement &domParent)
void exportResources (CADocument *, QDomElement &)

Private Attributes

QDomElement _dTuplet
QColor _color

Constructor & Destructor Documentation

CACanorusMLExport::CACanorusMLExport ( QTextStream *  stream = 0)

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.


Member Function Documentation

void CACanorusMLExport::exportColor ( CAMusElement elt,
QDomElement &  domParent 
) [private]

References CAMusElement::color().

Referenced by exportMarks(), and exportVoiceImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void CACanorusMLExport::exportDiatonicKey ( CADiatonicKey  k,
QDomElement &  domParent 
) [private]

References CADiatonicKey::diatonicPitch(), exportDiatonicPitch(), CADiatonicKey::gender(), and CADiatonicKey::genderToString().

Referenced by exportDocumentImpl(), and exportVoiceImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void CACanorusMLExport::exportDiatonicPitch ( CADiatonicPitch  p,
QDomElement &  domParent 
) [private]

References CADiatonicPitch::accs(), and CADiatonicPitch::noteName().

Referenced by exportDiatonicKey(), and exportVoiceImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void CACanorusMLExport::exportMarks ( CAMusElement associatedElt,
QDomElement &  domParent 
) [private]
void CACanorusMLExport::exportPlayableLength ( CAPlayableLength  l,
QDomElement &  domParent 
) [private]

References CAPlayableLength::dotted(), CAPlayableLength::musicLength(), and CAPlayableLength::musicLengthToString().

Referenced by exportMarks(), and exportVoiceImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void CACanorusMLExport::exportResources ( CADocument doc,
QDomElement &  dCanorusDocument 
) [private]

Exports the resources to exported filename files/ directory.

There are 4 possible scenarios: 1) Linked resource, resource is remote (eg. http, https resource on the web): Only resource url is stored inside the xml file. 2) Linked resource, resource is local (eg. large video on the disk): Relative path to the resource is calculated from the directory where the document is being saved. 3) Attached resource: Resource is copied from the tmp/ directory to the directory where the document is being saved + "filename files/". eg. "content.xml files/myImageXXXX.png"

References CAResource::copy(), CAResource::description(), CAFile::file(), CAResource::isLinked(), CAResource::name(), CADocument::resourceList(), CAResource::resourceType(), CAResource::resourceTypeToString(), and CAResource::url().

Referenced by exportDocumentImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void CACanorusMLExport::exportTime ( CAMusElement elt,
QDomElement &  domParent 
) [private]

References CAMusElement::isPlayable(), CAMusElement::timeLength(), and CAMusElement::timeStart().

Referenced by exportVoiceImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void CACanorusMLExport::exportVoiceImpl ( CAVoice voice,
QDomElement &  dVoice 
) [private]

Used for writing the voice node in XML output. It uses DOM object internally for writing the XML output. This method is usually called by saveDocument().

See also:
exportDocumentImpl()
Todo:
Custom accidentals in key signature saving -Matevz

References _dTuplet, CATuplet::actualNumber(), CAMusElement::Barline, CABarline::barlineType(), CABarline::barlineTypeToString(), CATimeSignature::beat(), CATimeSignature::beats(), CAClef::c1(), CAMusElement::Clef, CAClef::clefType(), CAClef::clefTypeToString(), CAKeySignature::diatonicKey(), CANote::diatonicPitch(), exportColor(), exportDiatonicKey(), exportDiatonicPitch(), exportMarks(), exportPlayableLength(), exportTime(), CAPlayable::isFirstInTuplet(), CAMusElement::KeySignature, CAKeySignature::keySignatureType(), CAKeySignature::keySignatureTypeToString(), CAKeySignature::MajorMinor, CAKeySignature::Modus, CAKeySignature::modus(), CAKeySignature::modusToString(), CAVoice::musElementAt(), CAVoice::musElementCount(), CAMusElement::musElementType(), CAMusElement::Note, CATuplet::number(), CAClef::offset(), CANote::phrasingSlurEnd(), CANote::phrasingSlurStart(), CAPlayable::playableLength(), CAMusElement::Rest, CARest::restType(), CARest::restTypeToString(), CASlur::slurDirection(), CASlur::slurDirectionToString(), CANote::slurEnd(), CANote::slurStart(), CASlur::slurStyle(), CASlur::slurStyleToString(), CANote::stemDirection(), CANote::stemDirectionToString(), CANote::StemPreferred, CANote::tieStart(), CAMusElement::TimeSignature, CATimeSignature::timeSignatureType(), CATimeSignature::timeSignatureTypeToString(), and CAPlayable::tuplet().

Referenced by exportDocumentImpl().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

QColor CACanorusMLExport::_color [private]
QDomElement CACanorusMLExport::_dTuplet [private]

Referenced by exportVoiceImpl().


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