Code

Merge and cleanup of GSoC C++-ification project.
[inkscape.git] / src / selcue.h
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();
41     void _newItemBboxes();
42     void _newTextBaselines();
44     SPDesktop *_desktop;
45     Selection *_selection;
46     sigc::connection _sel_changed_connection;
47     sigc::connection _sel_modified_connection;
48     std::vector<SPCanvasItem*> _item_bboxes;
49     std::vector<SPCanvasItem*> _text_baselines;
50 };
52 }
53   
54 #endif
57 /*
58   Local Variables:
59   mode:c++
60   c-file-style:"stroustrup"
61   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
62   indent-tabs-mode:nil
63   fill-column:99
64   End:
65 */
66 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :