X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdialog_gradient.cpp;h=86bcf9afdcfb99f7019c774951e1dbb4e44f8cd8;hb=a1077b46c18fe056632fa3ed5098a5c6a8ded3ae;hp=5a3b0a7f2ee5e6184fc44e1e3a7b186ae5b4b026;hpb=2c43cbfff01496919316f600ee76112be551392d;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/dialog_gradient.cpp b/synfig-studio/trunk/src/gtkmm/dialog_gradient.cpp index 5a3b0a7..86bcf9a 100644 --- a/synfig-studio/trunk/src/gtkmm/dialog_gradient.cpp +++ b/synfig-studio/trunk/src/gtkmm/dialog_gradient.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file dialog_gradient.cpp ** \brief Template File ** ** $Id: dialog_gradient.cpp,v 1.1.1.1 2005/01/07 03:34:36 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 */ /* ========================================================================= */ @@ -33,10 +34,10 @@ #include #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include "widget_color.h" #include #include "app.h" @@ -47,7 +48,7 @@ using namespace std; using namespace etl; -using namespace sinfg; +using namespace synfig; using namespace studio; /* === M A C R O S ========================================================= */ @@ -64,7 +65,6 @@ Dialog_Gradient::Dialog_Gradient(): adjustment_pos(0,0.0,1.0,0.001,0.001,0.001) { set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG); - set_keep_below(true); set_keep_above(false); set_role("gradient_editor"); @@ -121,7 +121,7 @@ Dialog_Gradient::~Dialog_Gradient() } void -Dialog_Gradient::set_gradient(const sinfg::Gradient& x) +Dialog_Gradient::set_gradient(const synfig::Gradient& x) { widget_gradient->set_value(x); } @@ -136,7 +136,7 @@ Dialog_Gradient::reset() void Dialog_Gradient::on_grab_pressed() { - sinfgapp::Main::set_gradient(get_gradient()); + synfigapp::Main::set_gradient(get_gradient()); // signal_edited_(get_gradient()); // reset(); // hide(); @@ -155,7 +155,7 @@ Dialog_Gradient::on_changed() } void -Dialog_Gradient::on_cpoint_selected(sinfg::Gradient::CPoint x) +Dialog_Gradient::on_cpoint_selected(synfig::Gradient::CPoint x) { widget_color->set_value(x.color); adjustment_pos.set_value(x.pos); @@ -164,20 +164,20 @@ Dialog_Gradient::on_cpoint_selected(sinfg::Gradient::CPoint x) void Dialog_Gradient::on_values_adjusted() { - sinfg::Gradient::CPoint x(widget_gradient->get_selected_cpoint()); + synfig::Gradient::CPoint x(widget_gradient->get_selected_cpoint()); x.color=widget_color->get_value(); x.pos=adjustment_pos.get_value(); widget_gradient->update_cpoint(x); } static void -dialog_gradient_value_desc_edit(sinfg::Gradient g,sinfgapp::ValueDesc x,handle canvas_interface) +dialog_gradient_value_desc_edit(synfig::Gradient g,synfigapp::ValueDesc x,handle canvas_interface) { // canvas_interface->connect_value(x,ValueBase(g)); } void -Dialog_Gradient::edit(const sinfgapp::ValueDesc &x, etl::handle canvas_interface, sinfg::Time time) +Dialog_Gradient::edit(const synfigapp::ValueDesc &x, etl::handle canvas_interface, synfig::Time time) { reset(); if(x.is_const())