X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fttedit.h;h=6545455efe0304639ee9575664c8c4be2f3e711e;hb=c84263bb8b0d16e4c6da49aa0b7d0bc904ae02b1;hp=7f1eba7da80992e2e1d76a1da95bde172d3cdce5;hpb=5c7c36b21d0f2a88accd8ff12c05dcc3004ce0e8;p=ttedit diff --git a/src/ttedit.h b/src/ttedit.h index 7f1eba7..6545455 100755 --- a/src/ttedit.h +++ b/src/ttedit.h @@ -1,63 +1,63 @@ -// -// 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) 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__