1 /* === S Y N F I G ========================================================= */
2 /*! \file dialog_color.h
3 ** \brief Template Header
5 ** $Id: dialog_color.h,v 1.1.1.1 2005/01/07 03:34:36 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 __SYNFIG_STUDIO_DIALOG_COLOR_H
25 #define __SYNFIG_STUDIO_DIALOG_COLOR_H
27 /* === H E A D E R S ======================================================= */
30 #include <gtkmm/adjustment.h>
31 #include <gtkmm/table.h>
32 #include <gtkmm/button.h>
33 #include <gtkmm/dialog.h>
34 #include <gtkmm/drawingarea.h>
35 #include <gtkmm/optionmenu.h>
36 #include <gtkmm/checkbutton.h>
38 #include <synfig/gamma.h>
39 #include <synfig/time.h>
41 #include "widget_coloredit.h"
43 #include <synfigapp/value_desc.h>
44 #include <synfig/time.h>
46 #include "dialogsettings.h"
48 /* === M A C R O S ========================================================= */
50 /* === T Y P E D E F S ===================================================== */
52 /* === C L A S S E S & S T R U C T S ======================================= */
54 namespace Gtk { class Menu; class SpinButton; class Adjustment; };
57 class CanvasInterface;
64 class Dialog_Color : public Gtk::Dialog
66 DialogSettings dialog_settings;
68 sigc::signal<void,synfig::Color> signal_edited_;
69 //sigc::signal<void,synfig::Color> signal_apply_;
71 bool on_close_pressed();
72 void on_apply_pressed();
73 void on_color_changed();
75 Widget_ColorEdit* widget_color;
80 bool busy()const { return busy_; }
82 sigc::signal<void,synfig::Color>& signal_edited() { return signal_edited_; }
84 //sigc::signal<void,synfig::Color>& signal_apply() { return signal_apply_; }
86 void set_color(const synfig::Color& x) { widget_color->set_value(x); }
88 synfig::Color get_color()const { return widget_color->get_value(); }
96 // void edit(const synfigapp::ValueDesc &x, etl::handle<synfigapp::CanvasInterface> canvas_interface, synfig::Time x=0);
97 }; // END of Dialog_Color
99 }; // END of namespace studio
101 /* === E N D =============================================================== */