synfig-studio  1.0.3
layerencapsulateswitch.h
Go to the documentation of this file.
1 /* === S Y N F I G ========================================================= */
21 /* ========================================================================= */
22 
23 /* === S T A R T =========================================================== */
24 
25 #ifndef __SYNFIG_APP_ACTION_LAYERENCAPSULATESWITCH_H
26 #define __SYNFIG_APP_ACTION_LAYERENCAPSULATESWITCH_H
27 
28 /* === H E A D E R S ======================================================= */
29 
30 #include <synfig/layer.h>
31 #include <synfigapp/action.h>
32 #include <list>
33 #include <synfig/canvas.h>
34 
35 /* === M A C R O S ========================================================= */
36 
37 /* === T Y P E D E F S ===================================================== */
38 
39 /* === C L A S S E S & S T R U C T S ======================================= */
40 
41 namespace synfigapp {
42 
43 namespace Action {
44 
46  public Super
47 {
48 private:
49  synfig::Canvas::Handle child_canvas;
50  synfig::String description;
51  std::list<synfig::Layer::Handle> layers;
52 
53  int lowest_depth()const;
54 
55 public:
56 
58 
59  static ParamVocab get_param_vocab();
60  static bool is_candidate(const ParamList &x);
61 
62  virtual bool set_param(const synfig::String& name, const Param &);
63  virtual bool is_ready()const;
64 
65  virtual void prepare();
66 
68 };
69 
70 }; // END of namespace action
71 }; // END of namespace studio
72 
73 /* === E N D =============================================================== */
74 
75 #endif