|
|
All operations are derived from the abstract class Operation. For user defined operations there exists another abstract class - Addon - which itself inherits from Operation (read the information about Addon and the sample addon - Dump - if you are interested in writing addons).
And if you write your own addon: Don't forget to implement the destructor to clean up memory and avoid memory leaks !!
The following operations exist so far: ADDELEMENT, REMOVEELEMENT, CONVERTTRACK, MOVEPART, COPYPART, COPYGHOSTPART, MOVEEVENT, COPYEVENT, CHANGENOTE, GLUENOTE, SPLITNOTE, ADDORNAMENT, REMOVEORNAMENT, ADDSYMBOL, ADDTOSELECTION, REMOVEFROMSELECTION, NEWSELECTION, SELECTLEFT, SELECTRIGHT, UNSELECT, SPLITPART, GLUEPARTS, COPYSELECTION, CUTSELECTION, PASTESELECTION, DELETESELECTION
const char * _description | _description |
[protected]
bool _to_be_undone | _to_be_undone |
[protected]
Operation ()
| Operation |
Default Constructor
~Operation ()
| ~Operation |
[virtual]
The destructor has definitely to be implemented: I.e. deleted notes, parts, tracks(!) have to be remembered in order to be able to undo the operation. Deleting the operation-object means to free the memory!
void undo ()
| undo |
[pure virtual]
Implemented for undoable operations
void redo ()
| redo |
[pure virtual]
Implemented for undoable operations
const char * description ()
| description |
Returns the description of an operation
bool isToBeUndone ()
| isToBeUndone |
Returns true if the operation is undoable
void toBeUndone ()
| toBeUndone |
Sets the undoable flag to true
bool isEvent ()
| isEvent |
[const virtual]
Always returns false, since operations never are events
Reimplemented from Element.
Generated by: wuerthne on al on Sun Jan 6 22:32:42 2002, using kdoc 2.0a53. |