Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
/home/iurt/rpm/BUILD/canorus-0.7.R1002/src/drawable/drawablesyllable.h
Go to the documentation of this file.
00001 
00008 #ifndef DRAWABLESYLLABLE_H_
00009 #define DRAWABLESYLLABLE_H_
00010 
00011 #include "drawable/drawablemuselement.h"
00012 #include "core/syllable.h"
00013 
00014 class CASyllable;
00015 class CADrawableLyricsContext;
00016 
00017 class CADrawableSyllable : public CADrawableMusElement {
00018 public:
00019         CADrawableSyllable( CASyllable*, CADrawableLyricsContext*, double x, double y );
00020         ~CADrawableSyllable();
00021         void draw(QPainter *p, const CADrawSettings s);
00022         CADrawableSyllable *clone(CADrawableContext *c=0);
00023 
00024         CASyllable *syllable() { return static_cast<CASyllable*>(musElement()); }
00025 
00026         static const double DEFAULT_TEXT_SIZE;
00027         static const double DEFAULT_DASH_LENGTH;
00028 
00029 private:
00030         inline const QString textToDrawableText( QString in ) { return in.replace("_", " "); }
00031 };
00032 
00033 #endif /* DRAWABLESYLLABLE_H_ */