Verovio
Source code documentation
vrv::EditorToolkitMensural Class Reference
Inheritance diagram for vrv::EditorToolkitMensural:
vrv::EditorToolkitShared vrv::EditorToolkit

Public Member Functions

 EditorToolkitMensural (Doc *doc, View *view)
 
- 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)
 
std::string EditInfo () override
 Get information on the last editor function used.
 
- Public Member Functions inherited from vrv::EditorToolkit
 EditorToolkit (Doc *doc, View *view)
 

Additional Inherited Members

- Protected Member Functions inherited from vrv::EditorToolkitShared
void SetEditInfo ()
 
void PrepareUndo ()
 
std::string GetCurrentState ()
 
bool ReloadState (const std::string &data)
 
void TrimUndoMemory ()
 
bool CanUndo () const
 
bool CanRedo () const
 
bool Undo ()
 
bool Redo ()
 
void ClearContext ()
 
bool ContextForElement (std::string &elementId)
 
bool ContextForScores (bool editInfo)
 
bool ContextForSections (bool editInfo)
 
ObjectGetChainedElement (std::string &elementId)
 
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)
 
bool Chain (jsonxx::Array actions)
 Parse JSON instructions for experimental editor functions.
 
bool ParseContextAction (jsonxx::Object param, std::string &elementId, bool &scores, bool &sections)
 
bool ParseDeleteAction (jsonxx::Object param, std::string &elementId)
 
bool ParseDragAction (jsonxx::Object param, std::string &elementId, int &x, int &y)
 
bool ParseKeyDownAction (jsonxx::Object param, std::string &elementid, int &key, bool &shiftKey, bool &ctrlKey)
 
bool ParseInsertAction (jsonxx::Object param, std::string &elementName, std::string &elementId, std::string &insertMode)
 
bool ParseSetAction (jsonxx::Object param, std::string &elementId, std::string &attribute, std::string &value)
 
bool Delete (std::string &elementId)
 Experimental editor functions.
 
bool Drag (std::string &elementId, int x, int y)
 
bool KeyDown (std::string &elementId, int key, bool shiftKey, bool ctrlKey)
 
bool Set (std::string &elementId, std::string const &attribute, std::string const &value)
 
- Protected Member Functions inherited from vrv::EditorToolkit
bool AppendChild (const std::string &elementId, const std::string &elementName)
 
bool InsertBefore (const std::string &elementId, const std::string &elementName)
 
bool InsertAfter (const std::string &elementId, const std::string &elementName)
 
ObjectGetElement (const std::string &elementId)
 
ObjectPrepareInsertion (Object *parent, const std::string &elementName)
 
- Protected Attributes inherited from vrv::EditorToolkitShared
std::string m_chainedId
 
bool m_undoPrepared
 
std::deque< std::string > m_undoStack
 
std::deque< std::string > m_redoStack
 
size_t m_undoMemoryUsage = 0
 
EditorTreeObjectm_scoreContext
 
EditorTreeObjectm_sectionContext
 
EditorTreeObjectm_currentContext
 
- Protected Attributes inherited from vrv::EditorToolkit
Docm_doc
 
Viewm_view
 
jsonxx::Object m_editInfo
 

The documentation for this class was generated from the following file: