]> icculus.org git repositories - taylor/freespace2.git/blob - include/launchersetup.h
fix issue with looping audio streams
[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                 void initTab_PXO(wxNotebook* parent);
31
32                 void saveTab_Video();
33                 void saveTab_Audio();
34                 void saveTab_Joystick();
35                 void saveTab_Speed();
36                 void saveTab_Network();
37                 void saveTab_PXO();
38
39                 void save_settings();
40
41                 wxDECLARE_EVENT_TABLE();
42
43         protected:
44                 enum {
45                         ID_CB_MSAA = 1000
46                 };
47
48                 wxComboBox* m_Video_Renderer;
49                 wxCheckBox* m_Video_Fullscreen;
50                 wxCheckBox* m_Video_MSAA;
51                 wxChoice* m_Video_MSAASamples;
52                 wxCheckBox* m_Video_ShowFPS;
53
54                 wxComboBox* m_Audio_PlaybackDevice;
55                 wxComboBox* m_Audio_CaptureDevice;
56                 wxCheckBox* m_Audio_EFX;
57                 wxCheckBox* m_Audio_LauncherSounds;
58
59                 wxComboBox* m_Joystick_Device;
60                 wxCheckBox* m_Joystick_FF;
61                 wxCheckBox* m_Joystick_Directional;
62
63                 wxComboBox* m_Speed_DefaultDetail;
64
65                 wxRadioBox* m_Network_Connection;
66                 wxRadioBox* m_Network_Speed;
67                 wxTextCtrl* m_PXO_Login;
68                 wxTextCtrl* m_PXO_Password;
69                 wxCheckBox* m_SkipVerify;
70                 wxCheckBox* m_PXOBanners;
71                 wxTextCtrl* m_Network_Port;
72                 unsigned short m_port_validate;
73
74                 void onOk(wxCommandEvent& event);
75                 void onToggleMSAA(wxCommandEvent& event);
76
77         public:
78
79                 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 );
80                 ~LauncherSetup();
81
82 };
83
84
85
86 #endif // LAUNCHERSETUP_H