1 #ifndef SPRINGLOBBY_HEADERGUARD_MAINSINGLEPLAYERTAB_H
2 #define SPRINGLOBBY_HEADERGUARD_MAINSINGLEPLAYERTAB_H
3 
4 #include <wx/scrolwin.h>
5 #include "battleroommmoptionstab.h"
6 
7 class Ui;
8 class SLNotebook;
9 class wxImageList;
10 class wxBoxSizer;
11 class SinglePlayerTab;
12 class BattleOptionsTab;
13 
14 class MainSinglePlayerTab : public wxScrolledWindow
15 {
16   public:
17     MainSinglePlayerTab( wxWindow* parent );
18     ~MainSinglePlayerTab();
19 
20     void UpdateMinimap();
21     void OnUnitSyncReloaded();
22 	void UpdateTag( const wxString& Tag );
23 
24     void ReloadRestrictions();
25     void ReloadMapOptContrls();
26     void ReloadModOptContrls();
27     void ReloadPresetList();
28 
29     SinglePlayerTab& GetSinglePlayerTab();
30     BattleOptionsTab& GetOptionsTab();
31     BattleroomMMOptionsTab<SinglePlayerBattle>& GetMMOptionsTab();
32 
33     void LoadPerspective( const wxString& perspective_name = wxEmptyString );
34     void SavePerspective( const wxString& perspective_name = wxEmptyString );
35 
36   protected:
37 
38     wxBoxSizer* m_main_sizer;
39     wxImageList* m_imagelist;
40     SLNotebook* m_tabs;
41 
42     SinglePlayerTab* m_sp_tab;
43     BattleOptionsTab* m_opts_tab;
44     BattleroomMMOptionsTab<SinglePlayerBattle>* m_mm_opts_tab;
45 
46 };
47 
48 
49 #endif // SPRINGLOBBY_HEADERGUARD_MAINSINGLEPLAYERTAB_H
50 
51 /**
52     This file is part of SpringLobby,
53     Copyright (C) 2007-2011
54 
55     SpringLobby is free software: you can redistribute it and/or modify
56     it under the terms of the GNU General Public License version 2 as published by
57     the Free Software Foundation.
58 
59     SpringLobby is distributed in the hope that it will be useful,
60     but WITHOUT ANY WARRANTY; without even the implied warranty of
61     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
62     GNU General Public License for more details.
63 
64     You should have received a copy of the GNU General Public License
65     along with SpringLobby.  If not, see <http://www.gnu.org/licenses/>.
66 **/
67 
68