X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_gradient.cpp;h=6c98a879a11303791ec3ab8783e273cd722e14d4;hb=ce408de81ca266b1f334ee9bc6c8fb7ba1492ed4;hp=da075896c040c47c42b83d1b87f2f0dde82f5aa3;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/widget_gradient.cpp b/synfig-studio/trunk/src/gtkmm/widget_gradient.cpp index da07589..6c98a87 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_gradient.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_gradient.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file widget_gradient.cpp ** \brief Template File ** ** $Id: widget_gradient.cpp,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 */ /* ========================================================================= */ @@ -31,7 +32,7 @@ #include "widget_gradient.h" #include "app.h" #include -#include +#include #include #endif @@ -40,7 +41,7 @@ using namespace std; using namespace etl; -using namespace sinfg; +using namespace synfig; using namespace studio; /* === M A C R O S ========================================================= */ @@ -50,7 +51,7 @@ using namespace studio; /* === P R O C E D U R E S ================================================= */ void -studio::render_gradient_to_window(const Glib::RefPtr& window,const Gdk::Rectangle& ca,const sinfg::Gradient &gradient) +studio::render_gradient_to_window(const Glib::RefPtr& window,const Gdk::Rectangle& ca,const synfig::Gradient &gradient) { int height = ca.get_height(); int width = ca.get_width()-4; @@ -239,7 +240,7 @@ Widget_Gradient::popup_menu(float x) } void -Widget_Gradient::set_value(const sinfg::Gradient& x) +Widget_Gradient::set_value(const synfig::Gradient& x) { gradient_=x; if(gradient_.size()) @@ -248,7 +249,7 @@ Widget_Gradient::set_value(const sinfg::Gradient& x) } void -Widget_Gradient::set_selected_cpoint(const sinfg::Gradient::CPoint &x) +Widget_Gradient::set_selected_cpoint(const synfig::Gradient::CPoint &x) { selected_cpoint=x; signal_cpoint_selected_(selected_cpoint); @@ -256,7 +257,7 @@ Widget_Gradient::set_selected_cpoint(const sinfg::Gradient::CPoint &x) } void -Widget_Gradient::update_cpoint(const sinfg::Gradient::CPoint &x) +Widget_Gradient::update_cpoint(const synfig::Gradient::CPoint &x) { try { @@ -266,7 +267,7 @@ Widget_Gradient::update_cpoint(const sinfg::Gradient::CPoint &x) gradient_.sort(); queue_draw(); } - catch(sinfg::Exception::NotFound) + catch(synfig::Exception::NotFound) { // Yotta... }