summaryrefslogtreecommitdiffstats
path: root/src/selcue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/selcue.h')
-rw-r--r--src/selcue.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/selcue.h b/src/selcue.h
new file mode 100644
index 000000000..42ebc9878
--- /dev/null
+++ b/src/selcue.h
@@ -0,0 +1,64 @@
+#ifndef __SP_SELCUE_H__
+#define __SP_SELCUE_H__
+
+/*
+ * Helper object for showing selected items
+ *
+ * Authors:
+ * bulia byak <bulia@users.sf.net>
+ * Carl Hetherington <inkscape@carlh.net>
+ *
+ * Copyright (C) 2004 Authors
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include <list>
+#include <sigc++/sigc++.h>
+
+class SPDesktop;
+class SPCanvasItem;
+
+namespace Inkscape {
+
+class Selection;
+
+class SelCue
+{
+public:
+ SelCue(SPDesktop *desktop);
+ ~SelCue();
+
+ enum Type {
+ NONE,
+ MARK,
+ BBOX
+ };
+
+private:
+
+ void _updateItemBboxes();
+
+ SPDesktop *_desktop;
+ Selection *_selection;
+ sigc::connection _sel_changed_connection;
+ sigc::connection _sel_modified_connection;
+ std::list<SPCanvasItem*> _item_bboxes;
+ std::list<SPCanvasItem*> _text_baselines;
+};
+
+}
+
+#endif
+
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :