synfig-studio
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
gui
dials
jackdial.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
24
/* ========================================================================= */
25
26
/* === S T A R T =========================================================== */
27
28
#ifndef __SYNFIG_STUDIO_JACKDIAL_H
29
#define __SYNFIG_STUDIO_JACKDIAL_H
30
31
/* === H E A D E R S ======================================================= */
32
33
#include <gtkmm/tooltip.h>
34
#include <gtkmm/table.h>
35
#include <gtkmm/button.h>
36
#include <gtkmm/togglebutton.h>
37
38
#include "general.h"
39
40
#include <
gui/widgets/widget_time.h
>
41
42
/* === M A C R O S ========================================================= */
43
44
/* === T Y P E D E F S ===================================================== */
45
46
/* === C L A S S E S & S T R U C T S ======================================= */
47
48
namespace
studio
49
{
50
51
class
JackDial
:
public
Gtk::Table
52
{
53
Gtk::ToggleButton *toggle_jack;
54
Widget_Time
*offset;
55
56
Gtk::ToggleButton *create_icon(Gtk::IconSize iconsize,
const
char
* stockid,
const
char
* tooltip);
57
58
public
:
59
JackDial
();
60
Glib::SignalProxy0<void>
signal_toggle_jack
() {
return
toggle_jack->signal_toggled(); }
61
Gtk::ToggleButton *
get_toggle_jackbutton
() {
return
toggle_jack; }
62
Widget_Time
*
get_offsetwidget
() {
return
offset; }
63
64
sigc::signal<void>&
signal_offset_changed
() {
return
offset->
signal_value_changed
(); }
65
66
void
set_offset
(
const
synfig::Time &value) { offset->
set_value
(value); }
67
synfig::Time
get_offset
()
const
{
return
offset->
get_value
(); }
68
void
set_fps
(
float
value) { offset->
set_fps
(value); }
69
};
// END of class FrameDial
70
71
};
// END of namespace studio
72
73
74
/* === E N D =============================================================== */
75
76
#endif
Generated on Mon Nov 16 2015 15:36:43 for synfig-studio by
1.8.1.2