2026-06-03 10:37:01 -07:00
|
|
|
/* Copyright (C) 2026 Wildfire Games.
|
2023-12-02 16:30:12 -08:00
|
|
|
* This file is part of 0 A.D.
|
2009-06-20 09:13:29 -07:00
|
|
|
*
|
2023-12-02 16:30:12 -08:00
|
|
|
* 0 A.D. is free software: you can redistribute it and/or modify
|
2009-06-20 09:13:29 -07:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
2023-12-02 16:30:12 -08:00
|
|
|
* 0 A.D. is distributed in the hope that it will be useful,
|
2009-06-20 09:13:29 -07:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2023-12-02 16:30:12 -08:00
|
|
|
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
|
2009-06-20 09:13:29 -07:00
|
|
|
*/
|
|
|
|
|
|
2007-05-07 09:33:24 -07:00
|
|
|
#ifndef INCLUDED_SECTIONLAYOUT
|
|
|
|
|
#define INCLUDED_SECTIONLAYOUT
|
2006-06-11 00:03:59 -07:00
|
|
|
|
2006-11-11 20:02:36 -08:00
|
|
|
#include <map>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
2025-08-09 12:17:38 -07:00
|
|
|
class ScenarioEditor;
|
|
|
|
|
class SidebarBook;
|
|
|
|
|
class SnapSplitterWindow;
|
|
|
|
|
class wxString;
|
|
|
|
|
class wxWindow;
|
|
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
class SectionLayout
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
void SetWindow(wxWindow* window);
|
|
|
|
|
wxWindow* GetCanvasParent();
|
|
|
|
|
void SetCanvas(wxWindow*);
|
2007-06-05 11:16:55 -07:00
|
|
|
void Build(ScenarioEditor&);
|
2006-04-23 16:14:18 -07:00
|
|
|
|
2006-07-12 07:49:10 -07:00
|
|
|
void SelectPage(const wxString& classname);
|
|
|
|
|
|
2011-05-29 08:02:02 -07:00
|
|
|
void OnMapReload();
|
2021-12-30 08:24:07 -08:00
|
|
|
void OnShutdown();
|
2011-05-29 08:02:02 -07:00
|
|
|
|
2006-04-23 16:14:18 -07:00
|
|
|
private:
|
2006-07-12 07:49:10 -07:00
|
|
|
SidebarBook* m_SidebarBook;
|
2006-04-23 16:14:18 -07:00
|
|
|
wxWindow* m_Canvas;
|
|
|
|
|
SnapSplitterWindow* m_HorizSplitter;
|
|
|
|
|
SnapSplitterWindow* m_VertSplitter;
|
2006-07-12 07:49:10 -07:00
|
|
|
std::map<std::wstring, int> m_PageMappings;
|
2006-04-23 16:14:18 -07:00
|
|
|
};
|
2006-06-11 00:03:59 -07:00
|
|
|
|
2007-05-07 09:33:24 -07:00
|
|
|
#endif // INCLUDED_SECTIONLAYOUT
|