X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Ftoolwindow.h;h=d4eab9f0371fd400ef9a40e91b3d50663348057b;hb=c84263bb8b0d16e4c6da49aa0b7d0bc904ae02b1;hp=5d1ee3ee74eac42bc3ed8e48d38c8bae89f880df;hpb=5c7c36b21d0f2a88accd8ff12c05dcc3004ce0e8;p=ttedit diff --git a/src/toolwindow.h b/src/toolwindow.h index 5d1ee3e..d4eab9f 100755 --- a/src/toolwindow.h +++ b/src/toolwindow.h @@ -1,47 +1,47 @@ -// -// TOOLWINDOW.H: Header file -// -// by James L. Hammons -// (C) 2008 Underground Software -// - -#ifndef __TOOLWINDOW_H__ -#define __TOOLWINDOW_H__ - -#include // So that whoever uses this can without having - // to pull in a bunch of references manually - -// Enumerations (prolly go into ToolWindow class--?) - -enum ToolType { - TOOLNone = -1, // No tool - TOOLSelect = 0, // The "selection" tool - TOOLPolySelect, // Polygon selection tool - TOOLScroll, // Scroll window tool - TOOLZoom, // Zoom window tool - TOOLAddPt, // Add point tool - TOOLAddPoly, // Polygon creation tool - TOOLDelPt, // Delete point tool - TOOLDelPoly // Delete polygon tool -}; - -class ToolWindow: public wxFrame -{ - private: - protected: - public: - wxBitmap * bmp; - wxPoint sizeStamp, sizeTPBM; - ToolType prevTool; - - // Constructor and destructor - ToolWindow(wxFrame * parent, const wxString &title, const wxPoint &pos, const wxSize &size, long style); - ~ToolWindow(void); - - void OnPaint(wxPaintEvent &e); - ToolType FindSelectedTool(void); - - DECLARE_EVENT_TABLE() -}; - -#endif // __TOOLWINDOW_H__ +// +// TOOLWINDOW.H: Header file +// +// by James L. Hammons +// (C) 2008 Underground Software +// + +#ifndef __TOOLWINDOW_H__ +#define __TOOLWINDOW_H__ + +#include // So that whoever uses this can without having + // to pull in a bunch of references manually + +// Enumerations (prolly go into ToolWindow class--?) + +enum ToolType { + TOOLNone = -1, // No tool + TOOLSelect = 0, // The "selection" tool + TOOLPolySelect, // Polygon selection tool + TOOLScroll, // Scroll window tool + TOOLZoom, // Zoom window tool + TOOLAddPt, // Add point tool + TOOLAddPoly, // Polygon creation tool + TOOLDelPt, // Delete point tool + TOOLDelPoly // Delete polygon tool +}; + +class ToolWindow: public wxFrame +{ + private: + protected: + public: + wxBitmap * bmp; + wxPoint sizeStamp, sizeTPBM; + ToolType prevTool; + + // Constructor and destructor + ToolWindow(wxFrame * parent, const wxString &title, const wxPoint &pos, const wxSize &size, long style); + ~ToolWindow(void); + + void OnPaint(wxPaintEvent &e); + ToolType FindSelectedTool(void); + + DECLARE_EVENT_TABLE() +}; + +#endif // __TOOLWINDOW_H__