2 // TTEMAINWINDOW.H: Header file
5 // (C) 2009 Underground Software
8 #ifndef __TTEMAINWINDOW_H__
9 #define __TTEMAINWINDOW_H__
11 //Hrm. uh??? I thought this wasn't the way to do this stuff...???
15 //#include <wx/wx.h> // So that whoever uses this can without having
16 // to pull in a bunch of references manually
19 // Forward declarations
27 // Class representing the entire Application
29 class TTEditApp: public QMainWindow
32 TTEditFrame * mainFrame;
34 ToolWindow * toolPalette;
40 void CreateResources(void);
43 DECLARE_APP(TTEditApp)
45 // Forward declarations
50 class TTEMainWindow: public QMainWindow
52 // All Qt apps require this macro
59 void closeEvent(QCloseEvent * event);
65 void ReadSettings(void);
66 void WriteSettings(void);
69 // CharWindow * charWnd;
74 TTEditApp & app; // Reference to the application object
75 // Subwindows for reference within the program.
76 TTEditWindow * mainWindow;
79 // Constructor and destructor
80 TTEditFrame(wxFrame * parent, const wxString &title, const wxPoint &pos, const wxSize &size, long style);
83 void OnCloseWindow(wxCloseEvent &e);
84 void OnOpen(wxCommandEvent &e);
85 void OnExit(wxCommandEvent &e);
86 void OnAbout(wxCommandEvent &e);
87 void OnCharWindow(wxCommandEvent &e);
93 #endif // __TTEMAINWINDOW_H__