X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fttedit.h;h=9bc6b598ab813b0be990c89c404bc43cefeb61ad;hb=0cdf0ebfb4b788156b8eb2c2acadd5f95fe5be26;hp=6545455efe0304639ee9575664c8c4be2f3e711e;hpb=c84263bb8b0d16e4c6da49aa0b7d0bc904ae02b1;p=ttedit diff --git a/src/ttedit.h b/src/ttedit.h index 6545455..9bc6b59 100755 --- a/src/ttedit.h +++ b/src/ttedit.h @@ -2,62 +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 // 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 // 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); - - DECLARE_EVENT_TABLE() + CharWindow * charWnd; + TTEMainWindow * mainWindow; }; #endif // __TTEDIT_H__