]> Shamusworld >> Repos - ttedit/blobdiff - src/ttedit.h
Converted project from wxWidgets to Qt. This will be the LAST time this
[ttedit] / src / ttedit.h
index 6545455efe0304639ee9575664c8c4be2f3e711e..d92c33aa611d28f98a35570201b0b44e37a4dbb0 100755 (executable)
@@ -2,27 +2,31 @@
 // 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
+//Hrm. uh??? I thought this wasn't the way to do this stuff...???
+#include <QtGui>
+
+#if 0
+//#include <wx/wx.h>                                                           // So that whoever uses this can without having
                                                                                                // to pull in a bunch of references manually
-#include "ttf.h"
+//#include "ttf.h"
 
 // Forward declarations
 
-class TTEditFrame;
-class TTEditWindow;
-class CharWindow;
-class ToolWindow;
+//class TTEditWin;
+//class TTEditWindow;
+//class CharWindow;
+//class ToolWindow;
 
 //
 // Class representing the entire Application
 //
-class TTEditApp: public wxApp
+class TTEditApp: public QMainWindow
 {
        public:
                TTEditFrame * mainFrame;
@@ -37,9 +41,33 @@ class TTEditApp: public wxApp
 };
 
 DECLARE_APP(TTEditApp)
+#endif
+// Forward declarations
+
+//class TTEditWin;
+class EditWindow;
 
-class TTEditFrame: public wxFrame
+
+class TTEMainWindow: public QMainWindow
 {
+       // All Qt apps require this macro
+       Q_OBJECT
+
+       public:
+               TTEMainWindow();
+
+       protected:
+               void closeEvent(QCloseEvent * event);
+
+       private slots:
+               void Open();
+
+       private:
+               void ReadSettings(void);
+               void WriteSettings(void);
+
+               EditWindow * editWnd;
+#if 0
        private:
        protected:
        public:
@@ -56,8 +84,10 @@ class TTEditFrame: public wxFrame
                void OnOpen(wxCommandEvent &e);
                void OnExit(wxCommandEvent &e);
                void OnAbout(wxCommandEvent &e);
+               void OnCharWindow(wxCommandEvent &e);
 
        DECLARE_EVENT_TABLE()
+#endif
 };
 
 #endif // __TTEDIT_H__