00001
00021
00022
00023
00024
00025 #ifndef __SYNFIG_APP_ACTION_LAYERPARAMSET_H
00026 #define __SYNFIG_APP_ACTION_LAYERPARAMSET_H
00027
00028
00029
00030 #include <synfig/layer.h>
00031 #include <synfigapp/action.h>
00032
00033
00034
00035
00036
00037
00038
00039 namespace synfigapp {
00040
00041 class Instance;
00042
00043 namespace Action {
00044
00045 class LayerParamSet :
00046 public Undoable,
00047 public CanvasSpecific
00048 {
00049 private:
00050
00051 synfig::Layer::Handle layer;
00052 synfig::String param_name;
00053 synfig::ValueBase new_value;
00054 synfig::ValueBase old_value;
00055
00056
00057 public:
00058
00059 LayerParamSet();
00060
00061 static ParamVocab get_param_vocab();
00062 static bool is_candidate(const ParamList &x);
00063
00064 virtual bool set_param(const synfig::String& name, const Param &);
00065 virtual bool is_ready()const;
00066
00067 virtual void perform();
00068 virtual void undo();
00069
00070 ACTION_MODULE_EXT
00071 };
00072
00073 };
00074 };
00075
00076
00077
00078 #endif