-//\r
-// TTEDIT.H: Header file\r
-//\r
-// by James L. Hammons\r
-// (C) 2008 Underground Software\r
-//\r
-\r
-#ifndef __TTEDIT_H__\r
-#define __TTEDIT_H__\r
-\r
-#include <wx/wx.h> // So that whoever uses this can without having\r
- // to pull in a bunch of references manually\r
-#include "ttf.h"\r
-\r
-// Forward declarations\r
-\r
-class TTEditFrame;\r
-class TTEditWindow;\r
-class CharWindow;\r
-class ToolWindow;\r
-\r
-//\r
-// Class representing the entire Application\r
-//\r
-class TTEditApp: public wxApp\r
-{\r
- public:\r
- TTEditFrame * mainFrame;\r
- CharWindow * charWin;\r
- ToolWindow * toolPalette;\r
- TTF font;\r
- wxCursor * cur[8];\r
-\r
- bool OnInit();\r
- int OnExit();\r
- void CreateResources(void);\r
-};\r
-\r
-DECLARE_APP(TTEditApp)\r
-\r
-class TTEditFrame: public wxFrame\r
-{\r
- private:\r
- protected:\r
- public:\r
- TTEditApp & app; // Reference to the application object\r
- // Subwindows for reference within the program.\r
- TTEditWindow * mainWindow;\r
- wxMenuBar * menuBar;\r
-\r
- // Constructor and destructor\r
- TTEditFrame(wxFrame * parent, const wxString &title, const wxPoint &pos, const wxSize &size, long style);\r
- ~TTEditFrame(void);\r
-\r
- void OnCloseWindow(wxCloseEvent &e);\r
- void OnOpen(wxCommandEvent &e);\r
- void OnExit(wxCommandEvent &e);\r
- void OnAbout(wxCommandEvent &e);\r
-\r
- DECLARE_EVENT_TABLE()\r
-};\r
-\r
-#endif // __TTEDIT_H__\r
+//
+// TTEDIT.H: Header file
+//
+// by James L. Hammons
+// (C) 2009 Underground Software
+//
+
+#ifndef __TTEDIT_H__
+#define __TTEDIT_H__
+
+#include <QtWidgets>
+
+// Forward declarations
+class CharWindow;
+class MainWindow;
+
+class TTEdit: public QApplication
+{
+ public:
+ TTEdit(int & argc, char * argv[]);
+
+ public:
+ CharWindow * charWnd;
+ MainWindow * mainWindow;
+};
+
+#endif // __TTEDIT_H__