Rev 7259 | Rev 7262 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7259 | Rev 7260 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | void (*onCanvasDraw)(); |
11 | void (*onCanvasDraw)(); |
12 | }; |
12 | }; |
Line 13... | Line 13... | ||
13 | 13 | ||
14 | int previousTool = -1; |
14 | int previousTool = -1; |
15 | int currentTool = -1; |
15 | int currentTool = -1; |
Line 16... | Line 16... | ||
16 | Tool tools[7]; |
16 | Tool tools[8]; |
17 | 17 | ||
18 | enum { |
18 | enum { |
19 | TOOL_NONE = -1, |
19 | TOOL_NONE = -1, |
20 | TOOL_PENCIL, |
20 | TOOL_PENCIL, |
21 | TOOL_PIPETTE, |
21 | TOOL_PIPETTE, |
22 | TOOL_FILL, |
22 | TOOL_FILL, |
23 | TOOL_LINE, |
23 | TOOL_LINE, |
24 | TOOL_RECT, |
24 | TOOL_RECT, |
- | 25 | TOOL_BAR, |
|
25 | TOOL_BAR, |
26 | TOOL_SELECT, |
26 | TOOL_SELECT |
27 | TOOL_SCREEN_COPY |
27 | }; |
28 | }; |
28 | #include "tools/pencil.h"; |
29 | #include "tools/pencil.h"; |
29 | #include "tools/pipette.h"; |
- | |
30 | #include "tools/fill.h"; |
30 | #include "tools/pipette.h"; |
- | 31 | #include "tools/fill.h"; |
|
- | 32 | #include "tools/simple_figure.h"; |
|
Line 31... | Line 33... | ||
31 | #include "tools/selection.h"; |
33 | #include "tools/selection.h"; |
32 | #include "tools/simple_figure.h"; |
34 | #include "tools/screen_copy.h"; |
33 | 35 | ||
Line 67... | Line 69... | ||
67 | tools[TOOL_SELECT].activate = #SelectTool_activate; |
69 | tools[TOOL_SELECT].activate = #SelectTool_activate; |
68 | tools[TOOL_SELECT].deactivate = #SelectTool_deactivate; |
70 | tools[TOOL_SELECT].deactivate = #SelectTool_deactivate; |
69 | tools[TOOL_SELECT].onMouseEvent = #SelectTool_onMouseEvent; |
71 | tools[TOOL_SELECT].onMouseEvent = #SelectTool_onMouseEvent; |
70 | tools[TOOL_SELECT].onCanvasDraw = #SelectTool_onCanvasDraw; |
72 | tools[TOOL_SELECT].onCanvasDraw = #SelectTool_onCanvasDraw; |
71 | tools[TOOL_SELECT].onKeyEvent = #SelectTool_onKeyEvent; |
73 | tools[TOOL_SELECT].onKeyEvent = #SelectTool_onKeyEvent; |
- | 74 | ||
- | 75 | tools[TOOL_SCREEN_COPY].id = TOOL_SCREEN_COPY; |
|
- | 76 | tools[TOOL_SCREEN_COPY].activate = #ScreenCopy_activate; |
|
- | 77 | tools[TOOL_SCREEN_COPY].onMouseEvent = #ScreenCopy_onMouseEvent; |
|
72 | } |
78 | } |
Line 73... | Line 79... | ||
73 | 79 | ||
74 | 80 |