index d963d835ad0d23262d26377602667c726a4a44d9..ec61fcd88319d1b9564b942d07eba5ed7f834d11 100644 (file)
#include "live_effects/parameter/parameter.h"
-#include "knot-enums.h"
+#include "knot-holder-entity.h"
namespace Inkscape {
const Glib::ustring& key,
Inkscape::UI::Widget::Registry* wr,
Effect* effect,
- Geom::Point default_value = Geom::Point(0,0));
+ const gchar *handle_tip = NULL,
+ Geom::Point default_value = Geom::Point(0,0) ); // tip for automatically associated on-canvas handle
virtual ~PointParam();
- virtual ParamType paramType() { return POINT_PARAM; }
-
virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);
bool param_readSVGValue(const gchar * strvalue);
gchar * param_getSVGValue() const;
+ inline const gchar *handleTip() const { return handle_tip ? handle_tip : param_tooltip.c_str(); }
void param_setValue(Geom::Point newpoint);
void param_set_default();
void param_set_and_write_new_value(Geom::Point newpoint);
- virtual void param_editOncanvas(SPItem * item, SPDesktop * dt);
-
virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/);
void set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color);
+ virtual bool providesKnotHolderEntities() { return true; }
+ virtual void addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item);
+
private:
PointParam(const PointParam&);
PointParam& operator=(const PointParam&);
- void on_button_click();
-
Geom::Point defvalue;
SPKnotShapeType knot_shape;
SPKnotModeType knot_mode;
guint32 knot_color;
+ gchar *handle_tip;
};