mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Fix some includes in atlas
Make include-what-you-use happy with some files in source/tools/atlas and fix what needs to be fixed. Update premake script to include missing deps and drop various extra paths for simplification. Don't always include wx/wx.h via precompiled.h in case PCH is disabled. Ref: #8086 Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
parent
7fde47e1f3
commit
e22c5bd05e
56 changed files with 485 additions and 245 deletions
|
|
@ -1306,14 +1306,15 @@ function setup_atlas_projects()
|
|||
setup_atlas_project("AtlasObject", "StaticLib",
|
||||
{ -- src
|
||||
".",
|
||||
"../../../third_party/jsonspirit"
|
||||
|
||||
},{ -- include
|
||||
"../../../third_party/jsonspirit"
|
||||
"../../../",
|
||||
},{ -- extern_libs
|
||||
"boost",
|
||||
"iconv",
|
||||
"libxml2"
|
||||
"libxml2",
|
||||
"sdl",
|
||||
"spidermonkey",
|
||||
"cxxtest",
|
||||
},{ -- extra_params
|
||||
no_pch = 1
|
||||
})
|
||||
|
|
@ -1367,10 +1368,6 @@ function setup_atlas_projects()
|
|||
setup_atlas_project("AtlasUI", "SharedLib", atlas_src,
|
||||
{ -- include
|
||||
"../../..",
|
||||
"..",
|
||||
"CustomControls",
|
||||
"Misc",
|
||||
"../../../third_party/jsonspirit"
|
||||
},
|
||||
atlas_extern_libs,
|
||||
{ -- extra_params
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@
|
|||
#include "lib/config2.h"
|
||||
#include "lib/external_libraries/libsdl_fwd.h"
|
||||
|
||||
# include "SDL.h"
|
||||
# include "SDL_thread.h"
|
||||
# include <SDL.h>
|
||||
# include <SDL_thread.h>
|
||||
|
||||
#if !SDL_VERSION_ATLEAST(2,0,2)
|
||||
#error You are using an old libsdl release. At least libsdl2 >= 2.0.2 is required.
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
// in static bswap routines. doesn't matter - modern compilers
|
||||
// will strip them if unused, and this is more convenient than
|
||||
// another header that toggles between wsdl and SDL_endian.h.
|
||||
# include "SDL_endian.h"
|
||||
# include <SDL_endian.h>
|
||||
|
||||
// complete definition of our forward-declared SDL_Event (see sdl_fwd.h)
|
||||
struct SDL_Event_
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2010 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
|
|
@ -27,6 +27,8 @@
|
|||
#ifndef INCLUDED_WIN
|
||||
#define INCLUDED_WIN
|
||||
|
||||
#include "lib/sysdep/os.h"
|
||||
|
||||
#if !OS_WIN
|
||||
#error "win.h: do not include if not compiling for Windows"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -26,17 +26,29 @@
|
|||
|
||||
#include "lib/self_test.h"
|
||||
|
||||
#include "lib/code_generation.h"
|
||||
#include "lib/debug.h"
|
||||
#include "lib/os_path.h"
|
||||
#include "lib/path.h"
|
||||
#include "lib/sysdep/compiler.h"
|
||||
#include "lib/sysdep/os.h"
|
||||
#include "lib/sysdep/sysdep.h"
|
||||
#include "lib/timer.h"
|
||||
#include "lib/utf8.h"
|
||||
#include "ps/Profiler2.h"
|
||||
#include "ps/TaskManager.h"
|
||||
#include "ps/ThreadUtil.h"
|
||||
#include "scriptinterface/FunctionWrapper.h"
|
||||
#include "scriptinterface/ScriptContext.h"
|
||||
#include "scriptinterface/ScriptEngine.h"
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
#include "scriptinterface/ScriptRequest.h"
|
||||
|
||||
#include <fstream>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
class LeakReporter : public CxxTest::GlobalFixture
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -30,8 +30,6 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
class wxString;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Mostly-private bits:
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2015 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
|
||||
|
|
@ -29,8 +29,8 @@
|
|||
#pragma warning(disable: 4512)
|
||||
#endif
|
||||
|
||||
# include "json_spirit_writer_template.h"
|
||||
# include "json_spirit_reader_template.h"
|
||||
# include "third_party/jsonspirit/json_spirit_writer_template.h"
|
||||
# include "third_party/jsonspirit/json_spirit_reader_template.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(default: 4100)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -17,7 +17,9 @@
|
|||
|
||||
#include "lib/self_test.h"
|
||||
|
||||
#include "../AtlasObject.h"
|
||||
#include "tools/atlas/AtlasObject/AtlasObject.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class TestAtlasObjectXML : public CxxTest::TestSuite
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "tools/atlas/AtlasObject/AtlasObject.h"
|
||||
#include "tools/atlas/AtlasUI/ActorEditor/ActorEditorListCtrl.h"
|
||||
#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.h"
|
||||
#include "tools/atlas/AtlasUI/General/Datafile.h"
|
||||
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
|
|
|
|||
|
|
@ -15,9 +15,8 @@
|
|||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "Windows/AtlasWindow.h"
|
||||
|
||||
#include "tools/atlas/AtlasObject/AtlasObject.h"
|
||||
#include "tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.h"
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <wx/debug.h>
|
||||
#include <wx/rtti.h>
|
||||
#include <wx/translation.h>
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
#include <wx/object.h>
|
||||
|
||||
class DraggableListCtrl;
|
||||
class wxClassInfo;
|
||||
|
||||
class DragCommand : public AtlasWindowCommand
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
#include "tools/atlas/AtlasUI/CustomControls/EditableListCtrl/EditableListCtrl.h"
|
||||
#include "tools/atlas/AtlasUI/General/AtlasWindowCommand.h"
|
||||
|
||||
#include <wx/rtti.h>
|
||||
#include <wx/translation.h>
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
#include <wx/filename.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/rtti.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/textctrl.h>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,11 @@
|
|||
|
||||
#ifdef __WXMSW__
|
||||
|
||||
#include "lib/sysdep/os/win/win.h"
|
||||
|
||||
#include <wx/intl.h>
|
||||
#include <wx/log.h>
|
||||
|
||||
HighResTimer::HighResTimer()
|
||||
{
|
||||
LARGE_INTEGER freq;
|
||||
|
|
|
|||
|
|
@ -23,11 +23,12 @@
|
|||
|
||||
#include "virtualdirtreectrl.h"
|
||||
|
||||
#include "wx/imaglist.h"
|
||||
#include <wx/bitmap.h>
|
||||
#include <wx/busyinfo.h>
|
||||
#include <wx/dir.h>
|
||||
#include <wx/filefn.h>
|
||||
#include <wx/filename.h>
|
||||
#include <wx/imaglist.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/translation.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -23,21 +23,21 @@
|
|||
#define INCLUDED_VIRTUALDIRTREECTRL
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <wx/arrstr.h>
|
||||
#include <wx/chartype.h>
|
||||
#include <wx/debug.h>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/dynarray.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/filename.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/toolbar.h>
|
||||
#include <wx/treebase.h>
|
||||
#include <wx/treectrl.h>
|
||||
#include <wx/validate.h>
|
||||
|
||||
class wxFileName;
|
||||
class wxPoint;
|
||||
class wxSize;
|
||||
class wxBitmap;
|
||||
class wxImageList;
|
||||
class wxWindow;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
#include <wx/accel.h>
|
||||
#include <wx/button.h>
|
||||
#include <wx/panel.h>
|
||||
#include <wx/rtti.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/statline.h>
|
||||
#include <wx/toolbar.h>
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@
|
|||
#include <wx/log.h>
|
||||
#include <wx/menu.h>
|
||||
#include <wx/menuitem.h>
|
||||
#include <wx/rtti.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/statbmp.h>
|
||||
#include <wx/stattext.h>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
#include <wx/cmdproc.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/rtti.h>
|
||||
#include <wx/translation.h>
|
||||
|
||||
IMPLEMENT_ABSTRACT_CLASS(AtlasWindowCommand, wxCommand);
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#ifndef INCLUDED_ATLASWINDOWCOMMANDPROC
|
||||
#define INCLUDED_ATLASWINDOWCOMMANDPROC
|
||||
|
||||
#include "wx/cmdproc.h"
|
||||
#include <wx/cmdproc.h>
|
||||
|
||||
class wxWindow;
|
||||
|
||||
|
|
|
|||
|
|
@ -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,7 +18,7 @@
|
|||
#ifndef INCLUDED_IATLASSERIALISER
|
||||
#define INCLUDED_IATLASSERIALISER
|
||||
|
||||
#include "AtlasObject/AtlasObject.h"
|
||||
#include "tools/atlas/AtlasObject/AtlasObject.h"
|
||||
|
||||
// An interface for GUI components to transfer their contents to/from AtObjs.
|
||||
// (Maybe "serialise" isn't quite correct, since AtObjs aren't serial, but
|
||||
|
|
|
|||
|
|
@ -45,33 +45,33 @@
|
|||
#endif
|
||||
|
||||
// Include useful wx headers
|
||||
#include "wx/wxprec.h"
|
||||
#include <wx/wxprec.h>
|
||||
|
||||
#include "wx/artprov.h"
|
||||
#include "wx/cmdproc.h"
|
||||
#include "wx/colordlg.h"
|
||||
#include "wx/config.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/dir.h"
|
||||
#include "wx/dnd.h"
|
||||
#include "wx/docview.h"
|
||||
#include "wx/file.h"
|
||||
#include "wx/filename.h"
|
||||
#include "wx/filesys.h"
|
||||
#include "wx/glcanvas.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/listctrl.h"
|
||||
#include "wx/mstream.h"
|
||||
#include "wx/notebook.h"
|
||||
#include "wx/progdlg.h"
|
||||
#include "wx/regex.h"
|
||||
#include "wx/sound.h"
|
||||
#include "wx/spinctrl.h"
|
||||
#include "wx/splitter.h"
|
||||
#include "wx/tooltip.h"
|
||||
#include "wx/treectrl.h"
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/zstream.h"
|
||||
#include <wx/artprov.h>
|
||||
#include <wx/cmdproc.h>
|
||||
#include <wx/colordlg.h>
|
||||
#include <wx/config.h>
|
||||
#include <wx/dialog.h>
|
||||
#include <wx/dir.h>
|
||||
#include <wx/dnd.h>
|
||||
#include <wx/docview.h>
|
||||
#include <wx/file.h>
|
||||
#include <wx/filename.h>
|
||||
#include <wx/filesys.h>
|
||||
#include <wx/glcanvas.h>
|
||||
#include <wx/image.h>
|
||||
#include <wx/listctrl.h>
|
||||
#include <wx/mstream.h>
|
||||
#include <wx/notebook.h>
|
||||
#include <wx/progdlg.h>
|
||||
#include <wx/regex.h>
|
||||
#include <wx/sound.h>
|
||||
#include <wx/spinctrl.h>
|
||||
#include <wx/splitter.h>
|
||||
#include <wx/tooltip.h>
|
||||
#include <wx/treectrl.h>
|
||||
#include <wx/wfstream.h>
|
||||
#include <wx/zstream.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic pop
|
||||
|
|
@ -101,13 +101,10 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#else // HAVE_PCH
|
||||
|
||||
// If no PCH, just include the most common headers anyway
|
||||
# include "wx/wx.h"
|
||||
|
||||
#endif // HAVE_PCH
|
||||
|
||||
#include <wx/platform.h>
|
||||
#include <wx/version.h>
|
||||
// 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.
|
||||
|
|
|
|||
|
|
@ -19,37 +19,61 @@
|
|||
|
||||
#include "ScenarioEditor.h"
|
||||
|
||||
#include "tools/atlas/AtlasObject/AtlasObject.h"
|
||||
#include "tools/atlas/AtlasUI/CustomControls/Buttons/ToolButton.h"
|
||||
#include "tools/atlas/AtlasUI/CustomControls/Canvas/Canvas.h"
|
||||
#include "tools/atlas/AtlasUI/CustomControls/FileHistory/FileHistory.h"
|
||||
#include "tools/atlas/AtlasUI/CustomControls/HighResTimer/HighResTimer.h"
|
||||
#include "tools/atlas/AtlasUI/CustomControls/MapDialog/MapDialog.h"
|
||||
#include "tools/atlas/AtlasUI/General/AtlasWindowCommandProc.h"
|
||||
#include "tools/atlas/AtlasUI/General/Datafile.h"
|
||||
#include "tools/atlas/AtlasUI/General/Observable.h"
|
||||
#include "tools/atlas/AtlasUI/Misc/DLLInterface.h"
|
||||
#include "tools/atlas/AtlasUI/Misc/KeyMap.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/SectionLayout.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 "wx/busyinfo.h"
|
||||
#include "wx/clipbrd.h"
|
||||
#include "wx/config.h"
|
||||
#include "wx/dir.h"
|
||||
#include "wx/evtloop.h"
|
||||
#include "wx/ffile.h"
|
||||
#include "wx/filename.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/sstream.h"
|
||||
#include "wx/sysopt.h"
|
||||
#include "wx/tooltip.h"
|
||||
#include "wx/xml/xml.h"
|
||||
#include <cstddef>
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <wx/busyinfo.h>
|
||||
#include <wx/chartype.h>
|
||||
#include <wx/clipbrd.h>
|
||||
#include <wx/config.h>
|
||||
#include <wx/dataobj.h>
|
||||
#include <wx/datetime.h>
|
||||
#include <wx/debug.h>
|
||||
#include <wx/ffile.h>
|
||||
#include <wx/filedlg.h>
|
||||
#include <wx/filefn.h>
|
||||
#include <wx/filename.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/glcanvas.h>
|
||||
#include <wx/imagbmp.h>
|
||||
#include <wx/image.h>
|
||||
#include <wx/imagpng.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/menu.h>
|
||||
#include <wx/msgdlg.h>
|
||||
#include <wx/sstream.h>
|
||||
#include <wx/sysopt.h>
|
||||
#include <wx/textdlg.h>
|
||||
#include <wx/toolbar.h>
|
||||
#include <wx/tooltip.h>
|
||||
#include <wx/toplevel.h>
|
||||
#include <wx/translation.h>
|
||||
#include <wx/utils.h>
|
||||
#include <wx/xml/xml.h>
|
||||
|
||||
#include "General/AtlasEventLoop.h"
|
||||
#include "General/Datafile.h"
|
||||
|
||||
#include "CustomControls/Buttons/ToolButton.h"
|
||||
#include "CustomControls/Canvas/Canvas.h"
|
||||
#include "CustomControls/HighResTimer/HighResTimer.h"
|
||||
#include "CustomControls/MapDialog/MapDialog.h"
|
||||
|
||||
#include "GameInterface/MessagePasser.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
|
||||
#include "Misc/KeyMap.h"
|
||||
|
||||
#include "Tools/Common/Tools.h"
|
||||
#include "Tools/Common/Brushes.h"
|
||||
#include "Tools/Common/MiscState.h"
|
||||
class wxInputStream;
|
||||
class wxWindow;
|
||||
|
||||
static HighResTimer g_Timer;
|
||||
|
||||
|
|
|
|||
|
|
@ -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,16 +18,25 @@
|
|||
#ifndef INCLUDED_SCENARIOEDITOR
|
||||
#define INCLUDED_SCENARIOEDITOR
|
||||
|
||||
#include "wx/toolbar.h"
|
||||
|
||||
#include "General/AtlasWindowCommandProc.h"
|
||||
#include "General/Observable.h"
|
||||
#include "Tools/Common/ObjectSettings.h"
|
||||
#include "Tools/Common/Tools.h"
|
||||
#include "CustomControls/FileHistory/FileHistory.h"
|
||||
#include "SectionLayout.h"
|
||||
#include "tools/atlas/AtlasObject/AtlasObject.h"
|
||||
#include "tools/atlas/AtlasUI/CustomControls/FileHistory/FileHistory.h"
|
||||
#include "tools/atlas/AtlasUI/General/Observable.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/SectionLayout.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 <map>
|
||||
#include <vector>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/frame.h>
|
||||
#include <wx/icon.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/timer.h>
|
||||
|
||||
class AtlasWindowCommandProc;
|
||||
class wxWindow;
|
||||
|
||||
class ScenarioEditor : public wxFrame
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,18 +19,39 @@
|
|||
|
||||
#include "SectionLayout.h"
|
||||
|
||||
#include "CustomControls/SnapSplitterWindow/SnapSplitterWindow.h"
|
||||
#include "General/Datafile.h"
|
||||
#include "ScenarioEditor.h"
|
||||
#include "Sections/Cinema/Cinema.h"
|
||||
#include "Sections/Environment/Environment.h"
|
||||
#include "Sections/Map/Map.h"
|
||||
#include "Sections/Object/Object.h"
|
||||
#include "Sections/Player/Player.h"
|
||||
#include "Sections/Terrain/Terrain.h"
|
||||
#include "tools/atlas/AtlasUI/CustomControls/SnapSplitterWindow/SnapSplitterWindow.h"
|
||||
#include "tools/atlas/AtlasUI/General/Datafile.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Cinema/Cinema.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Common/Sidebar.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Map/Map.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/Object.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <wx/bitmap.h>
|
||||
#include <wx/bmpbndl.h>
|
||||
#include <wx/bmpbuttn.h>
|
||||
#include <wx/chartype.h>
|
||||
#include <wx/colour.h>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/filename.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/image.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/panel.h>
|
||||
#include <wx/settings.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/splitter.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/toolbar.h>
|
||||
#include <wx/translation.h>
|
||||
#include <wx/wfstream.h>
|
||||
#include <wx/window.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
|
||||
|
|
@ -21,6 +21,12 @@
|
|||
#include <map>
|
||||
#include <string>
|
||||
|
||||
class ScenarioEditor;
|
||||
class SidebarBook;
|
||||
class SnapSplitterWindow;
|
||||
class wxString;
|
||||
class wxWindow;
|
||||
|
||||
// Some platform dependent sizes
|
||||
#if defined(__WXGTK__)
|
||||
#define SIDEBAR_SIZE 285
|
||||
|
|
@ -33,11 +39,6 @@
|
|||
#define BOTTOMBAR_SIZE 180
|
||||
#endif
|
||||
|
||||
class ScenarioEditor;
|
||||
class SnapSplitterWindow;
|
||||
class SidebarBook;
|
||||
class wxWindow;
|
||||
|
||||
class SectionLayout
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@
|
|||
#include <wx/listbox.h>
|
||||
#include <wx/object.h>
|
||||
#include <wx/panel.h>
|
||||
#include <wx/rtti.h>
|
||||
#include <wx/scrolwin.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/stattext.h>
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
#include <vector>
|
||||
#include <wx/arrstr.h>
|
||||
#include <wx/bitmap.h>
|
||||
#include <wx/bmpbuttn.h>
|
||||
#include <wx/bookctrl.h>
|
||||
#include <wx/busyinfo.h>
|
||||
#include <wx/button.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
|
||||
|
|
@ -17,12 +17,23 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "Common/MiscState.h"
|
||||
#include "Common/ObjectSettings.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "tools/atlas/AtlasUI/General/Observable.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.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/SharedTypes.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/mousestate.h>
|
||||
#include <wx/object.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -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,18 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "tools/atlas/AtlasUI/General/AtlasWindowCommandProc.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Brushes.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/SharedTypes.h"
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/object.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2015 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,24 @@
|
|||
|
||||
#include "Brushes.h"
|
||||
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "tools/atlas/GameInterface/MessagePasser.h"
|
||||
#include "tools/atlas/GameInterface/Messages.h"
|
||||
|
||||
#include "wx/spinctrl.h"
|
||||
#include <cmath>
|
||||
#include <cstddef>
|
||||
#include <wx/arrstr.h>
|
||||
#include <wx/chartype.h>
|
||||
#include <wx/debug.h>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/radiobox.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/spinbutt.h>
|
||||
#include <wx/spinctrl.h>
|
||||
#include <wx/stattext.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/toolbar.h>
|
||||
#include <wx/translation.h>
|
||||
|
||||
Brush g_Brush_Elevation; // shared between several elevation-related tools; other tools have their own brushes
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2015 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,11 @@
|
|||
#ifndef INCLUDED_BRUSHES
|
||||
#define INCLUDED_BRUSHES
|
||||
|
||||
class BrushShapeCtrl;
|
||||
class BrushSizeCtrl;
|
||||
class BrushStrengthCtrl;
|
||||
|
||||
#include <vector>
|
||||
|
||||
class wxSizer;
|
||||
class wxWindow;
|
||||
|
||||
class Brush
|
||||
{
|
||||
friend class BrushShapeCtrl;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012 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,10 @@
|
|||
|
||||
#include "MiscState.h"
|
||||
|
||||
#include "tools/atlas/AtlasUI/General/Observable.h"
|
||||
|
||||
#include <wx/string.h>
|
||||
|
||||
Observable<wxString> g_SelectedTexture;
|
||||
|
||||
Observable<std::vector<AtlasMessage::ObjectID> > g_SelectedObjects;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012 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,10 @@
|
|||
#ifndef INCLUDED_MISCSTATE
|
||||
#define INCLUDED_MISCSTATE
|
||||
|
||||
#include "General/Observable.h"
|
||||
#include <vector>
|
||||
|
||||
class wxString;
|
||||
template <typename T> class Observable;
|
||||
|
||||
namespace AtlasMessage
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,8 +19,16 @@
|
|||
|
||||
#include "ObjectSettings.h"
|
||||
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "tools/atlas/AtlasUI/General/Observable.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.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 <cstddef>
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
ObjectSettings::ObjectSettings(Observable<std::vector<AtlasMessage::ObjectID> >& selectedObjects, int view)
|
||||
: m_PlayerID(0), m_SelectedObjects(selectedObjects), m_View(view)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012 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,13 @@
|
|||
#ifndef INCLUDED_OBJECTSETTINGS
|
||||
#define INCLUDED_OBJECTSETTINGS
|
||||
|
||||
#include <vector>
|
||||
#include <set>
|
||||
#include "tools/atlas/AtlasUI/General/Observable.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/MiscState.h"
|
||||
|
||||
#include "ScenarioEditor/Tools/Common/MiscState.h"
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#include <wx/arrstr.h>
|
||||
#include <wx/string.h>
|
||||
|
||||
namespace AtlasMessage
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -18,8 +18,18 @@
|
|||
#include "precompiled.h"
|
||||
|
||||
#include "Tools.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "CustomControls/Buttons/ToolButton.h"
|
||||
|
||||
#include "tools/atlas/AtlasUI/CustomControls/Buttons/ToolButton.h"
|
||||
#include "tools/atlas/AtlasUI/General/AtlasWindowCommand.h"
|
||||
#include "tools/atlas/AtlasUI/General/Observable.h"
|
||||
#include "tools/atlas/GameInterface/MessagePasser.h"
|
||||
#include "tools/atlas/GameInterface/Messages.h"
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <wx/object.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/toolbar.h>
|
||||
|
||||
class DummyTool : public ITool
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -18,12 +18,20 @@
|
|||
#ifndef INCLUDED_TOOLS
|
||||
#define INCLUDED_TOOLS
|
||||
|
||||
#include "General/AtlasWindowCommand.h"
|
||||
#include "General/Observable.h"
|
||||
#include "tools/atlas/AtlasUI/General/AtlasWindowCommand.h"
|
||||
#include "tools/atlas/AtlasUI/General/AtlasWindowCommandProc.h" // IWYU pragma: keep - required for POST_COMMAND
|
||||
|
||||
#include <cstddef>
|
||||
#include <wx/debug.h>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/object.h>
|
||||
|
||||
class wxMouseEvent;
|
||||
class wxKeyEvent;
|
||||
class ScenarioEditor;
|
||||
class wxKeyEvent;
|
||||
class wxMouseEvent;
|
||||
class wxString;
|
||||
class wxToolBar;
|
||||
template <typename T> class ObservablePtr;
|
||||
|
||||
class ITool : public wxObject
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -17,11 +17,20 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "Common/MiscState.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "tools/atlas/AtlasUI/General/Observable.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.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/SharedTypes.h"
|
||||
|
||||
#include <string>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/object.h>
|
||||
#include <wx/string.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -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,18 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "tools/atlas/AtlasUI/General/AtlasWindowCommandProc.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Brushes.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/SharedTypes.h"
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/object.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012 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,11 +17,24 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "Common/MiscState.h"
|
||||
#include "GameInterface/Messages.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/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 "tools/atlas/GameInterface/SharedTypes.h"
|
||||
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/object.h>
|
||||
#include <wx/string.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -17,11 +17,16 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/MiscState.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "ScenarioEditor/Sections/Environment/Environment.h"
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Tools.h"
|
||||
#include "tools/atlas/GameInterface/Messages.h"
|
||||
#include "tools/atlas/GameInterface/SharedTypes.h"
|
||||
|
||||
#include <wx/debug.h>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/object.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2013 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,18 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "tools/atlas/AtlasUI/General/AtlasWindowCommandProc.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Brushes.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/SharedTypes.h"
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/object.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -17,15 +17,25 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "Common/MiscState.h"
|
||||
#include "Common/ObjectSettings.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "tools/atlas/AtlasUI/General/Observable.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.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/SharedTypes.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <ctime>
|
||||
#include <list>
|
||||
#include <random>
|
||||
#include <string>
|
||||
#include <wx/chartype.h>
|
||||
#include <wx/debug.h>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/object.h>
|
||||
#include <wx/string.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -17,11 +17,20 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "Common/MiscState.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "tools/atlas/AtlasUI/General/Observable.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.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/SharedTypes.h"
|
||||
|
||||
#include <string>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/object.h>
|
||||
#include <wx/string.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2010 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,11 +17,18 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "tools/atlas/AtlasUI/General/AtlasWindowCommandProc.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Brushes.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/SharedTypes.h"
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/object.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -17,15 +17,37 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "Common/MiscState.h"
|
||||
#include "Common/ObjectSettings.h"
|
||||
#include "GameInterface/Messages.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/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 <algorithm>
|
||||
#include <cstddef>
|
||||
#include <limits>
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <wx/chartype.h>
|
||||
#include <wx/clipbrd.h>
|
||||
#include <wx/xml/xml.h>
|
||||
#include <wx/dataobj.h>
|
||||
#include <wx/debug.h>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/object.h>
|
||||
#include <wx/sstream.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/utils.h>
|
||||
#include <wx/xml/xml.h>
|
||||
|
||||
class wxInputStream;
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -17,18 +17,18 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Common/Tools.h"
|
||||
#include "Common/Brushes.h"
|
||||
#include "Common/MiscState.h"
|
||||
#include "Common/ObjectSettings.h"
|
||||
#include "GameInterface/Messages.h"
|
||||
#include "ScenarioEditor/ScenarioEditor.h"
|
||||
|
||||
#include <wx/clipbrd.h>
|
||||
#include <wx/sstream.h>
|
||||
#include <wx/version.h>
|
||||
#include <wx/xml/xml.h>
|
||||
#include "tools/atlas/AtlasUI/General/AtlasWindowCommandProc.h"
|
||||
#include "tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.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/defs.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/object.h>
|
||||
|
||||
using AtlasMessage::Position;
|
||||
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@
|
|||
#include "maths/Matrix3D.h"
|
||||
#include "maths/Vector3D.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/CStr.h"
|
||||
#include "ps/Filesystem.h"
|
||||
#include "ps/ProfileViewer.h"
|
||||
#include "ps/VideoMode.h"
|
||||
|
|
|
|||
|
|
@ -17,9 +17,16 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "MessageHandler.h"
|
||||
#include "lib/debug.h"
|
||||
#include "tools/atlas/GameInterface/CommandProc.h"
|
||||
#include "tools/atlas/GameInterface/Handlers/MessageHandler.h"
|
||||
#include "tools/atlas/GameInterface/Messages.h"
|
||||
#include "tools/atlas/GameInterface/Shareable.h"
|
||||
|
||||
#include "../CommandProc.h"
|
||||
#include <cstddef>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
namespace AtlasMessage {
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
#ifndef INCLUDED_MESSAGEHANDLER
|
||||
#define INCLUDED_MESSAGEHANDLER
|
||||
|
||||
#include "../Messages.h"
|
||||
#include "lib/debug.h"
|
||||
#include "tools/atlas/GameInterface/Messages.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
|
|
|||
|
|
@ -17,14 +17,18 @@
|
|||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#include "MessagePasserImpl.h"
|
||||
#include "Messages.h"
|
||||
#include "Handlers/MessageHandler.h"
|
||||
|
||||
#include "lib/debug.h"
|
||||
#include "lib/timer.h"
|
||||
#include "ps/CLogger.h"
|
||||
#include "tools/atlas/GameInterface/Handlers/MessageHandler.h"
|
||||
#include "tools/atlas/GameInterface/Messages.h"
|
||||
#include "tools/atlas/GameInterface/SharedMemory.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
using namespace AtlasMessage;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
// Opens namespace AtlasMessage, closes it on second inclusion!
|
||||
#ifndef MESSAGES_SKIP_SETUP
|
||||
#include "MessagesSetup.h"
|
||||
#include "MessagesSetup.h" // IWYU pragma: keep
|
||||
#endif
|
||||
|
||||
// TODO: organisation, documentation, etc
|
||||
|
|
@ -746,7 +746,7 @@ QUERY(GetSelectedObjectsTemplateNames,
|
|||
|
||||
|
||||
#ifndef MESSAGES_SKIP_SETUP
|
||||
#include "MessagesSetup.h"
|
||||
#include "MessagesSetup.h" // IWYU pragma: keep
|
||||
#endif
|
||||
|
||||
#endif // INCLUDED_MESSAGES
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -57,16 +57,19 @@ after their definition.
|
|||
|
||||
*/
|
||||
|
||||
#include "SharedMemory.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
// we want to use placement new without grief
|
||||
// (Duplicated in SharedMemory.h)
|
||||
#undef new
|
||||
|
||||
#include "tools/atlas/GameInterface/SharedMemory.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <new>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace AtlasMessage { template <typename T> class Shareable; }
|
||||
|
||||
namespace AtlasMessage
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -18,12 +18,13 @@
|
|||
#ifndef INCLUDED_SHAREDMEMORY
|
||||
#define INCLUDED_SHAREDMEMORY
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
// we want to use placement new without grief
|
||||
// (Duplicated in Shareable.h)
|
||||
#undef new
|
||||
|
||||
#include <cstddef>
|
||||
#include <new>
|
||||
|
||||
namespace AtlasMessage
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -21,6 +21,7 @@
|
|||
#include "Shareable.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class wxPoint;
|
||||
class CVector3D;
|
||||
|
|
|
|||
Loading…
Reference in a new issue