|
class PrPartEditorContains pure virtuals #include <prPartEditor.h> Inherited by: PrScoreEditor |
Part * part ()
returns the part currently edited
Part * part (int i)
returns the part i
Part * setPart (int i)
sets the current part
int parts ()
returns the number of parts edited by this editor
char * name ()
returns the name of the part currently edited
Part * moveDown ()
moves one track down and returns the current part
Part * moveUp ()
moves one track up and returns the current part
char * cLeft ()
returns the left position as char
char * cRight ()
returns the right position as char
Position left ()
returns the left position as Position
Position right ()
returns the right position as Position
void moveleft (int i=1)
moves the positions one bar to the left
void moveright (int i=1)
moves the positions one bar to the right
void rewind (Part * part=0)
moves the positions to the left position. Unless the part is specified, the currently selected part is used
void wind (Position p)
moves the positions to the specified position offset.
void wind (int bar)
moves the positions to the specified bar offset
bool currentInc (Part * pt=0, long ticks=0)
always call rewind() before using currentInc(). This calls the part's currentInc() method. Unless the part is specified, the currently selected part is used
void zoomin ()
zooms in
void zoomout ()
zooms out
int length ()
returns the current length value in ticks
int totalLength ()
returns the current length value in ticks, including increase through dots.
int lengthOrd ()
returns the current length value as an ordered int (1, ..., 7)
void setLength (int)
sets the length value as ticks
void setLengthOrd (int)
sets the length value as an ordered int (1, ..., 7)
int dot ()
returns the number of dots
void setDot (int)
sets the number of dots
bool triplet ()
returns true in triplet mode
void setTriplet (bool)
sets the triplet mode
int enharmonicShift ()
returns the enharmonic shift value (-2=bb, -1=b, 0=nat, 1=#, 2=x).
void setEnharmonicShift (int)
sets the enharmonic shift value (-2=bb, -1=b, 0=nat, 1=#, 2=x).
void update () [pure virtual]
implement this for your own editor
Note * getGrabNote (long pos, int pitch, bool & tail)
if a note exists at the specified pitch and position (up to the note's end) this note is returned, or zero else
long snap (long pos)
the specified position is quantized and returned
Event * currentEvent ()
if the selection contains exactly one event, it is returned by this method. Null otherwise
void gui (GuiEvents ev, bool flag) [pure virtual]
enables and disables the gui buttons for the GuiEvents: changes, undo, redo, selection and memory
void print () [pure virtual]
prints the editor's content
void settings () [pure virtual]
the editor's settings
Generated by: wuerthne@clouseau on Fri Jan 19 23:08:00 200. |