X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_coloredit.h;h=58238775fdcca030a435cf0702bdd97548b234f3;hb=c34eaa5441242b3e9a7b7645e9ee4983d14eae85;hp=2689638d1b5c25825474a43745a2c559b7df379d;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/widget_coloredit.h b/synfig-studio/trunk/src/gtkmm/widget_coloredit.h index 2689638..5823877 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_coloredit.h +++ b/synfig-studio/trunk/src/gtkmm/widget_coloredit.h @@ -5,16 +5,17 @@ ** $Id: widget_coloredit.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -60,10 +61,10 @@ public: TYPE_HUE, TYPE_SAT, TYPE_A, - + TYPE_END }; - + private: sigc::signal signal_slider_moved_; @@ -106,14 +107,14 @@ private: static void slider_color_TYPE_HUE(synfig::Color &color, float amount); static void slider_color_TYPE_SAT(synfig::Color &color, float amount); static void slider_color_TYPE_A(synfig::Color &color, float amount); - + bool redraw(GdkEventExpose*bleh); bool on_event(GdkEvent *event); }; // END of class ColorSlider - + class Widget_ColorEdit : public Gtk::Table { sigc::signal signal_activated_; @@ -128,13 +129,13 @@ class Widget_ColorEdit : public Gtk::Table ColorSlider *slider_V; ColorSlider *slider_SAT; ColorSlider *slider_HUE; - + Widget_Color widget_color; - + bool hold_signals; - + bool clamp_; - + Gtk::SpinButton *spinbutton_R; Gtk::SpinButton *spinbutton_G; Gtk::SpinButton *spinbutton_B; @@ -144,13 +145,13 @@ class Widget_ColorEdit : public Gtk::Table Gtk::Adjustment G_adjustment; Gtk::Adjustment B_adjustment; Gtk::Adjustment A_adjustment; - + synfig::Color color; Gtk::Notebook* notebook; protected: - + void on_value_changed(); public: @@ -162,9 +163,9 @@ public: void on_slider_moved(ColorSlider::Type type, float amount); //Glib::SignalProxy0 signal_activate() { return spinbutton_A->signal_activate(); } - + sigc::signal& signal_value_changed() { return signal_value_changed_; } - + void activated() { signal_activated_(); } void activate() { signal_activated_(); } void set_value(const synfig::Color &data); @@ -175,7 +176,7 @@ public: Widget_ColorEdit(); ~Widget_ColorEdit(); }; // END of class Widget_ColorEdit - + }; // END of namespace studio /* === E N D =============================================================== */