1 #ifndef MMOPTIONWINDOWS_H_INCLUDED
2 #define MMOPTIONWINDOWS_H_INCLUDED
3 
4 #include <wx/dialog.h>
5 
6 class wxCheckBox;
7 class wxComboBox;
8 class wxCommandEvent;
9 class IBattle;
10 template <class P>
11 class SlSpinCtrlDouble;
12 class SlSpinDoubleEvent;
13 class wxTextCtrl;
14 class wxStaticText;
15 class wxButton;
16 
17 class SingleOptionDialog: public wxDialog
18 {
19 
20 	public:
21 			SingleOptionDialog( IBattle& battle, const wxString& optiontag );
22 
23 			void OnOk(wxCommandEvent& event);
24 			void OnCancel(wxCommandEvent& event);
25 
26 			//! dummy event receiver, mandated by the control implementation
OnSpinCtrlDoubleChange(SlSpinDoubleEvent &)27 			void OnSpinCtrlDoubleChange(SlSpinDoubleEvent& /*event*/){}
28 
29 	protected:
30 			IBattle& m_battle;
31 			wxString m_tag;
32 
33 			wxCheckBox* m_checkbox;
34 			wxComboBox* m_combobox;
35 			SlSpinCtrlDouble<SingleOptionDialog>* m_spinctrl;
36 			wxTextCtrl* m_textctrl;
37 			wxButton* m_cancel_button;
38 			wxButton* m_ok_button;
39 };
40 
41 enum
42 {
43 	ID_CANCEL = wxID_HIGHEST,
44 	ID_OK
45 };
46 
47 #endif // MMOPTIONWINDOWS_H_INCLUDED
48 
49 /**
50     This file is part of SpringLobby,
51     Copyright (C) 2007-2011
52 
53     SpringLobby is free software: you can redistribute it and/or modify
54     it under the terms of the GNU General Public License version 2 as published by
55     the Free Software Foundation.
56 
57     SpringLobby is distributed in the hope that it will be useful,
58     but WITHOUT ANY WARRANTY; without even the implied warranty of
59     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
60     GNU General Public License for more details.
61 
62     You should have received a copy of the GNU General Public License
63     along with SpringLobby.  If not, see <http://www.gnu.org/licenses/>.
64 **/
65 
66