effect.cpp revision fac3eb9aebddbdb591b931d4c42a1a7d10f51a1c
#define INKSCAPE_LIVEPATHEFFECT_CPP
/*
* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "display/display-forward.h"
#include "xml/node-event-vector.h"
#include "sp-object.h"
#include "attributes.h"
#include "desktop.h"
#include "document.h"
#include "live_effects/effect.h"
#include "live_effects/lpeobject.h"
#include "live_effects/parameter/parameter.h"
#include "live_effects/n-art-bpath-2geom.h"
#include <gtkmm.h>
#include <exception>
// include effects:
#include "live_effects/lpe-skeletalstrokes.h"
#include "live_effects/lpe-slant.h"
#include "live_effects/lpe-test-doEffect-stack.h"
#include "live_effects/lpe-gears.h"
#include "live_effects/lpe-curvestitch.h"
namespace Inkscape {
namespace LivePathEffect {
// {constant defined in effect.h, N_("name of your effect"), "name of your effect in SVG"}
#ifdef LPE_ENABLE_TEST_EFFECTS
#endif
};
{
switch (lpenr) {
case SKELETAL_STROKES:
break;
#ifdef LPE_ENABLE_TEST_EFFECTS
case SLANT:
break;
case DOEFFECTSTACK_TEST:
break;
#endif
case GEARS:
break;
case CURVE_STITCH:
break;
default:
break;
}
if (neweffect) {
}
return neweffect;
}
{
}
{
if (tooltips) {
delete tooltips;
}
}
{
else
}
/*
* Here be the doEffect function chain:
*/
void
{
if (new_bpath && new_bpath != SP_CURVE_BPATH(curve)) { // FIXME, add function to SPCurve to change bpath? or a copy function?
}
}
}
{
try {
return new_bpath;
}
// return here
unsigned ret = 0;
++ret;
}
return path_out;
}
}
{
}
return path_out;
}
{
g_warning("Effect has no doEffect implementation");
return pwd2_in;
}
void
{
if(value) {
}
it++;
}
}
void
Effect::setParameter(Inkscape::XML::Node * repr, const gchar * key, const gchar * old_value, const gchar * new_value)
{
if (new_value) {
if (!accepted) {
// change was not accepted, so change it back.
// think: can this backfire and create infinite loop when started with unacceptable old_value?
// repr->setAttribute(key, old_value);
}
} else {
// set default value
}
}
}
void
{
}
{
if (!vbox) {
vbox = Gtk::manage( new Gtk::VBox() ); // use manage here, because after deletion of Effect object, others might still be pointing to this widget.
//if (!tooltips)
if (widg) {
}
}
it++;
}
}
}
{
return SP_OBJECT_REPR(lpeobj);
}
{
return SP_OBJECT_DOCUMENT(lpeobj);
}
} /* namespace LivePathEffect */
} /* namespace Inkscape */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :