![]() |
Lomse library. API documentation
0.30.0
|
#include <lomse_command.h>
A command for inserting a note or a rest.
See constructor for details.
Public Member Functions | |
| CmdAddNoteRest (const std::string &source, int editMode, const std::string &name="") | |
| int | get_cursor_update_policy () override |
| int | get_undo_policy () override |
| int | get_selection_update_policy () override |
Public Member Functions inherited from DocCmdSimple | |
| virtual | ~DocCmdSimple () |
| bool | is_composite () override |
Public Member Functions inherited from DocCommand | |
| virtual | ~DocCommand () |
| std::string | get_name () |
| bool | is_reversible () |
| bool | is_recordable () |
| std::string | get_error () |
Additional Inherited Members | |
Public Types inherited from DocCommand | |
| enum | ECmdCursorPolicy |
| enum | ECmdUndoPolicy |
| enum | ECmdSelectionPolicy |
| CmdAddNoteRest::CmdAddNoteRest | ( | const std::string & | source, |
| int | editMode, | ||
| const std::string & | name = "" |
||
| ) |
This command adds a new note or rest at current cursor position.
| source | LDP source code for the note or rest to insert. |
| editMode | Edition mode for executing the command. It must be a value from EEditMode, either k_edit_mode_replace or k_edit_mode_ripple. See Supported edition modes. Attention: Currently this parameter is ignored and the command always work in replace mode. |
| name | The displayable name for the command. If not specified or empty will default to "Add note" or "Add rest" depending on object to insert. |
Remarks
Example
|
inlineoverridevirtual |
Returns a value from ECmdCursorPolicy that indicates the update policy followed by this command.
Implements DocCommand.
|
inlineoverridevirtual |
Returns a value from ECmdSelectionPolicy that indicates the undo policy followed by this command.
Implements DocCommand.
|
inlineoverridevirtual |
Returns a value from ECmdUndoPolicy that indicates the undo policy followed by this command.
Implements DocCommand.