-//\r
-// EDITWINDOW.H: Header file\r
-//\r
-// by James L. Hammons\r
-// (C) 2008 Underground Software\r
-//\r
-\r
-#ifndef __EDITWINDOW_H__\r
-#define __EDITWINDOW_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
-#include "types.h"\r
-#include "ttedit.h" // For TTEditApp\r
-#include "toolwindow.h" // For ToolType enum\r
-#include "glyphpoints.h"\r
-\r
-class TTEditWindow: public wxWindow\r
-{\r
- private:\r
- TTEditApp & app; // Reference to the application object\r
- double scale; // Window scaling factor\r
- int32 offsetX, offsetY; // Window offsets\r
- ToolType tool; // Current tool\r
- GlyphPoints pts; // Glyph point structure\r
- int32 ptHighlight, oldPtHighlight, ptNextHighlight, oldPtNextHighlight;\r
- bool polyFirstPoint;\r
-\r
- protected:\r
- public:\r
- wxBitmap * bmp;\r
- wxPoint pt, ptOffset, ptPrevious;\r
-\r
- // Constructor and destructor\r
- TTEditWindow(wxFrame * parent, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0);\r
- ~TTEditWindow(void);\r
-\r
- void OnPaint(wxPaintEvent &e);\r
- void OnMouseEvent(wxMouseEvent &e);\r
-\r
- protected:\r
- wxPoint GetAdjustedMousePosition(wxMouseEvent &e);\r
- wxPoint GetAdjustedClientPosition(wxCoord x, wxCoord y);\r
-\r
- DECLARE_EVENT_TABLE()\r
-};\r
-\r
-#endif // __EDITWINDOW_H__\r
+//
+// EDITWINDOW.H: Header file
+//
+// by James L. Hammons
+// (C) 2008 Underground Software
+//
+
+#ifndef __EDITWINDOW_H__
+#define __EDITWINDOW_H__
+
+#include <wx/wx.h> // So that whoever uses this can without having
+ // to pull in a bunch of references manually
+#include "types.h"
+#include "ttedit.h" // For TTEditApp
+#include "toolwindow.h" // For ToolType enum
+#include "glyphpoints.h"
+
+class TTEditWindow: public wxWindow
+{
+ private:
+ TTEditApp & app; // Reference to the application object
+ double scale; // Window scaling factor
+ int32 offsetX, offsetY; // Window offsets
+ ToolType tool; // Current tool
+ GlyphPoints pts; // Glyph point structure
+ int32 ptHighlight, oldPtHighlight, ptNextHighlight, oldPtNextHighlight;
+ bool polyFirstPoint;
+
+ protected:
+ public:
+ wxBitmap * bmp;
+ wxPoint pt, ptOffset, ptPrevious;
+
+ // Constructor and destructor
+ TTEditWindow(wxFrame * parent, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0);
+ ~TTEditWindow(void);
+
+ void OnPaint(wxPaintEvent &e);
+ void OnMouseEvent(wxMouseEvent &e);
+
+ protected:
+ wxPoint GetAdjustedMousePosition(wxMouseEvent &e);
+ wxPoint GetAdjustedClientPosition(wxCoord x, wxCoord y);
+
+ DECLARE_EVENT_TABLE()
+};
+
+#endif // __EDITWINDOW_H__