Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
drawablesyllable.h
Go to the documentation of this file.
1 
8 #ifndef DRAWABLESYLLABLE_H_
9 #define DRAWABLESYLLABLE_H_
10 
12 #include "core/syllable.h"
13 
14 class CASyllable;
16 
18 public:
19  CADrawableSyllable( CASyllable*, CADrawableLyricsContext*, double x, double y );
21  void draw(QPainter *p, const CADrawSettings s);
23 
24  CASyllable *syllable() { return static_cast<CASyllable*>(musElement()); }
25 
26  static const double DEFAULT_TEXT_SIZE;
27  static const double DEFAULT_DASH_LENGTH;
28 
29 private:
30  inline const QString textToDrawableText( QString in ) { return in.replace("_", " "); }
31 };
32 
33 #endif /* DRAWABLESYLLABLE_H_ */