Planeshift
|
This class draws a musical staff on the widget and creates notes and chords that it can represent on the staff. More...
#include <pawssheetline.h>
Public Member Functions | |
virtual void | Draw () |
Draws the widget and all of it's children. | |
void | DrawDoubleLine (int x, int y, int height) |
Draw the double line for the end of the sheet or for a repeat. | |
bool | GetDoubleStaff () |
Gets the staff status (double or single). | |
SheetLine * | GetLine () |
Gets the sheet line drawn by this widget. | |
virtual bool | OnMouseDown (int button, int modifiers, int x, int y) |
Manage mouse down event to test for and apply window changes. | |
pawsSheetLine () | |
Constructor. | |
virtual bool | PostSetup () |
This is called after the widget and all of it's children have been created. | |
void | SetDoubleStaff (bool doubleStaff) |
Sets the staff to be double or single. | |
void | SetLine (SheetLine *sheetLine, bool resize=true) |
Sets the line to draw on the staff and update its size. | |
virtual | ~pawsSheetLine () |
Destructor. |
This class draws a musical staff on the widget and creates notes and chords that it can represent on the staff.
At the moment it supports only the font Sonora.
Definition at line 651 of file pawssheetline.h.
pawsSheetLine::pawsSheetLine | ( | ) |
Constructor.
virtual pawsSheetLine::~pawsSheetLine | ( | ) | [virtual] |
Destructor.
virtual void pawsSheetLine::Draw | ( | ) | [virtual] |
Draws the widget and all of it's children.
Reimplemented from pawsWidget.
Draw the double line for the end of the sheet or for a repeat.
x | the ending horizontal position of the thick line (the second one). |
y | the starting vertical position. |
height | the height of the double line. |
bool pawsSheetLine::GetDoubleStaff | ( | ) | [inline] |
Gets the staff status (double or single).
Definition at line 681 of file pawssheetline.h.
SheetLine* pawsSheetLine::GetLine | ( | ) | [inline] |
Gets the sheet line drawn by this widget.
Definition at line 668 of file pawssheetline.h.
Manage mouse down event to test for and apply window changes.
button | Type of button: 1 resizable or movable, 2 context menu or config window. |
modifiers | Used with PAWS_CONSTRUCTION. |
x | Used to test for resize. |
y | Used to test for resize. |
Reimplemented from pawsWidget.
virtual bool pawsSheetLine::PostSetup | ( | ) | [virtual] |
This is called after the widget and all of it's children have been created.
Reimplemented from pawsWidget.
void pawsSheetLine::SetDoubleStaff | ( | bool | doubleStaff | ) |
Sets the staff to be double or single.
doubleStaff | true to set double staff, false to set single. |
void pawsSheetLine::SetLine | ( | SheetLine * | sheetLine, |
bool | resize = true |
||
) |
Sets the line to draw on the staff and update its size.
sheetLine | the line to be drawn. |
resize | true to resize the given line and its following, false to not resize. |