| 1 |
/* |
| 2 |
Copyright (C) 2009-2010 wxLauncher Team |
| 3 |
|
| 4 |
This program is free software; you can redistribute it and/or |
| 5 |
modify it under the terms of the GNU General Public License |
| 6 |
as published by the Free Software Foundation; either version 2 |
| 7 |
of the License, or (at your option) any later version. |
| 8 |
|
| 9 |
This program is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public License |
| 15 |
along with this program; if not, write to the Free Software |
| 16 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifndef MAINWINDOW_H |
| 20 |
#define MAINWINDOW_H |
| 21 |
|
| 22 |
#include <wx/wx.h> |
| 23 |
#include <wx/notebook.h> |
| 24 |
#include <wx/process.h> |
| 25 |
|
| 26 |
class MainWindow: public wxFrame { |
| 27 |
public: |
| 28 |
MainWindow(); |
| 29 |
~MainWindow(); |
| 30 |
|
| 31 |
void OnQuit(wxCommandEvent& event); |
| 32 |
void OnHelp(wxCommandEvent& event); |
| 33 |
void OnFSButton(wxCommandEvent& event); |
| 34 |
void OnStart(wxButton* button, bool startFred=false); |
| 35 |
void OnKill(wxButton* button, bool killFred=false); |
| 36 |
void OnStartFred(wxCommandEvent& event); |
| 37 |
void OnUpdate(wxCommandEvent& event); |
| 38 |
void OnAbout(wxCommandEvent& event); |
| 39 |
void OnContextHelp(wxHelpEvent& event); |
| 40 |
void OnFS2Exited(wxProcessEvent& event); |
| 41 |
void OnFRED2Exited(wxProcessEvent& event); |
| 42 |
void OnTCSkinChanged(wxCommandEvent& event); |
| 43 |
|
| 44 |
/** F3 toggles FRED launching. */ |
| 45 |
void OnF3Pressed(wxCommandEvent& event); |
| 46 |
|
| 47 |
private: |
| 48 |
wxProcess* process; |
| 49 |
wxNotebook* mainTab; |
| 50 |
long FS2_pid, FRED2_pid; |
| 51 |
|
| 52 |
DECLARE_EVENT_TABLE(); |
| 53 |
}; |
| 54 |
|
| 55 |
#endif |