Dev:Action System

From Synfig Studio :: Documentation
Revision as of 22:25, 7 September 2010 by Nikitakit (Talk | contribs) (Initial notes)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page is a work-in-progress documentation of the action system. At the moment there are only some brief notes.


Types of actions

  • Inherit from Super
    • can only call other actions
    • implement a prepare() method to create sub-actions


  • Inherit from Undoable and CanvasSpecific
    • implement perform() and undo()
  • Get_Param_Vocab
    • Get the parent param vocab "ParamVocab ret(Action::CanvasSpecific::get_param_vocab());"
    • Then add parameters to it e.g. " ret.push_back(ParamDesc("new_value",Param::TYPE_VALUE).set_local_name(_("ValueBase")));"