summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/point.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-03-02 22:01:12 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-03-02 22:01:12 +0000
commit017e93e3dae0be363c6b9caf71d68dc4d1055bc9 (patch)
tree70d3afe3e23ab28effaa8f94c1c977e2a7c2aa11 /src/live_effects/parameter/point.cpp
parent* [INTL: sk] (trunk) Updated Slovak translation (diff)
downloadinkscape-017e93e3dae0be363c6b9caf71d68dc4d1055bc9.tar.gz
inkscape-017e93e3dae0be363c6b9caf71d68dc4d1055bc9.zip
remove flashing test indicator on pointparam.
remove some leftover code from point param code remove test pointparam from LPEKnot added SnapIndicator added SnapIndicator to SPDesktop, and a call from guidesnapping to display a snapindicator when a guide is snapped. fix canvas-temporary-item-list.cpp (bzr r4931)
Diffstat (limited to 'src/live_effects/parameter/point.cpp')
-rw-r--r--src/live_effects/parameter/point.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp
index 38bf4be57..075f7544f 100644
--- a/src/live_effects/parameter/point.cpp
+++ b/src/live_effects/parameter/point.cpp
@@ -24,12 +24,6 @@
#include "desktop.h"
#include "selection.h"
-// temporarily needed for tempitem tryout
-#include "desktop-handles.h"
-#include "display/sodipodi-ctrl.h"
-#include "knot.h"
-#include "display/canvas-temporary-item-list.h"
-
#define LPEPOINTPARAM_DEBUG // undefine to disable all on-canvas editing code for PointParam
namespace Inkscape {
@@ -41,7 +35,6 @@ PointParam::PointParam( const Glib::ustring& label, const Glib::ustring& tip,
Effect* effect, Geom::Point default_value )
: Geom::Point(default_value), Parameter(label, tip, key, wr, effect), defvalue(default_value)
{
- knot = NULL;
#ifdef LPEPOINTPARAM_DEBUG
oncanvas_editable = true;
#endif
@@ -49,8 +42,6 @@ PointParam::PointParam( const Glib::ustring& label, const Glib::ustring& tip,
PointParam::~PointParam()
{
- if (knot)
- g_object_unref (G_OBJECT (knot));
}
void
@@ -144,22 +135,6 @@ PointParam::param_editOncanvas(SPItem * item, SPDesktop * dt)
ShapeEditor * shape_editor = SP_NODE_CONTEXT( dt->event_context )->shape_editor;
shape_editor->set_item_lpe_point_parameter(item, SP_OBJECT(param_effect->getLPEObj()), param_key.c_str());
-
-
- /* TEMPORARY CODE TO TEST TEMPORARY CANVAS ITEMS */
- SPDesktop *desktop = SP_ACTIVE_DESKTOP;
- SPCanvasItem * canvasitem = sp_canvas_item_new( sp_desktop_tempgroup (desktop),
- SP_TYPE_CTRL,
- "anchor", GTK_ANCHOR_CENTER,
- "size", 8.0,
- "stroked", TRUE,
- "stroke_color", 0xf000f0ff,
- "mode", SP_KNOT_MODE_XOR,
- "shape", SP_KNOT_SHAPE_CROSS,
- NULL );
- SP_CTRL(canvasitem)->moveto ( static_cast<Geom::Point> (*this) );
- desktop->add_temporary_canvasitem(canvasitem, 2000);
- /* END ---- TEMPORARY CODE TO TEST TEMPORARY CANVAS ITEMS */
}