From bf463fba185a4e67d25efe324a577cf89dcdce5f Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Sun, 12 May 2013 14:36:06 +0200 Subject: Fix for Bug #448872 (Changing the bounding box type in preferences does not update the preview) by Vinipsmaker. Fixed bugs: - https://launchpad.net/bugs/448872 (bzr r12329) --- src/seltrans.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/seltrans.h') diff --git a/src/seltrans.h b/src/seltrans.h index effc767e3..10860f58f 100644 --- a/src/seltrans.h +++ b/src/seltrans.h @@ -97,10 +97,24 @@ public: void getNextClosestPoint(bool reverse); private: + class BoundingBoxPrefsObserver: public Preferences::Observer + { + public: + BoundingBoxPrefsObserver(SelTrans &sel_trans); + + void notify(Preferences::Entry const &val); + + private: + SelTrans &_sel_trans; + }; + + friend class Inkscape::SelTrans::BoundingBoxPrefsObserver; + void _updateHandles(); void _updateVolatileState(); void _selChanged(Inkscape::Selection *selection); void _selModified(Inkscape::Selection *selection, guint flags); + void _boundingBoxPrefsChanged(int prefs_bbox); void _showHandles(SPKnot *knot[], SPSelTransHandle const handle[], gint num, gchar const *even_tip, gchar const *odd_tip); Geom::Point _getGeomHandlePos(Geom::Point const &visual_handle_pos); @@ -179,6 +193,7 @@ private: Inkscape::MessageContext _message_context; sigc::connection _sel_changed_connection; sigc::connection _sel_modified_connection; + BoundingBoxPrefsObserver _bounding_box_prefs_observer; }; } -- cgit v1.2.3