00001
00024
00025
00026
00027
00028 #ifndef __SYNFIG_STUDIO_KEYFRAMEDIAL_H
00029 #define __SYNFIG_STUDIO_KEYFRAMEDIAL_H
00030
00031
00032
00033 #include <gtkmm/tooltips.h>
00034 #include <gtkmm/table.h>
00035 #include <gtkmm/button.h>
00036
00037 #include "general.h"
00038
00039
00040
00041
00042
00043
00044
00045 namespace studio
00046 {
00047
00048 class KeyFrameDial : public Gtk::Table
00049 {
00050 Gtk::Tooltips tooltips;
00051
00052 Gtk::Button *seek_prev_keyframe;
00053 Gtk::Button *seek_next_keyframe;
00054 Gtk::Button *lock_keyframe;
00055
00056 Gtk::Button *create_icon(Gtk::IconSize iconsize, const char * stockid, const char * tooltip);
00057 Gtk::Button *create_icon(Gtk::IconSize iconsize, const Gtk::BuiltinStockID & stockid, const char * tooltip);
00058
00059 public:
00060
00061 KeyFrameDial();
00062 Glib::SignalProxy0<void> signal_seek_prev_keyframe() { return seek_prev_keyframe->signal_clicked(); }
00063 Glib::SignalProxy0<void> signal_seek_next_keyframe() { return seek_next_keyframe->signal_clicked(); }
00064 Glib::SignalProxy0<void> signal_lock_keyframe() { return lock_keyframe->signal_clicked(); }
00065 Gtk::Button *get_lock_button() { return lock_keyframe; }
00066
00067 };
00068
00069 };
00070
00071
00072
00073
00074 #endif