]> Shamusworld >> Repos - ttedit/blob - src/toolwindow.h
Forgot new files in last commit. D'oh!
[ttedit] / src / toolwindow.h
1 //\r
2 // TOOLWINDOW.H: Header file\r
3 //\r
4 // by James L. Hammons\r
5 // (C) 2008 Underground Software\r
6 //\r
7 \r
8 #ifndef __TOOLWINDOW_H__\r
9 #define __TOOLWINDOW_H__\r
10 \r
11 #include <wx/wx.h>                                                              // So that whoever uses this can without having\r
12                                                                                                 // to pull in a bunch of references manually\r
13 \r
14 // Enumerations (prolly go into ToolWindow class--?)\r
15 \r
16 enum ToolType {\r
17         TOOLNone = -1,                                                  // No tool\r
18         TOOLSelect = 0,                                                 // The "selection" tool\r
19         TOOLPolySelect,                                                 // Polygon selection tool\r
20         TOOLScroll,                                                             // Scroll window tool\r
21         TOOLZoom,                                                               // Zoom window tool\r
22         TOOLAddPt,                                                              // Add point tool\r
23         TOOLAddPoly,                                                    // Polygon creation tool\r
24         TOOLDelPt,                                                              // Delete point tool\r
25         TOOLDelPoly                                                             // Delete polygon tool\r
26 };\r
27 \r
28 class ToolWindow: public wxFrame\r
29 {\r
30         private:\r
31         protected:\r
32         public:\r
33                 wxBitmap * bmp;\r
34                 wxPoint sizeStamp, sizeTPBM;\r
35                 ToolType prevTool;\r
36 \r
37                 // Constructor and destructor\r
38                 ToolWindow(wxFrame * parent, const wxString &title, const wxPoint &pos, const wxSize &size, long style);\r
39                 ~ToolWindow(void);\r
40 \r
41                 void OnPaint(wxPaintEvent &e);\r
42                 ToolType FindSelectedTool(void);\r
43 \r
44         DECLARE_EVENT_TABLE()\r
45 };\r
46 \r
47 #endif  // __TOOLWINDOW_H__\r