index 0cb57993e6926358fc11cc3bb9bf00d16b89c36d..e7abb70ea82e7149c476a211f0d8acf804d6723c 100644 (file)
*/
#include "live_effects/parameter/point.h"
-#include "live_effects/parameter/pointparam-knotholder.h"
#include "live_effects/effect.h"
#include "svg/svg.h"
#include "svg/stringstream.h"
#include "ui/widget/registered-widget.h"
#include "inkscape.h"
#include "verbs.h"
+#include "knotholder.h"
// needed for on-canvas editting:
-#include "tools-switch.h"
-#include "node-context.h"
-#include "shape-editor.h"
#include "desktop.h"
-#include "selection.h"
-#include "libnr/nr-convert2geom.h"
namespace Inkscape {
param_effect->getSPDoc() ) );
// TODO: fix to get correct desktop (don't use SP_ACTIVE_DESKTOP)
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
- Geom::Matrix transf = to_2geom(desktop->doc2dt());
+ Geom::Matrix transf = desktop->doc2dt();
pointwdg->setTransform(transf);
pointwdg->setValue( *this );
pointwdg->clearProgrammatically();
PointParamKnotHolderEntity(PointParam *p) { this->pparam = p; }
virtual ~PointParamKnotHolderEntity() {}
- virtual void knot_set(NR::Point const &p, NR::Point const &origin, guint state);
- virtual NR::Point knot_get();
+ virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state);
+ virtual Geom::Point knot_get();
virtual void knot_click(guint state);
private:
};
void
-PointParamKnotHolderEntity::knot_set(NR::Point const &p, NR::Point const &/*origin*/, guint /*state*/)
+PointParamKnotHolderEntity::knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint /*state*/)
{
- NR::Point const s = snap_knot_position(p);
- pparam->param_setValue(s.to_2geom());
+ Geom::Point const s = snap_knot_position(p);
+ pparam->param_setValue(s);
sp_lpe_item_update_patheffect(SP_LPE_ITEM(item), false, false);
}
-NR::Point
+Geom::Point
PointParamKnotHolderEntity::knot_get()
{
return *pparam;