Code

Connector tool: make connectors avoid the convex hull of shapes.
[inkscape.git] / src / shortcuts.h
1 #ifndef __SP_SHORTCUTS_H__
2 #define __SP_SHORTCUTS_H__
4 /*
5  * Keyboard shortcut processing
6  *
7  * Author:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * This code is in public domain
11  */
13 namespace Inkscape {
14     class Verb;
15     namespace UI {
16         namespace View {
17             class View;
18         }
19     }
20 }
22 /* We define high-bit mask for packing into single int */
24 #define SP_SHORTCUT_SHIFT_MASK (1 << 24)
25 #define SP_SHORTCUT_CONTROL_MASK (1 << 25)
26 #define SP_SHORTCUT_ALT_MASK (1 << 26)
28 /* Returns true if action was performed */
29 bool sp_shortcut_invoke (unsigned int shortcut, Inkscape::UI::View::View *view);
31 Inkscape::Verb * sp_shortcut_get_verb (unsigned int shortcut);
32 unsigned int sp_shortcut_get_primary (Inkscape::Verb * verb);
34 #endif
36 /*
37   Local Variables:
38   mode:c++
39   c-file-style:"stroustrup"
40   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
41   indent-tabs-mode:nil
42   fill-column:99
43   End:
44 */
45 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :