]> icculus.org git repositories - taylor/freespace2.git/blob - include/launchersetup.h
re-add PXO sources to project files
[taylor/freespace2.git] / include / launchersetup.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on
6  * the source.
7  */
8
9 #ifndef LAUNCHERSETUP_H
10 #define LAUNCHERSETUP_H
11
12
13 #include "wx/wxprec.h"
14
15 #ifndef WX_PRECOMP
16         #include "wx/wx.h"
17 #endif
18
19 #include "wx/notebook.h"
20
21
22 class LauncherSetup : public wxDialog
23 {
24         private:
25                 void initTab_Video(wxNotebook* parent);
26                 void initTab_Audio(wxNotebook* parent);
27                 void initTab_Joystick(wxNotebook* parent);
28                 void initTab_Speed(wxNotebook* parent);
29                 void initTab_Network(wxNotebook* parent);
30
31                 void saveTab_Video();
32                 void saveTab_Audio();
33                 void saveTab_Joystick();
34                 void saveTab_Speed();
35                 void saveTab_Network();
36
37                 void save_settings();
38
39                 wxDECLARE_EVENT_TABLE();
40
41         protected:
42                 enum {
43                         ID_CB_MSAA = 1000
44                 };
45
46                 wxComboBox* m_Video_Renderer;
47                 wxCheckBox* m_Video_Fullscreen;
48                 wxCheckBox* m_Video_MSAA;
49                 wxChoice* m_Video_MSAASamples;
50                 wxCheckBox* m_Video_ShowFPS;
51
52                 wxComboBox* m_Audio_PlaybackDevice;
53                 wxComboBox* m_Audio_CaptureDevice;
54                 wxCheckBox* m_Audio_EFX;
55                 wxCheckBox* m_Audio_LauncherSounds;
56
57                 wxComboBox* m_Joystick_Device;
58                 wxCheckBox* m_Joystick_FF;
59                 wxCheckBox* m_Joystick_Directional;
60
61                 wxComboBox* m_Speed_DefaultDetail;
62
63                 wxRadioBox* m_Network_Connection;
64                 wxRadioBox* m_Network_Speed;
65                 wxTextCtrl* m_Network_Port;
66                 unsigned short m_port_validate;
67
68                 void onOk(wxCommandEvent& event);
69                 void onToggleMSAA(wxCommandEvent& event);
70
71         public:
72
73                 LauncherSetup( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Setup"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE );
74                 ~LauncherSetup();
75
76 };
77
78
79
80 #endif // LAUNCHERSETUP_H