diff --git a/source/tools/atlas/AtlasFrontends/ActorEditor.cpp b/source/tools/atlas/AtlasFrontends/ActorEditor.cpp index 9af3e808ee..af96bc81a3 100644 --- a/source/tools/atlas/AtlasFrontends/ActorEditor.cpp +++ b/source/tools/atlas/AtlasFrontends/ActorEditor.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2011 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -16,18 +16,12 @@ */ #ifdef _WIN32 - # define WIN32_LEAN_AND_MEAN # include - /* Don't use pragmas here to set the manifests, instead do this in premake.lua * since pragmas get ignored by the autobuilder * (see comments in lib\sysdep\os\win\manifest.cpp) */ - -# define ATLASDLLIMPEXP extern "C" __declspec(dllimport) -#else -# define ATLASDLLIMPEXP extern "C" #endif #include "AtlasUI/Misc/DLLInterface.h" diff --git a/source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp b/source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp index b9e6a74260..0862a5dfd9 100644 --- a/source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp +++ b/source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2023 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -17,16 +17,36 @@ #include "precompiled.h" -#include - #include "ActorEditor.h" -#include "ActorEditorListCtrl.h" -#include "AtlasObject/AtlasObject.h" -#include "AtlasObject/AtlasObjectText.h" -#include "General/Datafile.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasUI/ActorEditor/ActorEditorListCtrl.h" +#include "tools/atlas/AtlasUI/General/Datafile.h" -#include "wx/file.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class wxWindow; BEGIN_EVENT_TABLE(ActorEditor, AtlasWindow) EVT_MENU(ID_CreateEntity, ActorEditor::OnCreateEntity) diff --git a/source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.h b/source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.h index 79cc7bb9b9..1a9754878b 100644 --- a/source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.h +++ b/source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2021 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -17,7 +17,15 @@ #include "Windows/AtlasWindow.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" + +#include +#include + class ActorEditorListCtrl; +class wxCheckBox; +class wxComboBox; +class wxWindow; class ActorEditor : public AtlasWindow { diff --git a/source/tools/atlas/AtlasUI/ActorEditor/ActorEditorListCtrl.cpp b/source/tools/atlas/AtlasUI/ActorEditor/ActorEditorListCtrl.cpp index 0e376170fa..a2b4c8d2e0 100644 --- a/source/tools/atlas/AtlasUI/ActorEditor/ActorEditorListCtrl.cpp +++ b/source/tools/atlas/AtlasUI/ActorEditor/ActorEditorListCtrl.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2021 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,12 +19,23 @@ #include "ActorEditorListCtrl.h" -#include "AnimListEditor.h" -#include "TexListEditor.h" -#include "PropListEditor.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasUI/ActorEditor/AnimListEditor.h" +#include "tools/atlas/AtlasUI/ActorEditor/PropListEditor.h" +#include "tools/atlas/AtlasUI/ActorEditor/TexListEditor.h" +#include "tools/atlas/AtlasUI/CustomControls/DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/EditableListCtrl/FieldEditCtrl.h" -#include "AtlasObject/AtlasObject.h" -#include "EditableListCtrl/FieldEditCtrl.h" +#include +#include +#include +#include +#include +#include +#include +#include + +class wxWindow; ActorEditorListCtrl::ActorEditorListCtrl(wxWindow* parent) : DraggableListCtrl(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, diff --git a/source/tools/atlas/AtlasUI/ActorEditor/ActorEditorListCtrl.h b/source/tools/atlas/AtlasUI/ActorEditor/ActorEditorListCtrl.h index 748493796f..d554cb56c8 100644 --- a/source/tools/atlas/AtlasUI/ActorEditor/ActorEditorListCtrl.h +++ b/source/tools/atlas/AtlasUI/ActorEditor/ActorEditorListCtrl.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,9 +15,12 @@ * along with 0 A.D. If not, see . */ -#include "DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/DraggableListCtrl/DraggableListCtrl.h" -class ActorEditor; +#include + +class wxCommandEvent; +class wxWindow; class ActorEditorListCtrl : public DraggableListCtrl { diff --git a/source/tools/atlas/AtlasUI/ActorEditor/AnimListEditor.cpp b/source/tools/atlas/AtlasUI/ActorEditor/AnimListEditor.cpp index 36b8186746..e70718a013 100644 --- a/source/tools/atlas/AtlasUI/ActorEditor/AnimListEditor.cpp +++ b/source/tools/atlas/AtlasUI/ActorEditor/AnimListEditor.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,8 +19,23 @@ #include "AnimListEditor.h" -#include "EditableListCtrl/FieldEditCtrl.h" -#include "AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasUI/CustomControls/DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/EditableListCtrl/FieldEditCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class wxWindow; ////////////////////////////////////////////////////////////////////////// diff --git a/source/tools/atlas/AtlasUI/ActorEditor/AnimListEditor.h b/source/tools/atlas/AtlasUI/ActorEditor/AnimListEditor.h index d99b7a15de..0a58b663dc 100644 --- a/source/tools/atlas/AtlasUI/ActorEditor/AnimListEditor.h +++ b/source/tools/atlas/AtlasUI/ActorEditor/AnimListEditor.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,11 +15,12 @@ * along with 0 A.D. If not, see . */ -#include "Windows/AtlasDialog.h" - -#include "DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.h" class AnimListEditorListCtrl; +class wxCommandEvent; +class wxWindow; ////////////////////////////////////////////////////////////////////////// diff --git a/source/tools/atlas/AtlasUI/ActorEditor/PropListEditor.cpp b/source/tools/atlas/AtlasUI/ActorEditor/PropListEditor.cpp index 6f66096f4e..877c9c4763 100644 --- a/source/tools/atlas/AtlasUI/ActorEditor/PropListEditor.cpp +++ b/source/tools/atlas/AtlasUI/ActorEditor/PropListEditor.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,8 +19,23 @@ #include "PropListEditor.h" -#include "EditableListCtrl/FieldEditCtrl.h" -#include "AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasUI/CustomControls/DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/EditableListCtrl/FieldEditCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class wxWindow; ////////////////////////////////////////////////////////////////////////// diff --git a/source/tools/atlas/AtlasUI/ActorEditor/PropListEditor.h b/source/tools/atlas/AtlasUI/ActorEditor/PropListEditor.h index 8a7c20f937..725a219897 100644 --- a/source/tools/atlas/AtlasUI/ActorEditor/PropListEditor.h +++ b/source/tools/atlas/AtlasUI/ActorEditor/PropListEditor.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,11 +15,12 @@ * along with 0 A.D. If not, see . */ -#include "Windows/AtlasDialog.h" - -#include "DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.h" class PropListEditorListCtrl; +class wxCommandEvent; +class wxWindow; ////////////////////////////////////////////////////////////////////////// diff --git a/source/tools/atlas/AtlasUI/ActorEditor/TexListEditor.cpp b/source/tools/atlas/AtlasUI/ActorEditor/TexListEditor.cpp index 9ede9f1cc4..8a8ca58cc4 100644 --- a/source/tools/atlas/AtlasUI/ActorEditor/TexListEditor.cpp +++ b/source/tools/atlas/AtlasUI/ActorEditor/TexListEditor.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -17,10 +17,24 @@ #include "precompiled.h" -#include "TexListEditor.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasUI/ActorEditor/TexListEditor.h" +#include "tools/atlas/AtlasUI/CustomControls/DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/EditableListCtrl/FieldEditCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.h" -#include "EditableListCtrl/FieldEditCtrl.h" -#include "AtlasObject/AtlasObject.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class wxWindow; ////////////////////////////////////////////////////////////////////////// diff --git a/source/tools/atlas/AtlasUI/ActorEditor/TexListEditor.h b/source/tools/atlas/AtlasUI/ActorEditor/TexListEditor.h index 87b9f2d7a2..7fccb2d0b9 100644 --- a/source/tools/atlas/AtlasUI/ActorEditor/TexListEditor.h +++ b/source/tools/atlas/AtlasUI/ActorEditor/TexListEditor.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,11 +15,12 @@ * along with 0 A.D. If not, see . */ -#include "Windows/AtlasDialog.h" - -#include "DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/DraggableListCtrl/DraggableListCtrl.h" +#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.h" class TexListEditorListCtrl; +class wxCommandEvent; +class wxWindow; ////////////////////////////////////////////////////////////////////////// diff --git a/source/tools/atlas/AtlasUI/General/AtlasClipboard.cpp b/source/tools/atlas/AtlasUI/General/AtlasClipboard.cpp index 00459891e3..22b163a5ce 100644 --- a/source/tools/atlas/AtlasUI/General/AtlasClipboard.cpp +++ b/source/tools/atlas/AtlasUI/General/AtlasClipboard.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,6 +19,8 @@ #include "AtlasClipboard.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" + // TODO: Do this properly, using the native clipboard. (That probably // requires AtObj to be serialisable, though... Maybe just use XML?) diff --git a/source/tools/atlas/AtlasUI/General/AtlasClipboard.h b/source/tools/atlas/AtlasUI/General/AtlasClipboard.h index 66f855cba8..58aa08758e 100644 --- a/source/tools/atlas/AtlasUI/General/AtlasClipboard.h +++ b/source/tools/atlas/AtlasUI/General/AtlasClipboard.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,7 +15,7 @@ * along with 0 A.D. If not, see . */ -#include "AtlasObject/AtlasObject.h" +class AtObj; class AtlasClipboard { diff --git a/source/tools/atlas/AtlasUI/General/AtlasWindowCommand.cpp b/source/tools/atlas/AtlasUI/General/AtlasWindowCommand.cpp index 6850cb4250..89892aef0f 100644 --- a/source/tools/atlas/AtlasUI/General/AtlasWindowCommand.cpp +++ b/source/tools/atlas/AtlasUI/General/AtlasWindowCommand.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,7 +19,13 @@ #include "AtlasWindowCommand.h" -#include "IAtlasSerialiser.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasUI/General/IAtlasSerialiser.h" + +#include +#include +#include +#include IMPLEMENT_ABSTRACT_CLASS(AtlasWindowCommand, wxCommand); diff --git a/source/tools/atlas/AtlasUI/General/AtlasWindowCommand.h b/source/tools/atlas/AtlasUI/General/AtlasWindowCommand.h index b0855dec14..f6b3eb4a3a 100644 --- a/source/tools/atlas/AtlasUI/General/AtlasWindowCommand.h +++ b/source/tools/atlas/AtlasUI/General/AtlasWindowCommand.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -18,9 +18,16 @@ #ifndef INCLUDED_ATLASWINDOWCOMMAND #define INCLUDED_ATLASWINDOWCOMMAND -#include "wx/cmdproc.h" -#include "AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" + +#include +#include +#include +#include +#include + class IAtlasSerialiser; +class wxClassInfo; class AtlasWindowCommand : public wxCommand { diff --git a/source/tools/atlas/AtlasUI/General/AtlasWindowCommandProc.cpp b/source/tools/atlas/AtlasUI/General/AtlasWindowCommandProc.cpp index 1f070cc419..00c64232d4 100644 --- a/source/tools/atlas/AtlasUI/General/AtlasWindowCommandProc.cpp +++ b/source/tools/atlas/AtlasUI/General/AtlasWindowCommandProc.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,9 +19,16 @@ #include "AtlasWindowCommandProc.h" -#include "AtlasWindowCommand.h" -#include "Windows/AtlasWindow.h" -#include "Windows/AtlasDialog.h" +#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.h" +#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.h" +#include "tools/atlas/AtlasUI/General/AtlasWindowCommand.h" + +#include +#include +#include +#include +#include +#include AtlasWindowCommandProc* AtlasWindowCommandProc::GetFromParentFrame(wxWindow* object) { diff --git a/source/tools/atlas/AtlasUI/General/Datafile.cpp b/source/tools/atlas/AtlasUI/General/Datafile.cpp index c09bc97dab..1d4f568c0e 100644 --- a/source/tools/atlas/AtlasUI/General/Datafile.cpp +++ b/source/tools/atlas/AtlasUI/General/Datafile.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,9 +19,17 @@ #include "Datafile.h" -#include "wx/file.h" -#include "wx/filename.h" -#include "wx/dir.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include static wxString g_DataDir; diff --git a/source/tools/atlas/AtlasUI/General/Datafile.h b/source/tools/atlas/AtlasUI/General/Datafile.h index f4ca51025d..8687841971 100644 --- a/source/tools/atlas/AtlasUI/General/Datafile.h +++ b/source/tools/atlas/AtlasUI/General/Datafile.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,7 +15,12 @@ * along with 0 A.D. If not, see . */ -#include "AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" + +#include + +class wxArrayString; +class wxString; namespace Datafile { diff --git a/source/tools/atlas/AtlasUI/General/Observable.cpp b/source/tools/atlas/AtlasUI/General/Observable.cpp index 0aa50020fa..77bb312438 100644 --- a/source/tools/atlas/AtlasUI/General/Observable.cpp +++ b/source/tools/atlas/AtlasUI/General/Observable.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,6 +19,8 @@ #include "Observable.h" +#include + void ObservableScopedConnections::Add(const ObservableConnection& conn) { // Clean up any disconnected connections that might be left in here diff --git a/source/tools/atlas/AtlasUI/General/Observable.h b/source/tools/atlas/AtlasUI/General/Observable.h index 7f0ae95a3d..8ae2b9f2f5 100644 --- a/source/tools/atlas/AtlasUI/General/Observable.h +++ b/source/tools/atlas/AtlasUI/General/Observable.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2014 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -40,6 +40,10 @@ variable_to_be_watched.NotifyObservers(); */ #include +#include +#include +#include + typedef boost::signals2::connection ObservableConnection; typedef boost::signals2::scoped_connection ObservableScopedConnection; diff --git a/source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp b/source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp index cf0f07cf25..6bafc34c3b 100644 --- a/source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp +++ b/source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2020 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,23 +19,35 @@ #include "DLLInterface.h" -#include "General/AtlasEventLoop.h" +#include "tools/atlas/AtlasUI/ActorEditor/ActorEditor.h" +#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.h" +#include "tools/atlas/AtlasUI/General/Datafile.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h" +#include "tools/atlas/GameInterface/MessagePasser.h" +#include "tools/atlas/GameInterface/SharedMemory.h" -#include "General/Datafile.h" - -#include "ActorEditor/ActorEditor.h" -#include "ScenarioEditor/ScenarioEditor.h" - -#include "GameInterface/MessagePasser.h" - -#include "wx/config.h" -#include "wx/debugrpt.h" -#include "wx/file.h" - -// wx and libxml both want to define ATTRIBUTE_PRINTF (with similar -// meanings), so undef it to avoid a warning -#undef ATTRIBUTE_PRINTF -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifndef LIBXML_THREAD_ENABLED #error libxml2 must have threading support enabled diff --git a/source/tools/atlas/AtlasUI/Misc/DLLInterface.h b/source/tools/atlas/AtlasUI/Misc/DLLInterface.h index 86e0f5b64e..a585aa08a2 100644 --- a/source/tools/atlas/AtlasUI/Misc/DLLInterface.h +++ b/source/tools/atlas/AtlasUI/Misc/DLLInterface.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2017 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -18,10 +18,18 @@ #ifndef DLLINTERFACE_INCLUDED #define DLLINTERFACE_INCLUDED -#include +#include namespace AtlasMessage { class MessagePasser; } +#ifdef _WIN32 +# define ATLASDLLIMPEXP extern "C" __declspec(dllexport) +#elif defined(__GNUC__) +# define ATLASDLLIMPEXP extern "C" __attribute__ ((visibility ("default"))) +#else +# define ATLASDLLIMPEXP extern "C" +#endif + ATLASDLLIMPEXP void Atlas_SetMessagePasser(AtlasMessage::MessagePasser*); ATLASDLLIMPEXP void Atlas_SetDataDirectory(const wchar_t* path); ATLASDLLIMPEXP void Atlas_StartWindow(const wchar_t* type); diff --git a/source/tools/atlas/AtlasUI/Misc/KeyMap.cpp b/source/tools/atlas/AtlasUI/Misc/KeyMap.cpp index d69f9a786b..33225c8564 100644 --- a/source/tools/atlas/AtlasUI/Misc/KeyMap.cpp +++ b/source/tools/atlas/AtlasUI/Misc/KeyMap.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2020 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,8 +19,8 @@ #include "KeyMap.h" -#include "SDL_version.h" -#include "SDL_keycode.h" +#include +#include int GetSDLKeyFromWxKeyCode(int wxkey) { diff --git a/source/tools/atlas/AtlasUI/Misc/precompiled.h b/source/tools/atlas/AtlasUI/Misc/precompiled.h index a9db464807..8371cc46c6 100644 --- a/source/tools/atlas/AtlasUI/Misc/precompiled.h +++ b/source/tools/atlas/AtlasUI/Misc/precompiled.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2019 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -108,14 +108,6 @@ #endif // HAVE_PCH -#ifdef _WIN32 -# define ATLASDLLIMPEXP extern "C" __declspec(dllexport) -#elif defined(__GNUC__) -# define ATLASDLLIMPEXP extern "C" __attribute__ ((visibility ("default"))) -#else -# define ATLASDLLIMPEXP extern "C" -#endif - // wxWidgets 3.0 or later required #if !wxCHECK_VERSION(3, 0, 0) # error You are using an old wxWidgets release. At least wxWidgets >= 3.0.0 is required. diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp index 4714b2b9f0..fe6c966de2 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2024 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,6 +19,8 @@ #include "ScenarioEditor.h" +#include "tools/atlas/AtlasUI/Misc/DLLInterface.h" + #include "wx/busyinfo.h" #include "wx/clipbrd.h" #include "wx/config.h" diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Cinema/Cinema.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Cinema/Cinema.cpp index 39abd807bf..049017ff15 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Cinema/Cinema.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Cinema/Cinema.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2017 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,9 +19,27 @@ #include "Cinema.h" -#include "GameInterface/Messages.h" -#include "ScenarioEditor/ScenarioEditor.h" -#include "CustomControls/ColorDialog/ColorDialog.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Tools.h" +#include "tools/atlas/GameInterface/Messages.h" +#include "tools/atlas/GameInterface/Shareable.h" +#include "tools/atlas/GameInterface/SharedTypes.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include using AtlasMessage::Shareable; diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Cinema/Cinema.h b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Cinema/Cinema.h index d4d9e16d75..acdffcfc20 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Cinema/Cinema.h +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Cinema/Cinema.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2017 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,7 +15,17 @@ * along with 0 A.D. If not, see . */ -#include "../Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" + +#include +#include + +class ScenarioEditor; +class wxCheckBox; +class wxListBox; +class wxScrolledWindow; +class wxTextCtrl; +class wxWindow; class CinemaSidebar : public Sidebar { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.cpp index 611613e876..fecf54c559 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,6 +19,11 @@ #include "Sidebar.h" +#include +#include +#include +#include + Sidebar::Sidebar(ScenarioEditor& scenarioEditor, wxWindow* sidebarContainer, wxWindow* WXUNUSED(bottomBarContainer)) : wxPanel(sidebarContainer), m_ScenarioEditor(scenarioEditor), m_BottomBar(NULL), m_AlreadyDisplayed(false) { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h index 3aa36310d1..cda844c8b0 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2021 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -18,7 +18,11 @@ #ifndef INCLUDED_SIDEBAR #define INCLUDED_SIDEBAR +#include + class ScenarioEditor; +class wxSizer; +class wxWindow; class Sidebar : public wxPanel { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp index 2cc265230d..1f53e21fb1 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2022 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -18,12 +18,38 @@ #include "precompiled.h" #include "Environment.h" -#include "LightControl.h" -#include "GameInterface/Messages.h" -#include "ScenarioEditor/ScenarioEditor.h" -#include "General/Observable.h" -#include "CustomControls/ColorDialog/ColorDialog.h" +#include "tools/atlas/AtlasUI/CustomControls/ColorDialog/ColorDialog.h" +#include "tools/atlas/AtlasUI/General/Observable.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/LightControl.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Tools.h" +#include "tools/atlas/GameInterface/Messages.h" +#include "tools/atlas/GameInterface/Shareable.h" +#include "tools/atlas/GameInterface/SharedTypes.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class wxWindow; using AtlasMessage::Shareable; diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.h b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.h index d2a2afe80c..fc7f5c0ce3 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.h +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2019 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,11 +15,15 @@ * along with 0 A.D. If not, see . */ -#include "../Common/Sidebar.h" +#include "tools/atlas/AtlasUI/General/Observable.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" -#include "General/Observable.h" +#include +#include +class ScenarioEditor; class VariableListBox; +class wxWindow; class EnvironmentSidebar : public Sidebar { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/LightControl.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/LightControl.cpp index 4d40a09a99..e6addd3522 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/LightControl.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/LightControl.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -17,10 +17,27 @@ #include "precompiled.h" -#include - #include "LightControl.h" +#include "tools/atlas/AtlasUI/General/Observable.h" +#include "tools/atlas/GameInterface/Messages.h" +#include "tools/atlas/GameInterface/Shareable.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class wxWindow; + using AtlasMessage::Shareable; class LightSphere : public wxControl diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/LightControl.h b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/LightControl.h index 980484c90a..050658bc02 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/LightControl.h +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/LightControl.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -18,11 +18,14 @@ #ifndef INCLUDED_LIGHTCONTROL #define INCLUDED_LIGHTCONTROL -#include "GameInterface/Messages.h" -#include "GameInterface/Shareable.h" -#include "General/Observable.h" +#include "tools/atlas/AtlasUI/General/Observable.h" + +#include class LightSphere; +class wxSize; +class wxWindow; +namespace AtlasMessage { struct sEnvironmentSettings; } class LightControl : public wxPanel { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp index bd95d30898..2c3c7090d3 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.cpp @@ -19,20 +19,50 @@ #include "Map.h" -#include "AtlasObject/AtlasObject.h" -#include "AtlasObject/JSONSpiritInclude.h" -#include "GameInterface/Messages.h" -#include "MapResizeDialog/MapResizeDialog.h" -#include "ScenarioEditor/ScenarioEditor.h" -#include "ScenarioEditor/Tools/Common/Tools.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasUI/CustomControls/MapResizeDialog/MapResizeDialog.h" +#include "tools/atlas/AtlasUI/General/AtlasWindowCommandProc.h" +#include "tools/atlas/AtlasUI/General/Observable.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Tools.h" +#include "tools/atlas/GameInterface/MessagePasser.h" +#include "tools/atlas/GameInterface/Messages.h" +#include "tools/atlas/GameInterface/Shareable.h" #include +#include #include +#include +#include #include +#include #include -#include -#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #define CREATE_CHECKBOX(window, parentSizer, name, description, ID) \ parentSizer->Add(new wxStaticText(window, wxID_ANY, _(name)), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); \ diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.h b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.h index 885ccbaea2..3ac28da6aa 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.h +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2024 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,11 +15,15 @@ * along with 0 A.D. If not, see . */ -#include "../Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" -#include +#include +#include class MapSettingsControl; +class ScenarioEditor; +class wxCollapsiblePaneEvent; +class wxWindow; class MapSidebar : public Sidebar { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/Object.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/Object.cpp index 5a198dc2fc..e27dbd480f 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/Object.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/Object.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2021 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,17 +19,49 @@ #include "Object.h" -#include "Buttons/ToolButton.h" -#include "General/Datafile.h" -#include "ScenarioEditor/ScenarioEditor.h" -#include "ScenarioEditor/Tools/Common/ObjectSettings.h" -#include "ScenarioEditor/Tools/Common/MiscState.h" -#include "VariationControl.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasUI/General/Datafile.h" +#include "tools/atlas/AtlasUI/General/Observable.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/VariationControl.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/MiscState.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/ObjectSettings.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Tools.h" +#include "tools/atlas/GameInterface/MessagePasser.h" +#include "tools/atlas/GameInterface/Messages.h" +#include "tools/atlas/GameInterface/Shareable.h" +#include "tools/atlas/GameInterface/SharedTypes.h" -#include "GameInterface/Messages.h" - -#include "wx/busyinfo.h" -#include "wx/wxcrt.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include enum { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/Object.h b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/Object.h index c3e5b2af8c..a54609a4ec 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/Object.h +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/Object.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2020 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,11 +15,16 @@ * along with 0 A.D. If not, see . */ -#include "../Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" + +#include +#include class ITool; - +class ScenarioEditor; +class wxWindow; struct ObjectSidebarImpl; + class ObjectSidebar : public Sidebar { public: diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/VariationControl.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/VariationControl.cpp index bba86935cb..8329ad9772 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/VariationControl.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/VariationControl.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2011 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,7 +19,25 @@ #include "VariationControl.h" -#include "ScenarioEditor/Tools/Common/ObjectSettings.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/ObjectSettings.h" +#include "tools/atlas/AtlasUI/General/Observable.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class wxWindow; VariationControl::VariationControl(wxWindow* parent, Observable& objectSettings) : wxScrolledWindow(parent, -1), diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/VariationControl.h b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/VariationControl.h index 1088f3788f..c162021456 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/VariationControl.h +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/VariationControl.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -18,9 +18,16 @@ #ifndef INCLUDED_VARIATIONCONTROL #define INCLUDED_VARIATIONCONTROL -#include "General/Observable.h" +#include "tools/atlas/AtlasUI/General/Observable.h" + +#include +#include class ObjectSettings; +class wxComboBox; +class wxCommandEvent; +class wxSizer; +class wxWindow; class VariationControl : public wxScrolledWindow { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.cpp index a41a4432e3..75c622a085 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2022 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,11 +19,46 @@ #include "Player.h" -#include "AtlasObject/AtlasObject.h" -#include "CustomControls/ColorDialog/ColorDialog.h" -#include "ScenarioEditor/ScenarioEditor.h" +#include "tools/atlas/AtlasObject/AtlasObject.h" +#include "tools/atlas/AtlasUI/CustomControls/ColorDialog/ColorDialog.h" +#include "tools/atlas/AtlasUI/General/Observable.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Tools.h" +#include "tools/atlas/GameInterface/MessagePasser.h" +#include "tools/atlas/GameInterface/Messages.h" +#include "tools/atlas/GameInterface/Shareable.h" +#include "tools/atlas/GameInterface/SharedTypes.h" -#include "wx/choicebk.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include enum { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.h b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.h index f1d0fdaf32..5c7c0afe85 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.h +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2011 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,17 +15,26 @@ * along with 0 A.D. If not, see . */ -#include "../Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" +#include "tools/atlas/GameInterface/SharedMemory.h" -#include "GameInterface/Messages.h" - -#include "wx/collpane.h" -#include "wx/spinctrl.h" - -using namespace AtlasMessage; +#include +#include +#include +#include +#include class PlayerNotebookPage; class PlayerSettingsControl; +class ScenarioEditor; +class wxButton; +class wxChoice; +class wxCollapsiblePaneEvent; +class wxSpinCtrl; +class wxTextCtrl; +class wxWindow; + +using namespace AtlasMessage; class PlayerSidebar : public Sidebar { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp index bc0499aab9..2c8337c522 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2021 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -19,21 +19,52 @@ #include "Terrain.h" -#include "Buttons/ToolButton.h" -#include "ScenarioEditor/ScenarioEditor.h" -#include "ScenarioEditor/Tools/Common/Brushes.h" -#include "ScenarioEditor/Tools/Common/MiscState.h" - -#include "GameInterface/Messages.h" +#include "tools/atlas/AtlasUI/CustomControls/Buttons/ToolButton.h" +#include "tools/atlas/AtlasUI/General/Observable.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Brushes.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/MiscState.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Tools.h" +#include "tools/atlas/GameInterface/MessagePasser.h" +#include "tools/atlas/GameInterface/Messages.h" +#include "tools/atlas/GameInterface/Shareable.h" +#include #include +#include +#include +#include +#include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace { diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.h b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.h index cec418eb3e..5b8254cfce 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.h +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2021 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -15,9 +15,15 @@ * along with 0 A.D. If not, see . */ -#include "../Common/Sidebar.h" +#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h" +#include +#include + +class ScenarioEditor; class TexturePreviewPanel; +class wxChoice; +class wxWindow; class TerrainSidebar : public Sidebar {