X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Ffilters%2Fcomponenttransfer-funcnode.cpp;h=a245e1c89f21349c81d16e0e2ca1ba2a9fe60bb2;hb=9dc68827cbd515262ecb8d5ae8547d9e82c72e00;hp=a45716e08e8f3551a22f103b827b3f9441291aac;hpb=072de79e6270f4137fa48a8a73491e8a0904d8f8;p=inkscape.git diff --git a/src/filters/componenttransfer-funcnode.cpp b/src/filters/componenttransfer-funcnode.cpp index a45716e08..a245e1c89 100644 --- a/src/filters/componenttransfer-funcnode.cpp +++ b/src/filters/componenttransfer-funcnode.cpp @@ -1,5 +1,3 @@ -#define __SP_FEFUNCNODE_CPP__ - /** \file * SVG , , and implementations. */ @@ -8,6 +6,7 @@ * Hugo Rodrigues * Niko Kiirala * Felipe Corrêa da Silva Sanches + * Abhishek Sharma * * Copyright (C) 2006, 2007, 2008 Authors * @@ -168,17 +167,17 @@ sp_fefuncnode_build(SPObject *object, SPDocument *document, Inkscape::XML::Node } //Read values of key attributes from XML nodes into object. - object->readAttr( "type"); - object->readAttr( "tableValues"); - object->readAttr( "slope"); - object->readAttr( "intercept"); - object->readAttr( "amplitude"); - object->readAttr( "exponent"); - object->readAttr( "offset"); + object->readAttr( "type" ); + object->readAttr( "tableValues" ); + object->readAttr( "slope" ); + object->readAttr( "intercept" ); + object->readAttr( "amplitude" ); + object->readAttr( "exponent" ); + object->readAttr( "offset" ); //is this necessary? - document->add_resource("fefuncnode", object); //maybe feFuncR, fefuncG, feFuncB and fefuncA ? + document->addResource("fefuncnode", object); //maybe feFuncR, fefuncG, feFuncB and fefuncA ? } /** @@ -191,7 +190,7 @@ sp_fefuncnode_release(SPObject *object) if (SP_OBJECT_DOCUMENT(object)) { /* Unregister ourselves */ - SP_OBJECT_DOCUMENT(object)->remove_resource("fefuncnode", SP_OBJECT(object)); + SP_OBJECT_DOCUMENT(object)->removeResource("fefuncnode", SP_OBJECT(object)); } //TODO: release resources here @@ -296,8 +295,8 @@ sp_fefuncnode_update(SPObject *object, SPCtx *ctx, guint flags) if (flags & SP_OBJECT_MODIFIED_FLAG) { /* do something to trigger redisplay, updates? */ //TODO - //object->readAttr( "azimuth"); - //object->readAttr( "elevation"); + //object->readAttr( "azimuth" ); + //object->readAttr( "elevation" ); } if (((SPObjectClass *) feFuncNode_parent_class)->update) { @@ -342,4 +341,4 @@ TODO: I'm not sure what to do here... fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :