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