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