00001
00021
00022
00023
00024
00025 #ifndef __SYNFIG_STUDIO_WIDGET_DEFAULTS_H
00026 #define __SYNFIG_STUDIO_WIDGET_DEFAULTS_H
00027
00028
00029
00030 #include <gtkmm/drawingarea.h>
00031 #include <gtkmm/table.h>
00032 #include <synfig/gradient.h>
00033 #include "widget_gradient.h"
00034 #include <gtkmm/tooltips.h>
00035
00036
00037
00038
00039
00040
00041
00042 namespace Gtk { class HScale; }
00043
00044 namespace studio {
00045
00046 class Widget_Brush;
00047 class Widget_Color;
00048 class Widget_Distance;
00049 class Widget_Enum;
00050
00051 class Widget_Defaults : public Gtk::Table
00052 {
00053 Widget_Brush *widget_brush;
00054 Widget_Color *widget_otln_color;
00055 Widget_Color *widget_fill_color;
00056 Widget_Distance *widget_bline_width;
00057 Widget_Gradient *widget_gradient;
00058 Widget_Enum *widget_blend_method;
00059 Widget_Enum *widget_interpolation;
00060 Gtk::HScale *widget_opacity;
00061
00062 void otln_color_refresh();
00063 void fill_color_refresh();
00064 void gradient_refresh();
00065 void bline_width_refresh();
00066 void interpolation_refresh();
00067
00068 void on_bline_width_changed();
00069 void on_otln_color_clicked();
00070 void on_fill_color_clicked();
00071 void on_swap_color_clicked();
00072 void on_reset_color_clicked();
00073 void on_gradient_clicked();
00074 void on_interpolation_changed();
00075
00076 void blend_method_refresh();
00077 void on_blend_method_changed();
00078
00079 void opacity_refresh();
00080 void on_opacity_changed();
00081
00082 Gtk::Tooltips tooltips_;
00083
00084 public:
00085
00086 Widget_Defaults();
00087
00088 ~Widget_Defaults();
00089
00090
00091
00092
00093 };
00094
00095 };
00096
00097
00098
00099 #endif