point.cpp revision 61a2c985ffaddfaac2bf15af97fe79c0d02ce4d0
/*
* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "live_effects/parameter/point.h"
#include "live_effects/effect.h"
#include "svg/stringstream.h"
#include <gtkmm.h>
#include "widget/registered-widget.h"
#include "knot.h"
#include "inkscape.h"
#include "verbs.h"
// needed for on-canvas editting:
#include "tools-switch.h"
#include "shape-editor.h"
#include "node-context.h"
#include "desktop-handles.h"
#include "selection.h"
#include "desktop.h"
#define LPEPOINTPARAM_DEBUG // undefine to disable all on-canvas editing code for PointParam
#define PRM_KNOT_COLOR_NORMAL 0xffffff00
#define PRM_KNOT_COLOR_SELECTED 0x0000ff00
namespace Inkscape {
namespace LivePathEffect {
{
#ifdef LPEPOINTPARAM_DEBUG
oncanvas_editable = true;
#endif
}
PointParam::~PointParam()
{
if (knot)
}
void
{
}
bool
{
if (success == 2) {
return true;
}
return false;
}
gchar *
PointParam::param_writeSVGValue() const
{
return str;
}
{
*param_wr,
param_effect->getRepr(),
param_effect->getSPDoc() ) );
#ifndef LPEPOINTPARAM_DEBUG
pButton->set_sensitive(false);
#endif
}
void
{
}
void
{
}
void
{
// If not already in nodecontext, goto it!
}
shape_editor->set_item_lpe_point_parameter(item, SP_OBJECT(param_effect->getLPEObj()), param_key.c_str());
}
void
{
param_set_and_write_new_value( (*this) * postmul );
}
// CALLBACKS:
void
{
}
}
} /* 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 :