synfig-studio
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
gui
widgets
widget_bonechooser.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_STUDIO_WIDGET_BONECHOOSER_H
26
#define __SYNFIG_STUDIO_WIDGET_BONECHOOSER_H
27
28
/* === H E A D E R S ======================================================= */
29
30
#include <vector>
31
32
#include <synfig/canvas.h>
33
#include <synfig/valuenodes/valuenode_bone.h>
34
#include <gtkmm/comboboxtext.h>
35
#include <
synfigapp/value_desc.h
>
36
37
38
/* === M A C R O S ========================================================= */
39
40
/* === T Y P E D E F S ===================================================== */
41
42
/* === C L A S S E S & S T R U C T S ======================================= */
43
44
namespace
Gtk {
class
Menu; };
45
46
namespace
studio {
47
48
class
Widget_BoneChooser
:
public
Gtk::ComboBoxText
49
{
50
synfig::Canvas::Handle
parent_canvas;
51
synfigapp::ValueDesc
value_desc;
52
std::vector<synfig::ValueNode_Bone::Handle> bones;
53
54
synfig::ValueNode_Bone::Handle
bone;
55
void
set_value_(
synfig::ValueNode_Bone::Handle
data);
56
57
protected
:
58
virtual
void
on_changed
();
59
60
public
:
61
62
Widget_BoneChooser
();
63
~Widget_BoneChooser
();
64
65
void
set_parent_canvas
(
synfig::Canvas::Handle
x);
66
void
set_value
(
synfig::ValueNode_Bone::Handle
data);
67
const
synfig::ValueNode_Bone::Handle
&
get_value
();
68
69
void
set_value_desc
(
const
synfigapp::ValueDesc
&x) { value_desc=x; }
70
const
synfigapp::ValueDesc
&
get_value_desc
() {
return
value_desc; }
71
72
};
// END of class Widget_BoneChooser
73
74
};
// END of namespace studio
75
76
/* === E N D =============================================================== */
77
78
#endif
Generated on Mon Nov 16 2015 15:36:58 for synfig-studio by
1.8.1.2