2 // TTEDIT.H: Header file
5 // (C) 2009 Underground Software
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
51 class TTEMainWindow: public QMainWindow
53 // All Qt apps require this macro
60 void closeEvent(QCloseEvent * event);
66 void ReadSettings(void);
67 void WriteSettings(void);
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 // __TTEDIT_H__