Code

ea21ecd515334bdad1fdec585dfbef6a1df7d4ec
[inkscape.git] / src / lpe-tool-context.h
1 #ifndef SP_LPETOOL_CONTEXT_H_SEEN
2 #define SP_LPETOOL_CONTEXT_H_SEEN
4 /*
5  * LPEToolContext: a context for a generic tool composed of subtools that are given by LPEs
6  *
7  * Authors:
8  *   Maximilian Albert <maximilian.albert@gmail.com>
9  *
10  * Copyright (C) 1998 The Free Software Foundation
11  * Copyright (C) 1999-2002 authors
12  * Copyright (C) 2001-2002 Ximian, Inc.
13  * Copyright (C) 2008 Maximilian Albert
14  *
15  * Released under GNU GPL, read the file 'COPYING' for more information
16  */
18 #include "pen-context.h"
20 #define SP_TYPE_LPETOOL_CONTEXT (sp_lpetool_context_get_type())
21 #define SP_LPETOOL_CONTEXT(o) (GTK_CHECK_CAST((o), SP_TYPE_LPETOOL_CONTEXT, SPLPEToolContext))
22 #define SP_LPETOOL_CONTEXT_CLASS(k) (GTK_CHECK_CLASS_CAST((k), SP_TYPE_LPETOOL_CONTEXT, SPLPEToolContextClass))
23 #define SP_IS_LPETOOL_CONTEXT(o) (GTK_CHECK_TYPE((o), SP_TYPE_LPETOOL_CONTEXT))
24 #define SP_IS_LPETOOL_CONTEXT_CLASS(k) (GTK_CHECK_CLASS_TYPE((k), SP_TYPE_LPETOOL_CONTEXT))
26 class SPLPEToolContext;
27 class SPLPEToolContextClass;
29 /* This is the list of subtools from which the toolbar of the LPETool is built automatically */
30 extern const int num_subtools;
32 extern Inkscape::LivePathEffect::EffectType lpesubtools[];
34 enum LPEToolState {
35     LPETOOL_STATE_PEN,
36     LPETOOL_STATE_NODE
37 };
39 struct SPLPEToolContext : public SPPenContext {
40     LPEToolState tool_state;
41 };
43 struct SPLPEToolContextClass : public SPEventContextClass{};
45 GType sp_lpetool_context_get_type(void);
47 #endif // SP_LPETOOL_CONTEXT_H_SEEN
49 /*
50   Local Variables:
51   mode:c++
52   c-file-style:"stroustrup"
53   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
54   indent-tabs-mode:nil
55   fill-column:99
56   End:
57 */
58 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :