Lomse library. API documentation
0.30.0
|
#include <lomse_command.h>
A command for inserting a group of consecutive staff objects (e.g. note, rest, clef, barline, etc.).
See constructor for details.
Public Member Functions | |
CmdInsertManyStaffObjs (const std::string &source, const std::string &name="Insert staff objects") | |
int | get_cursor_update_policy () override |
int | get_undo_policy () override |
int | get_selection_update_policy () override |
Public Member Functions inherited from CmdInsert | |
ImoId | last_inserted_id () |
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 |
CmdInsertManyStaffObjs::CmdInsertManyStaffObjs | ( | const std::string & | source, |
const std::string & | name = "Insert staff objects" |
||
) |
This command inserts, in a single operation, a group of consecutive staff objects (e.g. note, rest, clef, barline, etc.) having a common relation between them (e.g. a chord, a group of beamed notes, etc.) although it can also be used for inserting unrelated consecutive staff objects.
source | The source code of the elements to insert. It must be in LDP format. |
name | The displayable name for the command. If not specified will be replaced by "Insert staff objects". |
Remarks
|
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.