![]() |
Verovio
Source code documentation
|
Public Member Functions | |
| EditorToolkitCMN (Doc *doc, View *view) | |
| bool | ParseEditorCMNAction (const jsonxx::Object &json_editorAction) |
Public Member Functions inherited from vrv::EditorToolkitShared | |
| EditorToolkitShared (Doc *doc, View *view) | |
| bool | ParseEditorAction (const std::string &json_editorAction) override |
| In child classes, this parses the provided editor action and then performs the correct action. | |
| bool | ParseEditorAction (const std::string &json_editorAction, bool commitOnly=false) |
Public Member Functions inherited from vrv::EditorToolkit | |
| EditorToolkit (Doc *doc, View *view) | |
| virtual std::string | EditStatus () |
| Get status of the editor (undo, selection, etc.) | |
| virtual std::string | EditResponse () |
| Get response on the last editor function used. | |
| void | OptionsChanged () |
| Increase the option change count. | |
Protected Types | |
| enum | CursorInsertType : int8_t { CURSOR_INSERT_NONE = 0 , CURSOR_INSERT_REST , CURSOR_INSERT_TIE , CURSOR_INSERT_COPY } |
Protected Types inherited from vrv::EditorToolkitShared | |
| enum | SelectCustom : int8_t { SELECT_NONE = 0 , SELECT_NOTE , SELECT_TEXT_PARENT } |
| enum | DeleteNavigation : int8_t { DELETE_NO_NAVIGATON = 0 , DELETE_BACKSPACE , DELETE_FORWARD } |
| enum | ScoreDefUpdate : int8_t { INSERT_ABOVE = 0 , INSERT_BELOW , MOVE_UP , MOVE_DOWN , DELETE_STAFF } |
| bool | ParseInsertCursorByDurAction (const jsonxx::Object ¶m, data_DURATION &dur, int &dots) |
| Parse JSON instructions for experimental editor functions. | |
| bool | ParseInsertCursorByPitchAction (const jsonxx::Object ¶m, data_PITCHNAME &pname, int &oct, data_ACCIDENTAL_WRITTEN &accid, int &midi) |
| bool | ParseInsertCursorByTypeAction (const jsonxx::Object ¶m, CursorInsertType &insertType) |
| bool | ParseInsertCursorContainerAction (const jsonxx::Object ¶m, ClassId &container) |
| bool | ParseInsertMeasureAction (const jsonxx::Object ¶m, std::string &elementId, int &number, bool &insertBefore) |
| bool | ParseInsertScoreDefAction (const jsonxx::Object ¶m, std::string &elementId, bool &insertBefore) |
| bool | ParseInsertNoteAction (const jsonxx::Object ¶m, std::string &elementId, data_PITCHNAME &pname, int &oct, data_ACCIDENTAL_WRITTEN &accid, data_ACCIDENTAL_GESTURAL &accidGes, data_DURATION &dur, int &dots, bool &chordMode) |
| bool | ParseInsertRestAction (const jsonxx::Object ¶m, std::string &elementId, data_DURATION &dur, int &dots) |
| bool | ParseResetCursorContainerAction (const jsonxx::Object ¶m, ClassId &container) |
| bool | InsertCursorByDur (data_DURATION dur, int dots) |
| bool | InsertCursorByPitch (data_PITCHNAME pname, int oct, data_ACCIDENTAL_WRITTEN accid, int midi) |
| bool | InsertCursorByType (CursorInsertType insertType) |
| bool | InsertCursorContainer (ClassId container) |
| bool | InsertMeasure (std::string &elementId, int number, bool insertBefore) |
| bool | InsertScoreDef (std::string &elementId, bool insertBefore) |
| bool | InsertNote (const std::string &elementId, data_PITCHNAME pname, int oct, data_ACCIDENTAL_WRITTEN accid, data_ACCIDENTAL_GESTURAL accidGes, data_DURATION dur, int dots, bool chordMode) |
| bool | InsertRest (const std::string &elementId, data_DURATION dur, int dots) |
| bool | ResetCursorContainer (ClassId container) |
Additional Inherited Members | |
Protected Member Functions inherited from vrv::EditorToolkitShared | |
| void | SetEditStatus () |
| void | ReloadEditStatus (const std::string &statusStr, bool insertMode) |
| void | PrepareUndo (bool ignoreInsertMode=false) |
| std::string | GetCurrentState () |
| bool | ReloadState (const State &state) |
| void | TrimUndoMemory () |
| bool | CanUndo () const |
| bool | CanRedo () const |
| bool | Undo () |
| bool | Redo () |
| void | ClearContext () |
| bool | ContextForElement (std::string &elementId) |
| bool | ContextForScores (bool updateResponse) |
| bool | ContextForSections (bool updateResponse) |
| bool | GetScoreDef () |
| bool | GetScoreDefKeySig (bool selected) |
| bool | GetScoreDefMeterSig (bool selected) |
| bool | GetScoreDefStaffDef () |
| bool | GetScoreDefStaffGrp (bool selected) |
| bool | SetScoreDef (const jsonxx::Object &subTree) |
| bool | SetScoreDefKeySig (bool selected, const jsonxx::Object &subTree) |
| bool | SetScoreDefMeterSig (bool selected, const jsonxx::Object &subTree) |
| bool | SetScoreDefStaffDef (const jsonxx::Object &subTree) |
| bool | SetScoreDefStaffGrp (bool selected, const jsonxx::Object &subTree) |
| bool | UpdateScoreDef (ScoreDefUpdate update) |
| ScoreDef * | ResolveScoreDef (bool selected) |
| Staff * | ResolveScoreDefStaff () |
| void | FinalizeScoreDefUpdate () |
| void | ContextForObject (const Object *object, jsonxx::Object &element, bool recursive=false) |
| void | ContextForObjects (const ArrayOfConstObjects &objects, jsonxx::Array &siblings) |
| void | ContextForReferences (const ListOfObjectAttNamePairs &objects, jsonxx::Array &links) |
| ArrayOfConstObjects | GetScoreBasedChildrenFor (const Object *object) |
| void | PostProcessDeleteObjects (const Object *element, std::set< std::string > &toPostProcess) |
| void | PostProcessDelete (const std::string &elementId) |
| void | PostEditRestriction (Object *element) |
| void | MoveCursor (LayerElement *element, bool maintainChordMode=false) |
| data_ACCIDENTAL_WRITTEN | GetAccidBefore (const LayerElement *element, data_PITCHNAME pname, int oct) |
| std::pair< data_ACCIDENTAL_WRITTEN, bool > | GetActualAccid (Object *element, data_ACCIDENTAL_WRITTEN accid) |
| const Measure * | GetPreviousMeasure (const Measure *measure) |
| const Staff * | GetPreviousStaff (const Staff *staff) |
| const Layer * | GetPreviousLayer (const Layer *layer) |
| const Measure * | GetNextMeasure (const Measure *measure) |
| const Staff * | GetNextStaff (const Staff *staff) |
| const Layer * | GetNextLayer (const Layer *layer) |
| bool | Chain (const jsonxx::Array &actions) |
| Parse JSON instructions for experimental editor functions. | |
| bool | ParseContextAction (const jsonxx::Object ¶m, std::string &elementId, bool &scores, bool §ions) |
| bool | ParseDeleteAction (const jsonxx::Object ¶m, std::string &elementId, DeleteNavigation &navigation) |
| bool | ParseDragAction (const jsonxx::Object ¶m, std::string &elementId, int &x, int &y) |
| bool | ParseKeyDownAction (const jsonxx::Object ¶m, std::string &elementid, int &key, bool &shiftKey, bool &ctrlKey) |
| bool | ParseInsertAction (const jsonxx::Object ¶m, std::string &elementName, std::string &elementId, std::string &insertMode) |
| bool | ParseInsertControlAction (const jsonxx::Object ¶m, std::string &elementName, std::string &startId, std::string &endId) |
| bool | ParseNavigate (const jsonxx::Object ¶m, std::string &elementId, int &direction) |
| bool | ParseGetScoreDefAction (const jsonxx::Object ¶m) |
| bool | ParseGetScoreDefKeySigAction (const jsonxx::Object ¶m, bool &selected) |
| bool | ParseGetScoreDefMeterSigAction (const jsonxx::Object ¶m, bool &selected) |
| bool | ParseGetScoreDefStaffDefAction (const jsonxx::Object ¶m) |
| bool | ParseGetScoreDefStaffGrpAction (const jsonxx::Object ¶m, bool &selected) |
| bool | ParseResetCursorAction (const jsonxx::Object ¶m, bool &maintainChordMode) |
| bool | ParseSelectAction (const jsonxx::Object ¶m, std::string &elementId, bool &secondary, SelectCustom &custom) |
| bool | ParseSetAction (const jsonxx::Object ¶m, std::string &elementId, std::string &attribute, std::string &value) |
| bool | ParseSetCursorAction (const jsonxx::Object ¶m, std::string &elementId, Cursor::InputMode &inputMode, bool &chordMode, bool &autoBeam) |
| bool | ParseUpdateCursorAction (const jsonxx::Object ¶m, bool &restMode, bool &chordMode, Cursor::TieMode &tieMode, bool &autoBeam) |
| bool | ParseUpdatePitchAction (const jsonxx::Object ¶m, std::string &elementId, data_PITCHNAME &pname, int &oct, data_ACCIDENTAL_WRITTEN &accid, int &midi) |
| bool | ParseSetScoreDefAction (const jsonxx::Object ¶m, jsonxx::Object &subTree) |
| bool | ParseSetScoreDefKeySigAction (const jsonxx::Object ¶m, bool &selected, jsonxx::Object &subTree) |
| bool | ParseSetScoreDefMeterSigAction (const jsonxx::Object ¶m, bool &selected, jsonxx::Object &subTree) |
| bool | ParseSetScoreDefStaffDefAction (const jsonxx::Object ¶m, jsonxx::Object &subTree) |
| bool | ParseSetScoreDefStaffGrpAction (const jsonxx::Object ¶m, bool &selected, jsonxx::Object &subTree) |
| bool | ParseUpdateScoreDefAction (const jsonxx::Object ¶m, ScoreDefUpdate &update) |
| bool | SetCursor (std::string &elementId, Cursor::InputMode inputMode, bool chordMode, bool autoBeam) |
| Experimental editor functions. | |
| bool | UpdateCursor (bool restMode, bool chordMode, Cursor::TieMode tieMode, bool autoBeam) |
| bool | ResetCursor (bool maintainChordMode) |
| bool | Delete (std::string &elementId, DeleteNavigation navigation) |
| bool | Drag (std::string &elementId, int x, int y) |
| bool | InsertControl (std::string &elementName, std::string &startId, std::string &endId) |
| bool | KeyDown (std::string &elementId, int key, bool shiftKey, bool ctrlKey) |
| bool | Navigate (std::string &elementId, const int &direction) |
| bool | Select (std::string &elementId, bool secondary, SelectCustom custom) |
| bool | Set (std::string &elementId, const std::string &attribute, const std::string &value) |
| bool | UpdatePitch (std::string &elementId, data_PITCHNAME pname, int oct, data_ACCIDENTAL_WRITTEN accid, int midi) |
Protected Member Functions inherited from vrv::EditorToolkit | |
| void | ResetSelect () |
| bool | AppendChild (std::string &elementId, const std::string &elementName, bool unique) |
| bool | InsertBefore (std::string &elementId, const std::string &elementName) |
| bool | InsertAfter (std::string &elementId, const std::string &elementName) |
| Object * | GetElement (const std::string &elementId) |
| Object * | PrepareInsertion (Object *parent, const std::string &elementName) |
| Object * | ResolveElement (std::string &elementId, bool chain=true) |
| bool | InsertMode () const |
Protected Attributes inherited from vrv::EditorToolkitShared | |
| bool | m_undoPrepared |
| std::deque< State > | m_undoStack |
| std::deque< State > | m_redoStack |
| size_t | m_undoMemoryUsage = 0 |
| EditorTreeObject * | m_scoreContext |
| EditorTreeObject * | m_sectionContext |
| EditorTreeObject * | m_currentContext |
Protected Attributes inherited from vrv::EditorToolkit | |
| std::string | m_chainedId |
| std::string | m_selectionId |
| ClassId | m_selectionClassId |
| std::string | m_selectionSecondaryId |
| Cursor * | m_cursor |
| Doc * | m_doc |
| View * | m_view |
| jsonxx::Object | m_editStatus |
| jsonxx::Object | m_editResponse |
| int | m_options |
| Record option changes | |