// 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;
};
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:
void OnCharWindow(wxCommandEvent &e);
DECLARE_EVENT_TABLE()
+#endif
};
#endif // __TTEDIT_H__