X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Flyr_std%2Fxorpattern.cpp;h=ec124b021ace23329bf942394280ecc0aad0bc18;hb=6e6b8ce1d75be6a6b99d2cc955faeeea80d62c26;hp=702cc35fe6adbe4bb5d871c36c0528bf3f5acd37;hpb=28f28705612902c15cd0702cc891fba35bf2d2df;p=synfig.git diff --git a/synfig-core/trunk/src/modules/lyr_std/xorpattern.cpp b/synfig-core/trunk/src/modules/lyr_std/xorpattern.cpp index 702cc35..ec124b0 100644 --- a/synfig-core/trunk/src/modules/lyr_std/xorpattern.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/xorpattern.cpp @@ -3,16 +3,17 @@ ** Template File ** $Id: xorpattern.cpp,v 1.1.1.1 2005/01/04 01:23:10 darco Exp $ ** -** 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. ** ** === N O T E S =========================================================== ** @@ -60,7 +61,7 @@ XORPattern::XORPattern(): size(0.25,0.25) { } - + bool XORPattern::set_param(const String & param, const ValueBase &value) { @@ -74,11 +75,11 @@ XORPattern::get_param(const String & param)const { EXPORT(pos); EXPORT(size); - + EXPORT_NAME(); EXPORT_VERSION(); - - return ValueBase(); + + return ValueBase(); } Color @@ -91,12 +92,12 @@ XORPattern::get_color(Context context, const Point &point)const return Color((Color::value_type)rindex/(Color::value_type)255.0,(Color::value_type)gindex/(Color::value_type)255.0,(Color::value_type)bindex/(Color::value_type)255.0,1.0); } - + Layer::Vocab XORPattern::get_param_vocab()const { Layer::Vocab ret; - + ret.push_back(ParamDesc("pos") .set_local_name(_("Offset")) ); @@ -104,6 +105,6 @@ XORPattern::get_param_vocab()const .set_local_name(_("Size")) .set_origin("pos") ); - + return ret; }