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

Public Member Functions

 EditorToolkitNeume (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.
 
std::string EditInfo () override
 Get information on the last editor function used.
 
bool AddSyl (std::string elementId, std::string sylText)
 Experimental editor functions.
 
bool Chain (jsonxx::Array actions)
 
bool DisplaceClefOctave (std::string elementId, std::string direction)
 
bool Drag (std::string elementId, int x, int y, bool topLevel=true)
 
bool Insert (std::string elementType, std::string staffId, int ulx, int uly, int lrx, int lry, std::vector< std::pair< std::string, std::string >> attributes)
 
bool InsertToSyllable (std::string elementId)
 
bool MatchHeight (std::string elementId)
 
bool Merge (std::vector< std::string > elementIds)
 
bool MoveOutsideSyllable (std::string elementId)
 
bool Set (std::string elementId, std::string attrType, std::string attrValue)
 
bool SetText (std::string elementId, const std::string &text)
 
bool SetClef (std::string elementId, std::string shape)
 
bool SetLiquescent (std::string elementId, std::string shape)
 
bool SortStaves ()
 
bool Split (std::string elementId, int x)
 
bool SplitNeume (std::string elementId, std::string ncId)
 
bool Remove (std::string elementId)
 
bool Resize (std::string elementId, int ulx, int uly, int lrx, int lry, float resize=NAN)
 
bool Group (std::string groupType, std::vector< std::string > elementIds)
 
void UnlinkSyllable (Syllable *syllable)
 
bool Ungroup (std::string groupType, std::vector< std::string > elementIds)
 
bool ChangeGroup (std::string elementId, std::string contour)
 
bool ToggleLigature (std::vector< std::string > elementIds)
 
bool ChangeStaff (std::string elementId)
 
bool ChangeStaffTo (std::string elementId, std::string staffId)
 
bool ClefMovementHandler (Clef *clef, int x, int y)
 
- Public Member Functions inherited from vrv::EditorToolkit
 EditorToolkit (Doc *doc, View *view)
 

Protected Member Functions

bool ParseAddSylAction (jsonxx::Object param, std::string *elementId, std::string *sylText)
 Parse JSON instructions for experimental editor functions.
 
bool ParseDisplaceClefAction (jsonxx::Object param, std::string *elementId, std::string *direction)
 
bool ParseDragAction (jsonxx::Object param, std::string *elementId, int *x, int *y)
 
bool ParseInsertAction (jsonxx::Object param, std::string *elementType, std::string *startId, std::string *endId)
 
bool ParseInsertAction (jsonxx::Object param, std::string *elementType, std::string *staffId, int *ulx, int *uly, int *lrx, int *lry, std::vector< std::pair< std::string, std::string >> *attributes)
 
bool ParseInsertToSyllableAction (jsonxx::Object param, std::string *elementId)
 
bool ParseMatchHeightAction (jsonxx::Object param, std::string *elementId)
 
bool ParseMergeAction (jsonxx::Object param, std::vector< std::string > *elementIds)
 
bool ParseMoveOutsideSyllableAction (jsonxx::Object param, std::string *elementId)
 
bool ParseSetAction (jsonxx::Object param, std::string *elementId, std::string *attrType, std::string *attrValue)
 
bool ParseSetTextAction (jsonxx::Object param, std::string *elementId, std::string *text)
 
bool ParseSetClefAction (jsonxx::Object param, std::string *elementId, std::string *shape)
 
bool ParseSetLiquescentAction (jsonxx::Object param, std::string *elementId, std::string *shape)
 
bool ParseSplitAction (jsonxx::Object param, std::string *elementId, int *x)
 
bool ParseSplitNeumeAction (jsonxx::Object param, std::string *elementId, std::string *ncId)
 
bool ParseRemoveAction (jsonxx::Object param, std::string *elementId)
 
bool ParseResizeAction (jsonxx::Object param, std::string *elementId, int *ulx, int *uly, int *lrx, int *lry)
 
bool ParseResizeRotateAction (jsonxx::Object param, std::string *elementId, int *ulx, int *uly, int *lrx, int *lry, float *rotate)
 
bool ParseGroupAction (jsonxx::Object param, std::string *groupType, std::vector< std::string > *elementIds)
 
bool ParseUngroupAction (jsonxx::Object param, std::string *groupType, std::vector< std::string > *elementIds)
 
bool ParseChangeGroupAction (jsonxx::Object param, std::string *elementId, std::string *contour)
 
bool ParseToggleLigatureAction (jsonxx::Object param, std::vector< std::string > *elementIds)
 
bool ParseChangeStaffAction (jsonxx::Object param, std::string *elementId)
 
bool ParseChangeStaffToAction (jsonxx::Object param, std::string *elementId, std::string *staffId)
 
bool AdjustPitchAfterDrag (Object *obj, int y=0)
 Helper functions for editor actions.
 
bool AdjustPitchFromPosition (Object *obj)
 
bool AdjustClefLineFromPosition (Clef *clef, Staff *staff=NULL)
 

Additional Inherited Members

- 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: