my log
[synfig.git] / synfig-studio / trunk / src / gtkmm / widget_defaults.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file widget_defaults.h
3 **      \brief Template Header
4 **
5 **      $Id: widget_defaults.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SYNFIG_STUDIO_WIDGET_DEFAULTS_H
25 #define __SYNFIG_STUDIO_WIDGET_DEFAULTS_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include <gtkmm/drawingarea.h>
30 #include <gtkmm/table.h>
31 #include <synfig/gradient.h>
32 #include "widget_gradient.h"
33 #include <gtkmm/tooltips.h>
34
35 /* === M A C R O S ========================================================= */
36
37 /* === T Y P E D E F S ===================================================== */
38
39 /* === C L A S S E S & S T R U C T S ======================================= */
40
41 namespace Gtk { class HScale; }
42
43 namespace studio {
44
45 class Widget_Brush;
46 class Widget_Color;
47 class Widget_Distance;
48 class Widget_Enum;
49         
50 class Widget_Defaults : public Gtk::Table
51 {
52         Widget_Brush *widget_brush;
53         Widget_Color *widget_fg_color;
54         Widget_Color *widget_bg_color;
55         Widget_Distance *widget_bline_width;
56         Widget_Gradient *widget_gradient;
57         Widget_Enum     *widget_blend_method;
58         Widget_Enum     *widget_interpolation;
59         Gtk::HScale *widget_opacity;
60         
61         void fg_color_refresh();
62         void bg_color_refresh();
63         void gradient_refresh();
64         void bline_width_refresh();
65         void interpolation_refresh();
66         
67         void on_bline_width_changed();
68         void on_fg_color_clicked();
69         void on_bg_color_clicked();
70         void on_swap_color_clicked();
71         void on_reset_color_clicked();
72         void on_gradient_clicked();
73         void on_interpolation_changed();
74
75         void blend_method_refresh();
76         void on_blend_method_changed();
77
78         void opacity_refresh();
79         void on_opacity_changed();
80
81         Gtk::Tooltips tooltips_;
82         
83 public:
84         
85         Widget_Defaults();
86         
87         ~Widget_Defaults();
88
89 //      bool redraw(GdkEventExpose*bleh=NULL);
90
91 //      bool on_event(GdkEvent *event);
92 }; // END of class BlackLevelSelector
93
94 }; // END of namespace studio
95
96 /* === E N D =============================================================== */
97
98 #endif