Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
drawablefunctionmarkcontext.h
Go to the documentation of this file.
1 
8 #ifndef DRAWABLEFUNCTIONMARKCONTEXT_H_
9 #define DRAWABLEFUNCTIONMARKCONTEXT_H_
10 
12 
14 
16  public:
19 
20  void draw(QPainter *p, const CADrawSettings s);
22 
23  void setNumberOfLines(int number) { _numberOfLines = number; }
24  int numberOfLines() { return _numberOfLines; }
25 
27  Upper, // used for function name in tonicization
28  Middle, // used for general function names
29  Lower // used for chord areas, ellipse sign etc.
30  };
31 
32  double yPosLine(CAFunctionMarkLine part); // Returns the Y coordinate of the top of the given line
34  int currentLineIdx() { return _currentLineIdx; }
35 
36  private:
37  int _numberOfLines; // Number of lines the context can consist. Usually, this number is 2. But when doing research on scores, this could be expanded
39 };
40 
41 #endif /* DRAWABLEFUNCTIONMARKCONTEXT_H_ */