class PrPartEditor


Contains pure virtuals
Definition#include <prPartEditor.h>
Inherited byPrScoreEditor
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

Table * _parts

_parts

[protected]

Reference * _current

_current

[protected]

Position _leftPos

_leftPos

[protected]

Position _rightPos

_rightPos

[protected]

int _current_length

_current_length

[protected]

int _current_enh

_current_enh

[protected]

int _current_vel

_current_vel

[protected]

int _current_dot

_current_dot

[protected]

int _current_tuplet

_current_tuplet

[protected]

int _current_tuplet_dur

_current_tuplet_dur

[protected]

char * _cLeft

_cLeft

[protected]

char * _cRight

_cRight

[protected]

int _bars

_bars

[protected]

int _grid

_grid

[protected]

int _resolution

_resolution

[protected]

bool _no_overlap

_no_overlap

[protected]

bool _color

_color

[protected]

bool _speaker

_speaker

[protected]

EditorType _type

_type

[protected]

void  adjustEventParameters ()

adjustEventParameters

[protected]

bool  handles (Track*)

handles

[protected const]

 PrPartEditor (EditorType type)

PrPartEditor

 PrPartEditor (Part * p)

PrPartEditor

 PrPartEditor (Track * t)

PrPartEditor

 ~PrPartEditor ()

~PrPartEditor

[virtual]

Part *  part ()

part

[const]

returns the part currently edited

int  partIndex ()

partIndex

Part *  part (int i)

part

returns the part i

Part *  setPart (int i)

setPart

sets the current part

int  parts ()

parts

[const]

returns the number of parts edited by this editor

const char *  name ()

name

[const]

returns the name of the part currently edited

Part *  moveDown ()

moveDown

moves one track down and returns the current part

Part *  moveUp ()

moveUp

moves one track up and returns the current part

char *  cLeft ()

cLeft

returns the left position as char

char *  cRight ()

cRight

returns the right position as char

Position  left ()

left

[const]

returns the left position as Position

Position  right ()

right

[const]

returns the right position as Position

void  moveleft (int i=1)

moveleft

moves the positions one bar to the left

void  moveright (int i=1)

moveright

moves the positions one bar to the right

void  moveselleft ()

moveselleft

moves the selection one element to the left

void  moveselright ()

moveselright

moves the selection one element to the right

void  wind (Position p)

wind

moves the positions to the specified position offset.

void  wind (int bar)

wind

moves the positions to the specified bar offset

void  zoomin ()

zoomin

zooms in

void  zoomout ()

zoomout

zooms out

int  numberOfBars ()

numberOfBars

[const]

returns the currently selected number of bars viewed

void  adjustRightPos ()

adjustRightPos

int  length ()

length

[const]

returns the current length value in ticks

int  totalLength ()

totalLength

[const]

returns the current length value in ticks, including increase through dots.

int  lengthOrd ()

lengthOrd

[const]

returns the current length value as an ordered int (1, ..., 7)

void  setLength (int)

setLength

sets the length value as ticks

void  setLengthOrd (int)

setLengthOrd

sets the length value as an ordered int (1, ..., 7)

int  dot ()

dot

[const]

returns the number of dots

void  setDot (int)

setDot

sets the number of dots

int  tuplet ()

tuplet

[const]

returns the base of the tuplet (3 for triplets, etc)

int  tupletDuration ()

tupletDuration

[const]

returns the tuplets total duration

void  setTuplet (int base, int duration=-1)

setTuplet

sets the tuplet base and the duration. If the duration is omitted, the default values are used: a quarter (384) for triplets, a dotted quarter (576) for quintlets

int  enharmonicShift ()

enharmonicShift

[const]

returns the enharmonic shift value (-2=bb, -1=b, 0=nat, 1=#, 2=x).

void  setEnharmonicShift (int)

setEnharmonicShift

sets the enharmonic shift value (-2=bb, -1=b, 0=nat, 1=#, 2=x).

int  velocity ()

velocity

[const]

void  setVelocity (int)

setVelocity

void  update ()

update

[pure virtual]

implement this for your own editor

Note *  getGrabNote (long pos, int pitch, bool & tail)

getGrabNote

if a note exists at the specified pitch and position (up to the note's end) this note is returned, or zero else

Event *  getGrabEvent (long pos)

getGrabEvent

if an event exists at the position this event is returned, or zero else

long  snap (long pos)

snap

[const]

the specified position is quantized and returned

int  grid ()

grid

[const]

void  setGrid (int)

setGrid

int  resolution ()

resolution

[const]

void  setPartResolution (int)

setPartResolution

bool  noOverlap ()

noOverlap

[const]

void  setNoOverlap (bool)

setNoOverlap

void  setCursorPosition (long ticks)

setCursorPosition

[pure virtual]

bool  color ()

color

[const]

bool  speaker ()

speaker

[const]

void  setColor (bool)

setColor

void  setSpeaker (bool)

setSpeaker

Event *  currentEvent ()

currentEvent

if the selection contains exactly one event, it is returned by this method. Null otherwise

char **  actionList ()

actionList

bool  isOfType (EditorType)

isOfType

[const]

void  gui (GuiEvents ev, bool flag)

gui

[pure virtual]

enables and disables the gui buttons for the GuiEvents: changes, undo, redo, selection and memory

void  print ()

print

[pure virtual]

prints the editor's content

void  settings ()

settings

[pure virtual]

the editor's settings

int  editorWidth ()

editorWidth

[const virtual]

the editor's width

bool  isScoreEditor ()

isScoreEditor

[const virtual]

is this a score editor?


Generated by: wuerthne on clouseau on Fri Sep 21 19:20:46 2001, using kdoc 2.0a53.