/* This file is part of OpenTexMod. OpenTexMod is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenTexMod is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTexMod. If not, see . */ #ifndef OTM_GAMEPAGE_H_ #define OTM_GAMEPAGE_H_ #include "OTM_Main.h" // this page is opened if a game is started. class OTM_GamePage : public wxScrolledWindow { public: OTM_GamePage( wxNotebook *parent, const wxString &exe, const wxString &save, PipeStruct &pipe); virtual ~OTM_GamePage(void); int AddTexture( const wxString &file_name); int UpdateGame(void); int ReloadGame(void); int SaveTemplate( const wxString &file_name); int LoadTemplate( const wxString &file_name); wxString GetExeName(void) {return ExeName;} wxString GetTemplateName(void) {return TemplateName;} int SetOpenPath(const wxString &path) {return Game.SetOpenPath(path);} wxString GetOpenPath(void) {return Game.GetOpenPath();} int SetSavePath(const wxString &path); wxString GetSavePath(void) {return Game.GetSavePath();} void OnButtonUp(wxCommandEvent& WXUNUSED(event)); void OnButtonDown(wxCommandEvent& WXUNUSED(event)); void OnButtonDelete(wxCommandEvent& WXUNUSED(event)); int UpdateLanguage(void); wxString LastError; private: int GetSettings(void); int SetColour( wxTextCtrl** txt, int *colour); int GetColour( wxTextCtrl* txt, int def); wxString ExeName; wxString TemplateName; wxBoxSizer *SizerKeys[2]; wxTextCtrl *TextKeyBack; wxTextCtrl *TextKeySave; wxTextCtrl *TextKeyNext; wxChoice *ChoiceKeyBack; wxChoice *ChoiceKeySave; wxChoice *ChoiceKeyNext; wxBoxSizer *FontColourSizer; wxTextCtrl *FontColour[4]; wxBoxSizer *TextureColourSizer; wxTextCtrl *TextureColour[4]; wxBoxSizer *MainSizer; wxTextCtrl *TemplateFile; wxCheckBox *SaveAllTextures; wxCheckBox *SaveSingleTexture; wxTextCtrl *SavePath; wxBoxSizer **CheckBoxHSizers; wxButton **CheckButtonUp; wxButton **CheckButtonDown; wxButton **CheckButtonDelete; wxCheckBox **CheckBoxes; int NumberOfEntry; int MaxNumberOfEntry; wxArrayString Files; OTM_GameInfo Game; OTM_GameInfo GameOld; OTM_Sender Sender; //DECLARE_EVENT_TABLE(); }; #endif /* OTM_GAMEPAGE_H_ */