]> Shamusworld >> Repos - ttedit/blobdiff - src/toolwindow.h
Forgot new files in last commit. D'oh!
[ttedit] / src / toolwindow.h
diff --git a/src/toolwindow.h b/src/toolwindow.h
new file mode 100755 (executable)
index 0000000..5d1ee3e
--- /dev/null
@@ -0,0 +1,47 @@
+//\r
+// TOOLWINDOW.H: Header file\r
+//\r
+// by James L. Hammons\r
+// (C) 2008 Underground Software\r
+//\r
+\r
+#ifndef __TOOLWINDOW_H__\r
+#define __TOOLWINDOW_H__\r
+\r
+#include <wx/wx.h>                                                             // So that whoever uses this can without having\r
+                                                                                               // to pull in a bunch of references manually\r
+\r
+// Enumerations (prolly go into ToolWindow class--?)\r
+\r
+enum ToolType {\r
+       TOOLNone = -1,                                                  // No tool\r
+       TOOLSelect = 0,                                                 // The "selection" tool\r
+       TOOLPolySelect,                                                 // Polygon selection tool\r
+       TOOLScroll,                                                             // Scroll window tool\r
+       TOOLZoom,                                                               // Zoom window tool\r
+       TOOLAddPt,                                                              // Add point tool\r
+       TOOLAddPoly,                                                    // Polygon creation tool\r
+       TOOLDelPt,                                                              // Delete point tool\r
+       TOOLDelPoly                                                             // Delete polygon tool\r
+};\r
+\r
+class ToolWindow: public wxFrame\r
+{\r
+       private:\r
+       protected:\r
+       public:\r
+               wxBitmap * bmp;\r
+               wxPoint sizeStamp, sizeTPBM;\r
+               ToolType prevTool;\r
+\r
+               // Constructor and destructor\r
+               ToolWindow(wxFrame * parent, const wxString &title, const wxPoint &pos, const wxSize &size, long style);\r
+               ~ToolWindow(void);\r
+\r
+               void OnPaint(wxPaintEvent &e);\r
+               ToolType FindSelectedTool(void);\r
+\r
+       DECLARE_EVENT_TABLE()\r
+};\r
+\r
+#endif // __TOOLWINDOW_H__\r