Cleanup Atlas section headers

Make not otherwise used functions private and use override as
appropriate.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2026-06-03 19:32:55 +02:00
parent 94f13073ce
commit e3afa15966
No known key found for this signature in database
5 changed files with 26 additions and 22 deletions

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2025 Wildfire Games.
/* Copyright (C) 2026 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -32,17 +32,18 @@ class CinemaSidebar : public Sidebar
public:
CinemaSidebar(ScenarioEditor& scenarioEditor, wxWindow* sidebarContainer, wxWindow* bottomBarContainer);
virtual void OnMapReload();
virtual void OnTogglePathsDrawing(wxCommandEvent& evt);
virtual void OnAddPath(wxCommandEvent& evt);
virtual void OnDeletePath(wxCommandEvent& evt);
void OnMapReload() override;
protected:
void OnFirstDisplay() override;
private:
void OnTogglePathsDrawing(wxCommandEvent& evt);
void OnAddPath(wxCommandEvent& evt);
void OnDeletePath(wxCommandEvent& evt);
void ReloadPathList();
protected:
virtual void OnFirstDisplay();
private:
wxScrolledWindow* scrolledWindow;
wxCheckBox* m_DrawPath;
wxListBox* m_PathList;

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2025 Wildfire Games.
/* Copyright (C) 2026 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -30,16 +30,18 @@ class EnvironmentSidebar : public Sidebar
public:
EnvironmentSidebar(ScenarioEditor& scenarioEditor, wxWindow* sidebarContainer, wxWindow* bottomBarContainer);
void OnPickWaterHeight(wxCommandEvent& evt);
virtual void OnMapReload();
virtual void RecomputeWaterData(wxCommandEvent& evt);
void OnMapReload() override;
void UpdateEnvironmentSettings();
protected:
virtual void OnFirstDisplay();
void OnFirstDisplay() override;
private:
void OnPickWaterHeight(wxCommandEvent& evt);
void RecomputeWaterData(wxCommandEvent& evt);
VariableListBox* m_PostEffectList;
VariableListBox* m_SkyList;
VariableListBox* m_WaterTypeList;

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2025 Wildfire Games.
/* Copyright (C) 2026 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -30,10 +30,10 @@ class MapSidebar : public Sidebar
public:
MapSidebar(ScenarioEditor& scenarioEditor, wxWindow* sidebarContainer, wxWindow* bottomBarContainer);
virtual void OnMapReload();
void OnMapReload() override;
protected:
virtual void OnFirstDisplay();
void OnFirstDisplay() override;
private:
MapSettingsControl* m_MapSettingsCtrl;

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2025 Wildfire Games.
/* Copyright (C) 2026 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -30,10 +30,11 @@ class ObjectSidebar : public Sidebar
public:
ObjectSidebar(ScenarioEditor& scenarioEditor, wxWindow* sidebarContainer, wxWindow* bottomBarContainer);
~ObjectSidebar();
void FilterObjects();
protected:
virtual void OnFirstDisplay();
void OnFirstDisplay() override;
private:
void OnToolChange(ITool* tool);

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2025 Wildfire Games.
/* Copyright (C) 2026 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -41,10 +41,10 @@ class PlayerSidebar : public Sidebar
public:
PlayerSidebar(ScenarioEditor& scenarioEditor, wxWindow* sidebarContainer, wxWindow* bottomBarContainer);
virtual void OnMapReload();
void OnMapReload() override;
protected:
virtual void OnFirstDisplay();
void OnFirstDisplay() override;
private:
PlayerSettingsControl* m_PlayerSettingsCtrl;