point.cpp revision 2015416b7a65a6c77a69ed97b746e0efbefe0578
/*
* 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 {
{
knot_color = 0xffffff00;
}
PointParam::~PointParam()
{
if (handle_tip)
}
void
{
}
bool
{
if (success == 2) {
return true;
}
return false;
}
gchar *
PointParam::param_getSVGValue() const
{
return str;
}
{
*param_wr,
param_effect->getRepr(),
param_effect->getSPDoc() ) );
// TODO: fix to get correct desktop (don't use SP_ACTIVE_DESKTOP)
}
void
{
}
void
{
}
void
{
param_set_and_write_new_value( (*this) * postmul );
}
void
{
knot_shape = shape;
knot_color = color;
}
class PointParamKnotHolderEntity : public KnotHolderEntity {
public:
virtual ~PointParamKnotHolderEntity() {}
private:
};
void
PointParamKnotHolderEntity::knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint /*state*/)
{
pparam->param_setValue(s);
}
{
return *pparam;
}
void
{
}
void
{
PointParamKnotHolderEntity *e = new PointParamKnotHolderEntity(this);
// TODO: can we ditch handleTip() etc. because we have access to handle_tip etc. itself???
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 :