]> Shamusworld >> Repos - ttedit/blobdiff - src/ttedit.h
Fix for missing ampersand in QApplication.
[ttedit] / src / ttedit.h
index 7f1eba7da80992e2e1d76a1da95bde172d3cdce5..9bc6b598ab813b0be990c89c404bc43cefeb61ad 100755 (executable)
@@ -1,63 +1,28 @@
-//\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__
+
+//Hrm. uh??? I thought this wasn't the way to do this stuff...???
+#include <QtGui>
+
+// Forward declarations
+class CharWindow;
+class TTEMainWindow;
+
+class TTEdit: public QApplication
+{
+       public:
+               TTEdit(int & argc, char * argv[]);
+
+       public:
+               CharWindow * charWnd;
+               TTEMainWindow * mainWindow;
+};
+
+#endif // __TTEDIT_H__