summaryrefslogtreecommitdiffstats
path: root/src/selcue.h
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2013-05-12 12:36:06 +0000
committerJazzyNico <nicoduf@yahoo.fr>2013-05-12 12:36:06 +0000
commitbf463fba185a4e67d25efe324a577cf89dcdce5f (patch)
tree768949cc7e5dfc2541da7d07455b8cc3fc477a97 /src/selcue.h
parentFix for Bug #181493 (Locked layers not completely locked) by frenchie4111. (diff)
downloadinkscape-bf463fba185a4e67d25efe324a577cf89dcdce5f.tar.gz
inkscape-bf463fba185a4e67d25efe324a577cf89dcdce5f.zip
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)
Diffstat (limited to '')
-rw-r--r--src/selcue.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/selcue.h b/src/selcue.h
index f62ef768a..bcac7315f 100644
--- a/src/selcue.h
+++ b/src/selcue.h
@@ -37,10 +37,25 @@ public:
};
private:
+ class BoundingBoxPrefsObserver: public Preferences::Observer
+ {
+ public:
+ BoundingBoxPrefsObserver(SelCue &sel_cue);
+
+ void notify(Preferences::Entry const &val);
+
+ private:
+ SelCue &_sel_cue;
+ };
+
+ friend class Inkscape::SelCue::BoundingBoxPrefsObserver;
void _updateItemBboxes();
+ void _updateItemBboxes(Inkscape::Preferences *prefs);
+ void _updateItemBboxes(gint mode, int prefs_bbox);
void _newItemBboxes();
void _newTextBaselines();
+ void _boundingBoxPrefsChanged(int prefs_bbox);
SPDesktop *_desktop;
Selection *_selection;
@@ -48,6 +63,8 @@ private:
sigc::connection _sel_modified_connection;
std::vector<SPCanvasItem*> _item_bboxes;
std::vector<SPCanvasItem*> _text_baselines;
+
+ BoundingBoxPrefsObserver _bounding_box_prefs_observer;
};
}