X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fttedit.h;h=482b6accec5c9712e92420b1615b8300aca39699;hb=1881acb17ed405cdb5aa2cb333a7af77f644a86d;hp=7f1eba7da80992e2e1d76a1da95bde172d3cdce5;hpb=20195737e60552ca35c3212db45ece6c4db6bb1d;p=ttedit diff --git a/src/ttedit.h b/src/ttedit.h old mode 100755 new mode 100644 index 7f1eba7..482b6ac --- a/src/ttedit.h +++ b/src/ttedit.h @@ -1,63 +1,27 @@ -// -// TTEDIT.H: Header file -// -// by James L. Hammons -// (C) 2008 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" - -// Forward declarations - -class TTEditFrame; -class TTEditWindow; -class CharWindow; -class ToolWindow; - -// -// Class representing the entire Application -// -class TTEditApp: public wxApp -{ - public: - TTEditFrame * mainFrame; - CharWindow * charWin; - ToolWindow * toolPalette; - TTF font; - wxCursor * cur[8]; - - bool OnInit(); - int OnExit(); - void CreateResources(void); -}; - -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() -}; - -#endif // __TTEDIT_H__ +// +// TTEDIT.H: Header file +// +// by James L. Hammons +// (C) 2009 Underground Software +// + +#ifndef __TTEDIT_H__ +#define __TTEDIT_H__ + +#include + +// Forward declarations +class CharWindow; +class MainWindow; + +class TTEdit: public QApplication +{ + public: + TTEdit(int & argc, char * argv[]); + + public: + CharWindow * charWnd; + MainWindow * mainWindow; +}; + +#endif // __TTEDIT_H__