diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-11-05 18:30:49 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-11-05 18:30:49 +0000 |
| commit | f51e8d7c6b4e2caa9e470af674949f3cd1695bf5 (patch) | |
| tree | 2a733dbe915ff764ee9df8ac5840fa084c3f2ffc /src/live_effects/effect.h | |
| parent | Symbols. Fix for bug #1388910 (There is an unnecessary character in MapSymbol... (diff) | |
| download | inkscape-f51e8d7c6b4e2caa9e470af674949f3cd1695bf5.tar.gz inkscape-f51e8d7c6b4e2caa9e470af674949f3cd1695bf5.zip | |
Refactor to remove references to Desktop/Ui in Effect, bspline and fillet-chamfer.
Also fixed the selected node problem in units not px.
Also fixed two var to not allow NULL pointed by Johan Engelen.
(bzr r13672)
Diffstat (limited to 'src/live_effects/effect.h')
| -rw-r--r-- | src/live_effects/effect.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h index a486e8491..7da76b267 100644 --- a/src/live_effects/effect.h +++ b/src/live_effects/effect.h @@ -13,6 +13,7 @@ #include "parameter/bool.h" #include "effect-enum.h" + #define LPE_CONVERSION_TOLERANCE 0.01 // FIXME: find good solution for this. class SPDocument; @@ -57,7 +58,9 @@ public: //of indirection is needed. We first call these methods, then the below. void doOnApply_impl(SPLPEItem const* lpeitem); void doBeforeEffect_impl(SPLPEItem const* lpeitem); - + void setCurrentZoom(double cZ); + void setSelectedNodePoints(std::vector<Geom::Point> sNP); + bool isNodePointSelected(Geom::Point const &nodePoint) const; virtual void doOnApply (SPLPEItem const* lpeitem); virtual void doBeforeEffect (SPLPEItem const* lpeitem); @@ -156,6 +159,9 @@ protected: bool concatenate_before_pwd2; SPLPEItem * sp_lpe_item; // these get stored in doBeforeEffect_impl, and derived classes may do as they please with them. + Glib::ustring const * defaultUnit; // these get stored in doBeforeEffect_impl, and derived classes may do as they please with them. + double current_zoom; + std::vector<Geom::Point> selectedNodesPoints; SPCurve * sp_curve; std::vector<Geom::Path> pathvector_before_effect; private: |
