Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
drawablemark.h
Go to the documentation of this file.
1 
9 #include "core/fingering.h"
10 #include "core/mark.h"
11 
12 #ifndef DRAWABLEMARK_H_
13 #define DRAWABLEMARK_H_
14 
15 class CADrawableStaff;
16 class CANote;
17 class CADrawableNote;
18 
20 public:
22  virtual ~CADrawableMark();
23 
24  void draw( QPainter *p, CADrawSettings s );
25  CADrawableMark *clone( CADrawableContext* newContext = 0 );
26  inline CAMark *mark() { return static_cast<CAMark*>(musElement()); }
27 
28  inline void setRehersalMarkNumber( int n ) { _rehersalMarkNumber = n; }
29  inline int rehersalMarkNumber() { return _rehersalMarkNumber; }
30 
31  static QString fingerListToString( const QList<CAFingering::CAFingerNumber> list );
32 
33 private:
34  static const double DEFAULT_TEXT_SIZE;
35  static const double DEFAULT_PIXMAP_SIZE;
38  QPixmap *_pixmap;
40 };
41 
42 #endif /* DRAWABLEMARK_H_ */