]> Shamusworld >> Repos - ttedit/blob - src/ttedit.h
Too many changes between last commit and here. I forgot that
[ttedit] / src / ttedit.h
1 //\r
2 // TTEDIT.H: Header file\r
3 //\r
4 // by James L. Hammons\r
5 // (C) 2008 Underground Software\r
6 //\r
7 \r
8 #ifndef __TTEDIT_H__\r
9 #define __TTEDIT_H__\r
10 \r
11 #include <wx/wx.h>                                                              // So that whoever uses this can without having\r
12                                                                                                 // to pull in a bunch of references manually\r
13 #include "ttf.h"\r
14 \r
15 // Forward declarations\r
16 \r
17 class TTEditFrame;\r
18 class TTEditWindow;\r
19 class CharWindow;\r
20 class ToolWindow;\r
21 \r
22 //\r
23 // Class representing the entire Application\r
24 //\r
25 class TTEditApp: public wxApp\r
26 {\r
27         public:\r
28                 TTEditFrame * mainFrame;\r
29                 CharWindow * charWin;\r
30                 ToolWindow * toolPalette;\r
31                 TTF font;\r
32                 wxCursor * cur[8];\r
33 \r
34                 bool OnInit();\r
35                 int OnExit();\r
36                 void CreateResources(void);\r
37 };\r
38 \r
39 DECLARE_APP(TTEditApp)\r
40 \r
41 class TTEditFrame: public wxFrame\r
42 {\r
43         private:\r
44         protected:\r
45         public:\r
46                 TTEditApp & app;                                                // Reference to the application object\r
47                 // Subwindows for reference within the program.\r
48                 TTEditWindow * mainWindow;\r
49                 wxMenuBar * menuBar;\r
50 \r
51                 // Constructor and destructor\r
52                 TTEditFrame(wxFrame * parent, const wxString &title, const wxPoint &pos, const wxSize &size, long style);\r
53                 ~TTEditFrame(void);\r
54 \r
55                 void OnCloseWindow(wxCloseEvent &e);\r
56                 void OnOpen(wxCommandEvent &e);\r
57                 void OnExit(wxCommandEvent &e);\r
58                 void OnAbout(wxCommandEvent &e);\r
59 \r
60         DECLARE_EVENT_TABLE()\r
61 };\r
62 \r
63 #endif  // __TTEDIT_H__\r