Code

Node tool: correctly save node skewing to undo history
[inkscape.git] / src / tools-switch.h
1 /*
2  * Utility functions for switching tools (= contexts)
3  *
4  * Authors:
5  *   bulia byak <bulia@dr.com>
6  *
7  * Copyright (C) 2003 authors
8  *
9  * Released under GNU GPL, read the file 'COPYING' for more information
10  */
12 #ifndef SEEN_TOOLS_SWITCH_H
13 #define SEEN_TOOLS_SWITCH_H
15 #include <forward.h>
17 enum {
18   TOOLS_INVALID,
19   TOOLS_SELECT,
20   TOOLS_NODES,
21   TOOLS_TWEAK,
22   TOOLS_SPRAY,
23   TOOLS_SHAPES_RECT,
24   TOOLS_SHAPES_3DBOX,
25   TOOLS_SHAPES_ARC,
26   TOOLS_SHAPES_STAR,
27   TOOLS_SHAPES_SPIRAL,
28   TOOLS_FREEHAND_PENCIL,
29   TOOLS_FREEHAND_PEN,
30   TOOLS_CALLIGRAPHIC,
31   TOOLS_TEXT,
32   TOOLS_GRADIENT,
33   TOOLS_ZOOM,
34   TOOLS_DROPPER,
35   TOOLS_CONNECTOR,
36   TOOLS_PAINTBUCKET,
37   TOOLS_ERASER,
38   TOOLS_LPETOOL
39 };
41 int tools_isactive(SPDesktop *dt, unsigned num);
42 int tools_active(SPDesktop *dt);
43 void tools_switch(SPDesktop *dt, int num);
44 void tools_switch_by_item (SPDesktop *dt, SPItem *item, Geom::Point const p);
46 #endif /* !SEEN_TOOLS_SWITCH_H */
48 /*
49   Local Variables:
50   mode:c++
51   c-file-style:"stroustrup"
52   c-file-offsets:((innamespace . 0)(inline-open . 0))
53   indent-tabs-mode:nil
54   fill-column:99
55   End:
56 */
57 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :