2 // EDITWINDOW.H: Header file
5 // (C) 2008 Underground Software
8 #ifndef __EDITWINDOW_H__
9 #define __EDITWINDOW_H__
11 #include <wx/wx.h> // So that whoever uses this can without having
12 // to pull in a bunch of references manually
14 #include "ttedit.h" // For TTEditApp
15 #include "toolwindow.h" // For ToolType enum
16 #include "glyphpoints.h"
18 class TTEditWindow: public wxWindow
21 TTEditApp & app; // Reference to the application object
22 double scale; // Window scaling factor
23 int32 offsetX, offsetY; // Window offsets
24 ToolType tool; // Current tool
25 GlyphPoints pts; // Glyph point structure
26 int32 ptHighlight, oldPtHighlight, ptNextHighlight, oldPtNextHighlight;
32 wxPoint pt, ptOffset, ptPrevious;
34 // Constructor and destructor
35 TTEditWindow(wxFrame * parent, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0);
38 void OnPaint(wxPaintEvent &e);
39 void OnMouseEvent(wxMouseEvent &e);
42 wxPoint GetAdjustedMousePosition(wxMouseEvent &e);
43 wxPoint GetAdjustedClientPosition(wxCoord x, wxCoord y);
48 #endif // __EDITWINDOW_H__