diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2010-02-14 23:53:33 +0000 |
|---|---|---|
| committer | Johan <Johan@JohannesMobile> | 2010-02-14 23:53:33 +0000 |
| commit | be7994523333ce17d828ef5923b8c183fdb750e7 (patch) | |
| tree | 028ddd2e838a24351fd3a5c7517c288194cc577d /src/live_effects/parameter/vector.cpp | |
| parent | Gradient editor: don't show pre-snap indicator when hovering above the knot o... (diff) | |
| parent | fix bug: when creating an xy-grid, respect the default unit setting. (the pre... (diff) | |
| download | inkscape-be7994523333ce17d828ef5923b8c183fdb750e7.tar.gz inkscape-be7994523333ce17d828ef5923b8c183fdb750e7.zip | |
- fix bug: xy grid default unit was not respected
- color original-d path as normal path in node tool
- remove obsolete todo comment
- add widget controls for vectorparam in lpe
(bzr r9092)
Diffstat (limited to 'src/live_effects/parameter/vector.cpp')
| -rw-r--r-- | src/live_effects/parameter/vector.cpp | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/src/live_effects/parameter/vector.cpp b/src/live_effects/parameter/vector.cpp index 35afe7f5d..5496b52f2 100644 --- a/src/live_effects/parameter/vector.cpp +++ b/src/live_effects/parameter/vector.cpp @@ -13,8 +13,9 @@ #include "svg/stringstream.h" #include <gtkmm.h> -// needed for on-canvas editting: -class SPDesktop; +#include "ui/widget/registered-widget.h" +#include "live_effects/effect.h" +#include "desktop.h" namespace Inkscape { @@ -82,28 +83,23 @@ VectorParam::param_getSVGValue() const Gtk::Widget * VectorParam::param_newWidget(Gtk::Tooltips * /*tooltips*/) { -/* - Inkscape::UI::Widget::RegisteredTransformedPoint * pointwdg = Gtk::manage( - new Inkscape::UI::Widget::RegisteredTransformedPoint( param_label, - param_tooltip, - param_key, - *param_wr, - param_effect->getRepr(), - param_effect->getSPDoc() ) ); - // TODO: fix to get correct desktop (don't use SP_ACTIVE_DESKTOP) - SPDesktop *desktop = SP_ACTIVE_DESKTOP; - Geom::Matrix transf = desktop->doc2dt(); - pointwdg->setTransform(transf); - pointwdg->setValue( *this ); + Inkscape::UI::Widget::RegisteredVector * pointwdg = Gtk::manage( + new Inkscape::UI::Widget::RegisteredVector( param_label, + param_tooltip, + param_key, + *param_wr, + param_effect->getRepr(), + param_effect->getSPDoc() ) ); + pointwdg->setPolarCoords(); + pointwdg->setValue( vector, origin ); pointwdg->clearProgrammatically(); - pointwdg->set_undo_parameters(SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Change point parameter")); + pointwdg->set_undo_parameters(SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Change vector parameter")); Gtk::HBox * hbox = Gtk::manage( new Gtk::HBox() ); static_cast<Gtk::HBox*>(hbox)->pack_start(*pointwdg, true, true); static_cast<Gtk::HBox*>(hbox)->show_all_children(); return dynamic_cast<Gtk::Widget *> (hbox); - */ return NULL; } void |
