8 #ifndef __VRV_EDITOR_TOOLKIT_CMN_H__
9 #define __VRV_EDITOR_TOOLKIT_CMN_H__
18 #include "editortoolkit.h"
36 bool ParseEditorAction(
const std::string &json_editorAction,
bool commitOnly =
false);
40 #ifndef NO_EDIT_SUPPORT
45 bool Chain(jsonxx::Array actions);
46 bool ParseDeleteAction(jsonxx::Object param, std::string &elementId);
47 bool ParseDragAction(jsonxx::Object param, std::string &elementId,
int &x,
int &y);
48 bool ParseKeyDownAction(jsonxx::Object param, std::string &elementid,
int &key,
bool &shiftKey,
bool &ctrlKey);
49 bool ParseInsertAction(jsonxx::Object param, std::string &elementType, std::string &startid, std::string &endid);
50 bool ParseSetAction(jsonxx::Object param, std::string &elementId, std::string &attribute, std::string &value);
58 bool Drag(std::string &elementId,
int x,
int y);
59 bool KeyDown(std::string &elementId,
int key,
bool shiftKey,
bool ctrlKey);
60 bool Insert(std::string &elementType, std::string
const &startid, std::string
const &endid);
61 bool Insert(std::string &elementType, std::string
const &startid);
62 bool Set(std::string &elementId, std::string
const &attribute, std::string
const &value);
65 bool InsertNote(
Object *
object);
67 bool DeleteNote(
Note *note);
69 Object *GetElement(std::string &elementId);
74 std::string m_chainedId;
This class is a hold the data and corresponds to the model of a MVC design pattern.
Definition: doc.h:41
This class models the MEI <note> element.
Definition: note.h:67
This class represents a basic object.
Definition: object.h:61
This class is a drawing context and corresponds to the view of a MVC design pattern.
Definition: view.h:106