1 #ifndef __SP_SELCUE_H__
2 #define __SP_SELCUE_H__
4 /*
5 * Helper object for showing selected items
6 *
7 * Authors:
8 * bulia byak <bulia@users.sf.net>
9 * Carl Hetherington <inkscape@carlh.net>
10 *
11 * Copyright (C) 2004 Authors
12 *
13 * Released under GNU GPL, read the file 'COPYING' for more information
14 */
16 #include <list>
17 #include <sigc++/sigc++.h>
19 class SPDesktop;
20 class SPCanvasItem;
22 namespace Inkscape {
24 class Selection;
26 class SelCue
27 {
28 public:
29 SelCue(SPDesktop *desktop);
30 ~SelCue();
32 enum Type {
33 NONE,
34 MARK,
35 BBOX
36 };
38 private:
40 void _updateItemBboxes();
42 SPDesktop *_desktop;
43 Selection *_selection;
44 sigc::connection _sel_changed_connection;
45 sigc::connection _sel_modified_connection;
46 std::list<SPCanvasItem*> _item_bboxes;
47 std::list<SPCanvasItem*> _text_baselines;
48 };
50 }
52 #endif
55 /*
56 Local Variables:
57 mode:c++
58 c-file-style:"stroustrup"
59 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
60 indent-tabs-mode:nil
61 fill-column:99
62 End:
63 */
64 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :