X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fttedit.h;h=3adf6e8ba509bf31dbd93b2020f1ef57fe8fe389;hb=29b571499a38273c6c693334512e44f4162171a5;hp=d92c33aa611d28f98a35570201b0b44e37a4dbb0;hpb=3599953dec39d0ae662b039378a0b3eda39424e8;p=ttedit diff --git a/src/ttedit.h b/src/ttedit.h index d92c33a..3adf6e8 100755 --- a/src/ttedit.h +++ b/src/ttedit.h @@ -11,83 +11,16 @@ //Hrm. uh??? I thought this wasn't the way to do this stuff...??? #include -#if 0 -//#include // So that whoever uses this can without having - // to pull in a bunch of references manually -//#include "ttf.h" - -// Forward declarations - -//class TTEditWin; -//class TTEditWindow; -//class CharWindow; -//class ToolWindow; - -// -// Class representing the entire Application -// -class TTEditApp: public QMainWindow -{ - public: - TTEditFrame * mainFrame; - CharWindow * charWin; - ToolWindow * toolPalette; - TTF font; - wxCursor * cur[8]; - - bool OnInit(); - int OnExit(); - void CreateResources(void); -}; - -DECLARE_APP(TTEditApp) -#endif // Forward declarations +class CharWindow; -//class TTEditWin; -class EditWindow; - - -class TTEMainWindow: public QMainWindow +class TTEdit: public QApplication { - // All Qt apps require this macro - Q_OBJECT - public: - TTEMainWindow(); - - protected: - void closeEvent(QCloseEvent * event); + TTEdit(int argc, char * argv[]); - private slots: - void Open(); - - private: - void ReadSettings(void); - void WriteSettings(void); - - EditWindow * editWnd; -#if 0 - 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); - void OnCharWindow(wxCommandEvent &e); - - DECLARE_EVENT_TABLE() -#endif + CharWindow * charWnd; }; #endif // __TTEDIT_H__