Code

Super duper mega (fun!) commit: replaced encoding=utf-8 with fileencoding=utf-8 in...
[inkscape.git] / src / ui / tool / selector.h
1 /** @file
2  * Selector component (click and rubberband)
3  */
4 /* Authors:
5  *   Krzysztof KosiƄski <tweenk.pl@gmail.com>
6  *
7  * Copyright (C) 2009 Authors
8  * Released under GNU GPL, read the file 'COPYING' for more information
9  */
11 #ifndef SEEN_UI_TOOL_SELECTOR_H
12 #define SEEN_UI_TOOL_SELECTOR_H
14 #include <memory>
15 #include <gdk/gdk.h>
16 #include <2geom/rect.h>
17 #include "display/display-forward.h"
18 #include "ui/tool/manipulator.h"
20 class SPDesktop;
21 class CtrlRect;
23 namespace Inkscape {
24 namespace UI {
26 class SelectorPoint;
28 class Selector : public Manipulator {
29 public:
30     Selector(SPDesktop *d);
31     virtual ~Selector();
32     virtual bool event(GdkEvent *);
33     
34     sigc::signal<void, Geom::Rect const &, GdkEventButton*> signal_area;
35     sigc::signal<void, Geom::Point const &, GdkEventButton*> signal_point;
36 private:
37     SelectorPoint *_dragger;
38     Geom::Point _start;
39     CtrlRect *_rubber;
40     gulong _connection;
41     bool _cancel;
42     friend class SelectorPoint;
43 };
45 } // namespace UI
46 } // namespace Inkscape
48 #endif
50 /*
51   Local Variables:
52   mode:c++
53   c-file-style:"stroustrup"
54   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
55   indent-tabs-mode:nil
56   fill-column:99
57   End:
58 */
59 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :