1 /* === S I N F G =========================================================== */
2 /*! \file widget_defaults.h
3 ** \brief Template Header
5 ** $Id: widget_defaults.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
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.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SINFG_STUDIO_WIDGET_DEFAULTS_H
25 #define __SINFG_STUDIO_WIDGET_DEFAULTS_H
27 /* === H E A D E R S ======================================================= */
29 #include <gtkmm/drawingarea.h>
30 #include <gtkmm/table.h>
31 #include <sinfg/gradient.h>
32 #include "widget_gradient.h"
33 #include <gtkmm/tooltips.h>
35 /* === M A C R O S ========================================================= */
37 /* === T Y P E D E F S ===================================================== */
39 /* === C L A S S E S & S T R U C T S ======================================= */
41 namespace Gtk { class HScale; }
47 class Widget_Distance;
50 class Widget_Defaults : public Gtk::Table
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;
61 void fg_color_refresh();
62 void bg_color_refresh();
63 void gradient_refresh();
64 void bline_width_refresh();
65 void interpolation_refresh();
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();
75 void blend_method_refresh();
76 void on_blend_method_changed();
78 void opacity_refresh();
79 void on_opacity_changed();
81 Gtk::Tooltips tooltips_;
89 // bool redraw(GdkEventExpose*bleh=NULL);
91 // bool on_event(GdkEvent *event);
92 }; // END of class BlackLevelSelector
94 }; // END of namespace studio
96 /* === E N D =============================================================== */