Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
/home/iurt/rpm/BUILD/canorus-0.7.R1002/src/drawable/drawablemark.h
Go to the documentation of this file.
00001 
00008 #include "drawable/drawablemuselement.h"
00009 #include "core/fingering.h"
00010 #include "core/mark.h"
00011 
00012 #ifndef DRAWABLEMARK_H_
00013 #define DRAWABLEMARK_H_
00014 
00015 class CADrawableStaff;
00016 class CANote;
00017 class CADrawableNote;
00018 
00019 class CADrawableMark : public CADrawableMusElement {
00020 public:
00021         CADrawableMark( CAMark *mark, CADrawableContext *drawableContext, double x, double y);
00022         virtual ~CADrawableMark();
00023 
00024         void draw( QPainter *p, CADrawSettings s );
00025         CADrawableMark *clone( CADrawableContext* newContext = 0 );
00026         inline CAMark *mark() { return static_cast<CAMark*>(musElement()); }
00027 
00028         inline void setRehersalMarkNumber( int n ) { _rehersalMarkNumber = n; }
00029         inline int rehersalMarkNumber() { return _rehersalMarkNumber; }
00030 
00031         static QString fingerListToString( const QList<CAFingering::CAFingerNumber> list );
00032 
00033 private:
00034         static const double DEFAULT_TEXT_SIZE;
00035         static const double DEFAULT_PIXMAP_SIZE;
00036         CANote         *_tempoNote;
00037         CADrawableNote *_tempoDNote;
00038         QPixmap        *_pixmap;
00039         int             _rehersalMarkNumber;
00040 };
00041 
00042 #endif /* DRAWABLEMARK_H_ */