Logo Search packages:      
Sourcecode: canorus version File versions  Download package

CALilyPondExport Class Reference

#include <lilypondexport.h>

Inheritance diagram for CALilyPondExport:

CAExport CAFile

List of all members.


Detailed Description

LilyPond export filter This class is used to export the document or parts of the document to LilyPond syntax. The most common use is to simply call one of the constructors.

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.

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.

      CALilyPondExport( myDocument, &textStream );

textStream is usually the file stream or the content of the score source view widget.

See also:
CALilyPondImport

Definition at line 27 of file lilypondexport.h.


Signals

void documentExported (CADocument *)
void exportDone (int status)
void functionMarkContextExported (CAFunctionMarkContext *)
void lyricsContextExported (CALyricsContext *)
void sheetExported (CASheet *)
void staffExported (CAStaff *)
void voiceExported (CAVoice *)

Public Member Functions

 CALilyPondExport (QTextStream *out=0)
CAContextcurContext ()
int curContextIndex ()
int curIndentLevel ()
CASheetcurSheet ()
CAVoicecurVoice ()
void exportDocument (CADocument *, bool bStartThread=true)
CADocumentexportedDocument ()
CAFunctionMarkContextexportedFunctionMarkContext ()
CALyricsContextexportedLyricsContext ()
CASheetexportedSheet ()
CAStaffexportedStaff ()
CAVoiceexportedVoice ()
void exportFunctionMarkContext (CAFunctionMarkContext *)
void exportLyricsContext (CALyricsContext *)
void exportSheet (CASheet *)
void exportStaff (CAStaff *)
void exportVoice (CAVoice *)
const int progress ()
virtual const QString readableStatus ()
void setStreamFromDevice (QIODevice *device)
void setStreamFromFile (const QString filename)
void setStreamToDevice (QIODevice *device)
virtual void setStreamToFile (const QString filename)
const int status ()
bool wait (unsigned long time=ULONG_MAX)

Protected Member Functions

virtual void exportFunctionMarkContextImpl (CAFunctionMarkContext *)
virtual void exportStaffImpl (CAStaff *)
QFile * file ()
QTextStream & out ()
void run ()
void setFile (QFile *file)
void setProgress (const int progress)
void setStatus (const int status)
virtual void setStream (QTextStream *stream)
QTextStream * stream ()

Private Member Functions

const QString barlineTypeToLilyPond (CABarline::CABarlineType type)
const QString clefTypeToLilyPond (CAClef::CAClefType type, int c1, int offset)
const QString diatonicKeyGenderToLilyPond (CADiatonicKey::CAGender gender)
const QString diatonicPitchToLilyPond (CADiatonicPitch p)
void doAnacrusisCheck (CATimeSignature *time)
QString escapeWeirdChars (QString)
void exportDocumentImpl (CADocument *doc)
void exportLyricsContextBlock (CALyricsContext *lc)
void exportLyricsContextImpl (CALyricsContext *lc)
void exportMarks (CAMusElement *)
void exportPlayable (CAPlayable *elt)
void exportScoreBlock (CASheet *sheet)
void exportSheetImpl (CASheet *sheet)
void exportStaffVoices (CAStaff *staff)
void exportVoiceImpl (CAVoice *voice)
void indent ()
void indentLess ()
void indentMore ()
QString markupString (QString)
const QString playableLengthToLilyPond (CAPlayableLength length)
const QString relativePitchToString (CADiatonicPitch p, CADiatonicPitch prevPitch)
const QString relativePitchToString (CANote *note, CADiatonicPitch prevPitch)
const QString restTypeToLilyPond (CARest::CARestType type)
void setCurContext (CAContext *context)
void setCurContextIndex (int c)
void setCurSheet (CASheet *sheet)
void setCurVoice (CAVoice *voice)
void setIndentLevel (int level)
void spellNumbers (QString &s)
const QString syllableToLilyPond (CASyllable *s)
void voiceVariableName (QString &name, int staffNum, int voiceNum)
void writeDocumentHeader ()
CADiatonicPitch writeRelativeIntro ()

Private Attributes

CAContext_curContext
int _curContextIndex
int _curIndentLevel
CASheet_curSheet
int _curStreamTime
CAVoice_curVoice
CADiatonicPitch _lastNotePitch
CAPlayableLength _lastPlayableLength
QTextStream * _out

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

Generated by  Doxygen 1.6.0   Back to index