summaryrefslogtreecommitdiffstats
path: root/src/selcue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/selcue.h')
-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;
};
}