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