mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-18 16:39:31 +00:00
3e30507ad4
- a bug prevented to unload Mods, which were new added to the list Improvements: - OpenTexMod can now be started only once - language support (German package provided) - added more error comments
100 lines
2.2 KiB
C++
100 lines
2.2 KiB
C++
/*
|
|
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 <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OTM_GUI_H_
|
|
#define OTM_GUI_H_
|
|
|
|
|
|
#include "OTM_Main.h"
|
|
|
|
class OTM_Frame : public wxFrame
|
|
{
|
|
public:
|
|
OTM_Frame(const wxString& title, const wxPoint& pos, const wxSize& size);
|
|
~OTM_Frame(void);
|
|
|
|
|
|
void OnAddGame( wxCommandEvent &event);
|
|
void OnDeleteGame( wxCommandEvent &event);
|
|
|
|
void OnClose(wxCloseEvent& WXUNUSED(event));
|
|
|
|
|
|
void OnButtonOpen(wxCommandEvent& WXUNUSED(event));
|
|
void OnButtonPath(wxCommandEvent& WXUNUSED(event));
|
|
void OnButtonUpdate(wxCommandEvent& WXUNUSED(event));
|
|
void OnButtonSave(wxCommandEvent& WXUNUSED(event));
|
|
|
|
|
|
void OnMenuLanguage(wxCommandEvent& WXUNUSED(event));
|
|
void OnMenuHelp(wxCommandEvent& WXUNUSED(event));
|
|
void OnMenuAbout(wxCommandEvent& WXUNUSED(event));
|
|
void OnMenuAddGame(wxCommandEvent& WXUNUSED(event));
|
|
void OnMenuDeleteGame(wxCommandEvent& WXUNUSED(event));
|
|
|
|
private:
|
|
int KillServer(void);
|
|
int GetHookedGames( wxArrayString &array);
|
|
int SetHookedGames( const wxArrayString &array);
|
|
|
|
OTM_Server *Server;
|
|
|
|
OTM_Language Language;
|
|
wxNotebook *Notebook;
|
|
|
|
|
|
wxButton *OpenButton;
|
|
wxButton *DirectoryButton;
|
|
wxButton *UpdateButton;
|
|
wxButton *SaveButton;
|
|
|
|
|
|
wxMenuBar *MenuBar;
|
|
wxMenu *MenuGame;
|
|
wxMenu *MenuHelp;
|
|
|
|
wxBoxSizer *MainSizer;
|
|
wxBoxSizer *ButtonSizer;
|
|
|
|
|
|
int NumberOfGames;
|
|
int MaxNumberOfGames;
|
|
OTM_Client **Clients;
|
|
HMODULE H_DX9_DLL;
|
|
|
|
wxString LastError;
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
};
|
|
|
|
class MyApp : public wxApp
|
|
{
|
|
public:
|
|
virtual ~MyApp();
|
|
virtual bool OnInit();
|
|
private:
|
|
HANDLE CheckForSingleRun;
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|