00001
00024
00025
00026
00027
00028 #ifndef __SYNFIG_STUDIO_RESOLUTIONDIAL_H
00029 #define __SYNFIG_STUDIO_RESOLUTIONDIAL_H
00030
00031
00032
00033 #include <gtkmm/tooltips.h>
00034 #include <gtkmm/table.h>
00035 #include <gtkmm/checkbutton.h>
00036 #include "duckmatic.h"
00037
00038 #include "general.h"
00039
00040
00041
00042
00043
00044
00045
00046
00047 namespace studio
00048 {
00049
00050 class ResolutionDial : public Gtk::Table
00051 {
00052 Gtk::Tooltips tooltips;
00053
00054 Gtk::Button *increase_resolution;
00055 Gtk::Button *decrease_resolution;
00056 Gtk::CheckButton *use_low_resolution;
00057
00058 Gtk::Button *create_icon(Gtk::IconSize size, const Gtk::BuiltinStockID & stockid, const char * tooltip);
00059 Gtk::CheckButton *create_check(const char *text, const char *tooltip);
00060
00061 public:
00062
00063 ResolutionDial();
00064
00065 void update_lowres(bool flag);
00066 Glib::SignalProxy0<void> signal_increase_resolution() { return increase_resolution->signal_clicked(); }
00067 Glib::SignalProxy0<void> signal_decrease_resolution() { return decrease_resolution->signal_clicked(); }
00068 Glib::SignalProxy0<void> signal_use_low_resolution() { return use_low_resolution-> signal_toggled(); }
00069
00070 };
00071
00072 };
00073
00074
00075
00076
00077 #endif