[kooBase Index] [kooBase Hierarchy] [Headers]
Qt Editor More...
#include <qtEditor.h>
Inherits: KTopLevelWidget, IfEditor
This class contains the basic functionality of a qt editor. Concrete editors like ScoreEditor, DrumEditor and PianoRollEditor are derived from this.
[public]
Constructor. Call this constructor from your editorīs constructor with the following arguments:
all | if this is true, the variable partList is filled with all parts (but the muted), (the score editor makes use of this) |
name | the name of your editor, which just appears in the window titlebar of your editor. |
author | your name: It appears in the editorīs about box of the optionmenu ;-) |
kbpart | the part that shall be displayed in your editor (you usually have this as a parameter for your constructor) |
[public]
Initialization of the fundamental editor attributes. Call this from your constructor as well.
[public]
returns the current editor setting of the length value. (You have to provide a way to change this value yourself. E.g. in the score-editor I provide a buttonbar the user can select the length value from, the default value is 4). You can use any types of values, even midi-ticks. The score-editor uses different codings: A length value of 1 represents 1536 midi-ticks (a whole note), a length value of 2 represents 768 midi-ticks (a half note), 3 is 384 midi-ticks (a quarter), 4 is 192 midi-ticks (an eigth note), 5 is 96 midi-ticks (a sixteenth note), etc. There are additional methods for triplets and dotted notes (see below).
[public]
sets the length value
[public]
returns the dot value.
[public]
sets the dot value
[public]
returns the triplet value
[public]
sets the triplet value
[public virtual]
override this method to add extra functionality to the options menu of your editor
[public virtual]
override this method. It is called when the user selects the "settings" entry of the "System" menu. (E.g. the score editorcalls the key-clef-and-meter chooser).
[public]
If a note is selected, this returns the notes address
[public]
sets the selected Note
[public]
returns the part under consideration
[public slot virtual]
override this method to get your own presentation of the part.
[public slot]
This is called when an entry of the file menu is selected.
[public slot]
This is called when an entry of the system menu is selected.
[public slot]
This is called when an entry of the selection menu is selected.
[public slot virtual]
Override this method if you have declared any entries for the options menu. This is called when an entry of the options menu is selected.
[public slot]
This is called when an entry of the snap menu is selected.
[public slot]
This is called when an entry of the velocity menu is selected.
[public slot]
This is called when an button of the panel is pressed.
[public slot]
This is called when a new position is entered in the "insert" text field.
[public slot virtual]
override this method to let your editor react on mouse press events
[public slot virtual]
override this method to let your editor react on mouse move events
[public slot virtual]
override this method to let your editor react on mouse release events
[public slot virtual]
override this method to let your editor react on key press events
[public slot virtual]
override this method to let your editor react on key release events
| Kdoc |