/*
* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "ui/widget/registered-widget.h"
#include "live_effects/parameter/point.h"
#include "live_effects/effect.h"
#include "svg/stringstream.h"
#include "inkscape.h"
#include "verbs.h"
#include "knotholder.h"
// needed for on-canvas editting:
#include "desktop.h"
namespace Inkscape {
namespace LivePathEffect {
bool live_update )
{
knot_color = 0xffffff00;
}
PointParam::~PointParam()
{
if (handle_tip)
}
void
{
param_setValue(defvalue,true);
}
void
{
}
return defvalue;
}
void
{
}
void
{
if(write){
}
if(knoth && liveupdate){
knoth->update_knots();
}
}
bool
{
if (success == 2) {
return true;
}
return false;
}
gchar *
{
return str;
}
void
{
param_setValue( (*this) * postmul, true);
}
{
*param_wr,
param_effect->getRepr(),
param_effect->getSPDoc() ) );
// TODO: fix to get correct desktop (don't use SP_ACTIVE_DESKTOP)
}
void
{
knot_shape = shape;
knot_color = color;
}
public:
private:
};
void
{
if (state & GDK_CONTROL_MASK) {
s = B;
} else {
s = A;
}
}
sp_lpe_item_update_patheffect(splpeitem, false, false);
}
}
{
return *pparam;
}
void
{
if (state & GDK_CONTROL_MASK) {
if (state & GDK_MOD1_MASK) {
this->pparam->param_set_default();
if(splpeitem){
sp_lpe_item_update_patheffect(splpeitem, false, false);
}
}
}
}
void
{
knoth = knotholder;
PointParamKnotHolderEntity *e = new PointParamKnotHolderEntity(this);
// TODO: can we ditch handleTip() etc. because we have access to handle_tip etc. itself???
e->create(desktop, item, knotholder, Inkscape::CTRL_TYPE_UNKNOWN, handleTip(), knot_shape, knot_mode, knot_color);
knotholder->add(e);
}
} /* 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 :