]> Shamusworld >> Repos - ttedit/blobdiff - src/ttedit.h
Fix for missing ampersand in QApplication.
[ttedit] / src / ttedit.h
index fc0fb3ef8e65b5e7466722dd872168d82f42b55b..9bc6b598ab813b0be990c89c404bc43cefeb61ad 100755 (executable)
@@ -2,63 +2,27 @@
 // TTEDIT.H: Header file
 //
 // by James L. Hammons
-// (C) 2008 Underground Software
+// (C) 2009 Underground Software
 //
 
 #ifndef __TTEDIT_H__
 #define __TTEDIT_H__
 
-#include <wx/wx.h>                                                             // So that whoever uses this can without having
-                                                                                               // to pull in a bunch of references manually
-#include "ttf.h"
+//Hrm. uh??? I thought this wasn't the way to do this stuff...???
+#include <QtGui>
 
 // Forward declarations
-
-class TTEditFrame;
-class TTEditWindow;
 class CharWindow;
-class ToolWindow;
+class TTEMainWindow;
 
-//
-// Class representing the entire Application
-//
-class TTEditApp: public wxApp
+class TTEdit: public QApplication
 {
        public:
-               TTEditFrame * mainFrame;
-               CharWindow * charWin;
-               ToolWindow * toolPalette;
-               TTF font;
-               wxCursor * cur[8];
-
-               bool OnInit();
-               int OnExit();
-               void CreateResources(void);
-};
+               TTEdit(int & argc, char * argv[]);
 
-DECLARE_APP(TTEditApp)
-
-class TTEditFrame: public wxFrame
-{
-       private:
-       protected:
        public:
-               TTEditApp & app;                                                // Reference to the application object
-               // Subwindows for reference within the program.
-               TTEditWindow * mainWindow;
-               wxMenuBar * menuBar;
-
-               // Constructor and destructor
-               TTEditFrame(wxFrame * parent, const wxString &title, const wxPoint &pos, const wxSize &size, long style);
-               ~TTEditFrame(void);
-
-               void OnCloseWindow(wxCloseEvent &e);
-               void OnOpen(wxCommandEvent &e);
-               void OnExit(wxCommandEvent &e);
-               void OnAbout(wxCommandEvent &e);
-               void OnCharWindow(wxCommandEvent &e);
-
-       DECLARE_EVENT_TABLE()
+               CharWindow * charWnd;
+               TTEMainWindow * mainWindow;
 };
 
 #endif // __TTEDIT_H__