1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 14:59:54 +00:00

Another pass with IWYU

This commit is contained in:
jvoisin 2022-10-10 13:41:36 +02:00
parent c0a802bb15
commit cd29c181cf
60 changed files with 326 additions and 68 deletions

View file

@ -1,18 +1,24 @@
#include <components/debug/debugging.hpp> #include <components/debug/debugging.hpp>
#include <components/debug/debuglog.hpp>
#include <components/esm/defs.hpp>
#include <components/esm3/loadcell.hpp> #include <components/esm3/loadcell.hpp>
#include <components/esm3/readerscache.hpp> #include <components/esm3/readerscache.hpp>
#include <components/esmloader/esmdata.hpp> #include <components/esmloader/esmdata.hpp>
#include <components/esmloader/load.hpp> #include <components/esmloader/load.hpp>
#include <components/fallback/fallback.hpp> #include <components/fallback/fallback.hpp>
#include <components/fallback/validate.hpp> #include <components/fallback/validate.hpp>
#include <components/files/collections.hpp>
#include <components/files/configurationmanager.hpp> #include <components/files/configurationmanager.hpp>
#include <components/files/multidircollection.hpp>
#include <components/platform/platform.hpp> #include <components/platform/platform.hpp>
#include <components/resource/bulletshape.hpp>
#include <components/resource/bulletshapemanager.hpp> #include <components/resource/bulletshapemanager.hpp>
#include <components/resource/foreachbulletobject.hpp> #include <components/resource/foreachbulletobject.hpp>
#include <components/resource/imagemanager.hpp> #include <components/resource/imagemanager.hpp>
#include <components/resource/niffilemanager.hpp> #include <components/resource/niffilemanager.hpp>
#include <components/resource/scenemanager.hpp> #include <components/resource/scenemanager.hpp>
#include <components/settings/settings.hpp> #include <components/settings/settings.hpp>
#include <components/to_utf8/to_utf8.hpp>
#include <components/version/version.hpp> #include <components/version/version.hpp>
#include <components/vfs/manager.hpp> #include <components/vfs/manager.hpp>
#include <components/vfs/registerarchives.hpp> #include <components/vfs/registerarchives.hpp>
@ -21,9 +27,19 @@
#include <charconv> #include <charconv>
#include <cstddef> #include <cstddef>
#include <cstdint>
#include <filesystem>
#include <iomanip> #include <iomanip>
#include <stdexcept> #include <limits>
#include <map>
#include <memory>
#include <osg/ref_ptr>
#include <ostream>
#include <string> #include <string>
#include <string_view>
#include <system_error>
#include <type_traits>
#include <utility>
#include <vector> #include <vector>
namespace namespace

View file

@ -2,19 +2,22 @@
#include "worldspacedata.hpp" #include "worldspacedata.hpp"
#include <components/debug/debugging.hpp> #include <components/debug/debugging.hpp>
#include <components/debug/debuglog.hpp>
#include <components/detournavigator/agentbounds.hpp> #include <components/detournavigator/agentbounds.hpp>
#include <components/detournavigator/collisionshapetype.hpp>
#include <components/detournavigator/navmeshdb.hpp> #include <components/detournavigator/navmeshdb.hpp>
#include <components/detournavigator/recastglobalallocator.hpp> #include <components/detournavigator/recastglobalallocator.hpp>
#include <components/detournavigator/settings.hpp> #include <components/detournavigator/settings.hpp>
#include <components/esm3/esmreader.hpp>
#include <components/esm3/readerscache.hpp> #include <components/esm3/readerscache.hpp>
#include <components/esm3/variant.hpp> #include <components/esm3/variant.hpp>
#include <components/esmloader/esmdata.hpp> #include <components/esmloader/esmdata.hpp>
#include <components/esmloader/load.hpp> #include <components/esmloader/load.hpp>
#include <components/fallback/fallback.hpp> #include <components/fallback/fallback.hpp>
#include <components/fallback/validate.hpp> #include <components/fallback/validate.hpp>
#include <components/files/collections.hpp>
#include <components/files/configurationmanager.hpp> #include <components/files/configurationmanager.hpp>
#include <components/files/conversion.hpp> #include <components/files/conversion.hpp>
#include <components/files/multidircollection.hpp>
#include <components/platform/platform.hpp> #include <components/platform/platform.hpp>
#include <components/resource/bulletshapemanager.hpp> #include <components/resource/bulletshapemanager.hpp>
#include <components/resource/imagemanager.hpp> #include <components/resource/imagemanager.hpp>
@ -31,8 +34,14 @@
#include <boost/program_options.hpp> #include <boost/program_options.hpp>
#include <cstddef> #include <cstddef>
#include <stdexcept> #include <cstdint>
#include <filesystem>
#include <iostream>
#include <map>
#include <string>
#include <thread> #include <thread>
#include <type_traits>
#include <utility>
#include <vector> #include <vector>
#ifdef WIN32 #ifdef WIN32

View file

@ -1,8 +1,6 @@
#ifndef OPENMW_NAVMESHTOOL_NAVMESH_H #ifndef OPENMW_NAVMESHTOOL_NAVMESH_H
#define OPENMW_NAVMESHTOOL_NAVMESH_H #define OPENMW_NAVMESHTOOL_NAVMESH_H
#include <osg/Vec3f>
#include <cstddef> #include <cstddef>
namespace DetourNavigator namespace DetourNavigator

View file

@ -1,13 +1,19 @@
/// Program to test .nif files both on the FileSystem and in BSA archives. /// Program to test .nif files both on the FileSystem and in BSA archives.
#include <exception>
#include <filesystem> #include <filesystem>
#include <iostream> #include <iostream>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include <components/files/configurationmanager.hpp> #include <components/files/configurationmanager.hpp>
#include <components/files/constrainedfilestream.hpp> #include <components/files/constrainedfilestream.hpp>
#include <components/files/conversion.hpp> #include <components/files/conversion.hpp>
#include <components/misc/strings/algorithm.hpp> #include <components/misc/strings/algorithm.hpp>
#include <components/nif/niffile.hpp> #include <components/nif/niffile.hpp>
#include <components/vfs/archive.hpp>
#include <components/vfs/bsaarchive.hpp> #include <components/vfs/bsaarchive.hpp>
#include <components/vfs/filesystemarchive.hpp> #include <components/vfs/filesystemarchive.hpp>
#include <components/vfs/manager.hpp> #include <components/vfs/manager.hpp>

View file

@ -3,8 +3,18 @@
#include "narynode.hpp" #include "narynode.hpp"
#include <map>
#include <memory>
#include <vector>
namespace CSMWorld
{
class IdTableBase;
}
namespace CSMFilter namespace CSMFilter
{ {
class Node;
class AndNode : public NAryNode class AndNode : public NAryNode
{ {
public: public:

View file

@ -1,5 +1,13 @@
#include "notnode.hpp" #include "notnode.hpp"
#include <apps/opencs/model/filter/node.hpp>
#include <apps/opencs/model/filter/unarynode.hpp>
namespace CSMWorld
{
class IdTableBase;
}
CSMFilter::NotNode::NotNode(std::shared_ptr<Node> child) CSMFilter::NotNode::NotNode(std::shared_ptr<Node> child)
: UnaryNode(child, "not") : UnaryNode(child, "not")
{ {

View file

@ -1,10 +1,19 @@
#ifndef CSM_FILTER_NOTNODE_H #ifndef CSM_FILTER_NOTNODE_H
#define CSM_FILTER_NOTNODE_H #define CSM_FILTER_NOTNODE_H
#include <map>
#include <memory>
#include "unarynode.hpp" #include "unarynode.hpp"
namespace CSMWorld
{
class IdTableBase;
}
namespace CSMFilter namespace CSMFilter
{ {
class Node;
class NotNode : public UnaryNode class NotNode : public UnaryNode
{ {
public: public:

View file

@ -1,5 +1,13 @@
#include "ornode.hpp" #include "ornode.hpp"
#include <apps/opencs/model/filter/narynode.hpp>
#include <apps/opencs/model/filter/node.hpp>
namespace CSMWorld
{
class IdTableBase;
}
CSMFilter::OrNode::OrNode(const std::vector<std::shared_ptr<Node>>& nodes) CSMFilter::OrNode::OrNode(const std::vector<std::shared_ptr<Node>>& nodes)
: NAryNode(nodes, "or") : NAryNode(nodes, "or")
{ {

View file

@ -3,8 +3,18 @@
#include "narynode.hpp" #include "narynode.hpp"
#include <map>
#include <memory>
#include <vector>
namespace CSMWorld
{
class IdTableBase;
}
namespace CSMFilter namespace CSMFilter
{ {
class Node;
class OrNode : public NAryNode class OrNode : public NAryNode
{ {
public: public:

View file

@ -1,9 +1,15 @@
#include "parser.hpp" #include "parser.hpp"
#include <algorithm>
#include <cctype> #include <cctype>
#include <sstream> #include <sstream>
#include <stdexcept> #include <stdexcept>
#include <vector>
#include <apps/opencs/model/world/idcollection.hpp>
#include <apps/opencs/model/world/record.hpp>
#include <components/esm3/filter.hpp>
#include <components/misc/strings/lower.hpp> #include <components/misc/strings/lower.hpp>
#include "../world/columns.hpp" #include "../world/columns.hpp"

View file

@ -3,14 +3,11 @@
#include <memory> #include <memory>
#include <string> #include <string>
namespace CSMFilter namespace CSMFilter
{ {
class Node; class Node;
} }
namespace CSMFilter
{
struct Token;
}
namespace CSMWorld namespace CSMWorld
{ {

View file

@ -1,6 +1,7 @@
#ifndef CSM_PREFS_CATEGORY_H #ifndef CSM_PREFS_CATEGORY_H
#define CSM_PREFS_CATEGORY_H #define CSM_PREFS_CATEGORY_H
#include <algorithm>
#include <string> #include <string>
#include <vector> #include <vector>

View file

@ -8,6 +8,9 @@
#include <QMenu> #include <QMenu>
#include <QString> #include <QString>
#include <apps/opencs/model/filter/parser.hpp>
#include <apps/opencs/model/world/universalid.hpp>
#include <components/misc/helpviewer.hpp> #include <components/misc/helpviewer.hpp>
#include "../../model/prefs/shortcut.hpp" #include "../../model/prefs/shortcut.hpp"

View file

@ -1,11 +1,21 @@
#include "actor.hpp" #include "actor.hpp"
#include <memory>
#include <unordered_map>
#include <utility>
#include <osg/Group> #include <osg/Group>
#include <osg/MatrixTransform>
#include <osg/Node> #include <osg/Node>
#include <apps/opencs/model/world/actoradapter.hpp>
#include <apps/opencs/model/world/idcollection.hpp>
#include <apps/opencs/model/world/record.hpp>
#include <components/esm3/loadbody.hpp>
#include <components/esm3/mappings.hpp> #include <components/esm3/mappings.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcemanager.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/resource/scenemanager.hpp> #include <components/resource/scenemanager.hpp>
#include <components/sceneutil/attach.hpp> #include <components/sceneutil/attach.hpp>
#include <components/sceneutil/skeleton.hpp> #include <components/sceneutil/skeleton.hpp>

View file

@ -13,11 +13,6 @@
#include "../../model/world/actoradapter.hpp" #include "../../model/world/actoradapter.hpp"
namespace osg
{
class Group;
}
namespace CSMWorld namespace CSMWorld
{ {
class Data; class Data;

View file

@ -1,13 +1,24 @@
#include "brushdraw.hpp" #include "brushdraw.hpp"
#include <limits> #include <limits>
#include <set>
#include <utility>
#include <osg/Array> #include <osg/Array>
#include <osg/GL>
#include <osg/Geometry> #include <osg/Geometry>
#include <osg/Group> #include <osg/Group>
#include <osg/Math>
#include <osg/PrimitiveSet>
#include <osg/StateAttribute>
#include <osg/StateSet>
#include <osg/Vec4f>
#include <osgUtil/IntersectionVisitor>
#include <osgUtil/LineSegmentIntersector> #include <osgUtil/LineSegmentIntersector>
#include <components/esm3/loadland.hpp>
#include "../../model/world/cellcoordinates.hpp" #include "../../model/world/cellcoordinates.hpp"
#include "../widget/brushshapes.hpp" #include "../widget/brushshapes.hpp"
#include "mask.hpp" #include "mask.hpp"

View file

@ -1,11 +1,16 @@
#ifndef CSV_RENDER_BRUSHDRAW_H #ifndef CSV_RENDER_BRUSHDRAW_H
#define CSV_RENDER_BRUSHDRAW_H #define CSV_RENDER_BRUSHDRAW_H
#include <osg/Geometry> #include <osg/Vec3d>
#include <osg/Group> #include <osg/ref_ptr>
#include "../widget/brushshapes.hpp" #include "../widget/brushshapes.hpp"
#include <components/esm3/loadland.hpp>
namespace osg
{
class Geometry;
class Group;
}
namespace CSVRender namespace CSVRender
{ {

View file

@ -1,17 +1,19 @@
#include "cameracontroller.hpp" #include "cameracontroller.hpp"
#include <cmath> #include <cmath>
#include <set>
#include <string>
#include <QWidget> #include <QWidget>
#include <osg/BoundingBox> #include <osg/BoundingBox>
#include <osg/Camera> #include <osg/Camera>
#include <osg/ComputeBoundsVisitor> #include <osg/ComputeBoundsVisitor>
#include <osg/Drawable>
#include <osg/Group> #include <osg/Group>
#include <osg/Matrixd> #include <osg/Matrixd>
#include <osg/Quat> #include <osg/Quat>
#include <osgUtil/IntersectionVisitor>
#include <osgUtil/LineSegmentIntersector> #include <osgUtil/LineSegmentIntersector>
#include "../../model/prefs/shortcut.hpp" #include "../../model/prefs/shortcut.hpp"

View file

@ -1,13 +1,11 @@
#ifndef OPENCS_VIEW_CAMERACONTROLLER_H #ifndef OPENCS_VIEW_CAMERACONTROLLER_H
#define OPENCS_VIEW_CAMERACONTROLLER_H #define OPENCS_VIEW_CAMERACONTROLLER_H
#include <string>
#include <vector> #include <vector>
#include <QObject> #include <QObject>
#include <osg/Vec3d> #include <osg/Vec3d>
#include <osg/ref_ptr>
namespace osg namespace osg
{ {

View file

@ -1,14 +1,13 @@
#include "cell.hpp" #include "cell.hpp"
#include <algorithm>
#include <set> #include <set>
#include <type_traits>
#include <utility> #include <utility>
#include <osg/Callback> #include <osg/Callback>
#include <osg/Group> #include <osg/Group>
#include <osg/Node> #include <osg/Node>
#include <osg/NodeVisitor> #include <osg/NodeVisitor>
#include <osg/PositionAttitudeTransform>
#include <osg/Referenced> #include <osg/Referenced>
#include <components/esm/defs.hpp> #include <components/esm/defs.hpp>

View file

@ -6,18 +6,17 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <osg/Vec3d>
#include <osg/ref_ptr> #include <osg/ref_ptr>
#include "../../model/world/cellcoordinates.hpp" #include "../../model/world/cellcoordinates.hpp"
#include "instancedragmodes.hpp" #include "instancedragmodes.hpp"
#include "terrainstorage.hpp"
class QModelIndex; class QModelIndex;
namespace osg namespace osg
{ {
class Group; class Group;
class Geometry;
} }
namespace CSMWorld namespace CSMWorld
@ -35,12 +34,12 @@ namespace CSVRender
class CellWater; class CellWater;
class Pathgrid; class Pathgrid;
class TagBase; class TagBase;
class TerrainStorage;
class Object; class Object;
class CellArrow; class CellArrow;
class CellBorder; class CellBorder;
class CellMarker; class CellMarker;
class CellWater;
class Cell class Cell
{ {

View file

@ -3,6 +3,8 @@
#include "tagbase.hpp" #include "tagbase.hpp"
#include <QString>
#include <osg/ref_ptr> #include <osg/ref_ptr>
#include "../../model/world/cellcoordinates.hpp" #include "../../model/world/cellcoordinates.hpp"

View file

@ -1,9 +1,15 @@
#include "cellborder.hpp" #include "cellborder.hpp"
#include <osg/Array>
#include <osg/GL>
#include <osg/Geometry> #include <osg/Geometry>
#include <osg/Group> #include <osg/Group>
#include <osg/PositionAttitudeTransform> #include <osg/PositionAttitudeTransform>
#include <osg/PrimitiveSet> #include <osg/PrimitiveSet>
#include <osg/StateAttribute>
#include <osg/StateSet>
#include <osg/Vec3f>
#include <osg/Vec4f>
#include <components/esm3/loadland.hpp> #include <components/esm3/loadland.hpp>

View file

@ -1,11 +1,24 @@
#include "cellmarker.hpp" #include "cellmarker.hpp"
#include <string>
#include <osg/AutoTransform> #include <osg/AutoTransform>
#include <osg/GL>
#include <osg/Group>
#include <osg/Material> #include <osg/Material>
#include <osg/StateAttribute>
#include <osg/StateSet>
#include <osg/Vec3f>
#include <osg/Vec4f>
#include <osgText/Text> #include <osgText/Text>
#include <osgText/TextBase>
#include <components/misc/constants.hpp> #include <components/misc/constants.hpp>
#include <apps/opencs/model/world/cellcoordinates.hpp>
#include <apps/opencs/view/render/mask.hpp>
#include <apps/opencs/view/render/tagbase.hpp>
CSVRender::CellMarkerTag::CellMarkerTag(CellMarker* marker) CSVRender::CellMarkerTag::CellMarkerTag(CellMarker* marker)
: TagBase(Mask_CellMarker) : TagBase(Mask_CellMarker)
, mMarker(marker) , mMarker(marker)

View file

@ -5,10 +5,9 @@
#include <osg/ref_ptr> #include <osg/ref_ptr>
#include <QModelIndex>
#include <QObject> #include <QObject>
#include "../../model/world/record.hpp" class QModelIndex;
namespace osg namespace osg
{ {
@ -22,6 +21,9 @@ namespace CSMWorld
struct Cell; struct Cell;
class CellCoordinates; class CellCoordinates;
class Data; class Data;
template <typename ESXRecordT>
struct Record;
} }
namespace CSVRender namespace CSVRender

View file

@ -1,5 +1,10 @@
#include "commands.hpp" #include "commands.hpp"
#include <memory>
#include <apps/opencs/view/render/editmode.hpp>
#include <apps/opencs/view/render/terrainselection.hpp>
#include <components/debug/debuglog.hpp> #include <components/debug/debuglog.hpp>
#include "terrainshapemode.hpp" #include "terrainshapemode.hpp"

View file

@ -2,14 +2,11 @@
#define CSV_RENDER_COMMANDS_HPP #define CSV_RENDER_COMMANDS_HPP
#include <QPointer> #include <QPointer>
#include <QUndoCommand> #include <QUndoCommand>
#include "worldspacewidget.hpp"
namespace CSVRender namespace CSVRender
{ {
class TerrainSelection; class WorldspaceWidget;
/* /*
Current solution to force a redrawing of the terrain-selection grid Current solution to force a redrawing of the terrain-selection grid

View file

@ -1,14 +1,33 @@
#include "instanceselectionmode.hpp" #include "instanceselectionmode.hpp"
#include <cmath>
#include <string>
#include <vector>
#include <apps/opencs/model/doc/document.hpp>
#include <apps/opencs/model/world/data.hpp>
#include <apps/opencs/model/world/universalid.hpp>
#include <apps/opencs/view/render/mask.hpp>
#include <apps/opencs/view/render/selectionmode.hpp>
#include <osg/Array>
#include <osg/GL>
#include <osg/Geometry>
#include <osg/Group>
#include <osg/Math>
#include <osg/PositionAttitudeTransform>
#include <osg/PrimitiveSet>
#include <osg/StateAttribute>
#include <osg/StateSet>
#include <osg/Vec3d>
#include <osg/Vec3f>
#include <osg/Vec4f>
#include <osg/ref_ptr>
#include <QAction> #include <QAction>
#include <QMenu> #include <QMenu>
#include <QPoint> #include <QPoint>
#include <osg/Group>
#include <osg/PositionAttitudeTransform>
#include <osg/Vec3d>
#include <osg/ref_ptr>
#include "../../model/world/commands.hpp" #include "../../model/world/commands.hpp"
#include "../../model/world/idtable.hpp" #include "../../model/world/idtable.hpp"
@ -16,8 +35,15 @@
#include "object.hpp" #include "object.hpp"
#include "worldspacewidget.hpp" #include "worldspacewidget.hpp"
namespace CSVWidget
{
class SceneToolbar;
}
namespace CSVRender namespace CSVRender
{ {
class TagBase;
InstanceSelectionMode::InstanceSelectionMode( InstanceSelectionMode::InstanceSelectionMode(
CSVWidget::SceneToolbar* parent, WorldspaceWidget& worldspaceWidget, osg::Group* cellNode) CSVWidget::SceneToolbar* parent, WorldspaceWidget& worldspaceWidget, osg::Group* cellNode)
: SelectionMode(parent, worldspaceWidget, Mask_Reference) : SelectionMode(parent, worldspaceWidget, Mask_Reference)

View file

@ -1,16 +1,32 @@
#ifndef CSV_RENDER_INSTANCE_SELECTION_MODE_H #ifndef CSV_RENDER_INSTANCE_SELECTION_MODE_H
#define CSV_RENDER_INSTANCE_SELECTION_MODE_H #define CSV_RENDER_INSTANCE_SELECTION_MODE_H
#include <QPoint>
#include <osg/PositionAttitudeTransform>
#include <osg/Vec3d> #include <osg/Vec3d>
#include <osg/ref_ptr>
class QAction;
class QMenu;
class QObject;
class QPoint;
namespace CSVWidget
{
class SceneToolbar;
}
namespace osg
{
class PositionAttitudeTransform;
class Group;
class Vec3f;
}
#include "instancedragmodes.hpp" #include "instancedragmodes.hpp"
#include "selectionmode.hpp" #include "selectionmode.hpp"
namespace CSVRender namespace CSVRender
{ {
class WorldspaceWidget;
class InstanceSelectionMode : public SelectionMode class InstanceSelectionMode : public SelectionMode
{ {
Q_OBJECT Q_OBJECT

View file

@ -1,10 +1,17 @@
#include "lighting.hpp" #include "lighting.hpp"
#include <string>
#include <osg/Group>
#include <osg/LightSource> #include <osg/LightSource>
#include <osg/NodeVisitor> #include <osg/NodeVisitor>
#include <osg/Object>
#include <osg/Switch> #include <osg/Switch>
#include <osg/ValueObject> #include <osg/ValueObject>
#include <apps/opencs/model/prefs/category.hpp>
#include <apps/opencs/model/prefs/setting.hpp>
#include <components/misc/constants.hpp> #include <components/misc/constants.hpp>
#include "../../model/prefs/state.hpp" #include "../../model/prefs/state.hpp"

View file

@ -1,6 +1,9 @@
#include "lightingbright.hpp" #include "lightingbright.hpp"
#include <osg/Group>
#include <osg/Light>
#include <osg/LightSource> #include <osg/LightSource>
#include <osg/ref_ptr>
CSVRender::LightingBright::LightingBright() {} CSVRender::LightingBright::LightingBright() {}

View file

@ -3,9 +3,10 @@
#include "lighting.hpp" #include "lighting.hpp"
#include <osg/Vec4f>
namespace osg namespace osg
{ {
class Light;
class Group; class Group;
} }

View file

@ -1,6 +1,9 @@
#include "lightingday.hpp" #include "lightingday.hpp"
#include <osg/Group>
#include <osg/Light>
#include <osg/LightSource> #include <osg/LightSource>
#include <osg/ref_ptr>
CSVRender::LightingDay::LightingDay() {} CSVRender::LightingDay::LightingDay() {}

View file

@ -3,6 +3,8 @@
#include "lighting.hpp" #include "lighting.hpp"
#include <osg/Vec4f>
namespace CSVRender namespace CSVRender
{ {
class LightingDay : public Lighting class LightingDay : public Lighting

View file

@ -1,6 +1,9 @@
#include "lightingnight.hpp" #include "lightingnight.hpp"
#include <osg/Group>
#include <osg/Light>
#include <osg/LightSource> #include <osg/LightSource>
#include <osg/ref_ptr>
CSVRender::LightingNight::LightingNight() {} CSVRender::LightingNight::LightingNight() {}

View file

@ -3,6 +3,8 @@
#include "lighting.hpp" #include "lighting.hpp"
#include <osg/Vec4f>
namespace CSVRender namespace CSVRender
{ {
class LightingNight : public Lighting class LightingNight : public Lighting

View file

@ -1,9 +1,12 @@
#include "object.hpp" #include "object.hpp"
#include <algorithm>
#include <cmath>
#include <exception>
#include <stdexcept> #include <stdexcept>
#include <string> #include <string>
#include <utility>
#include <osg/Depth>
#include <osg/Group> #include <osg/Group>
#include <osg/PositionAttitudeTransform> #include <osg/PositionAttitudeTransform>

View file

@ -4,8 +4,7 @@
#include <memory> #include <memory>
#include <string> #include <string>
#include <osg/Geometry> #include <osg/Vec3f>
#include <osg/Referenced>
#include <osg/ref_ptr> #include <osg/ref_ptr>
#include <components/esm/defs.hpp> #include <components/esm/defs.hpp>
@ -13,11 +12,11 @@
#include "tagbase.hpp" #include "tagbase.hpp"
class QModelIndex; class QModelIndex;
class QUndoStack;
namespace osg namespace osg
{ {
class PositionAttitudeTransform; class PositionAttitudeTransform;
class Geometry;
class Group; class Group;
class Node; class Node;
} }

View file

@ -1,8 +1,6 @@
#ifndef CSV_RENDER_ORBITCAMERAPICKMODE_H #ifndef CSV_RENDER_ORBITCAMERAPICKMODE_H
#define CSV_RENDER_ORBITCAMERAPICKMODE_H #define CSV_RENDER_ORBITCAMERAPICKMODE_H
#include <memory>
#include "../widget/modebutton.hpp" #include "../widget/modebutton.hpp"
namespace CSMPrefs namespace CSMPrefs

View file

@ -1,6 +1,6 @@
#include "pathgridmode.hpp" #include "pathgridmode.hpp"
#include <QPoint> #include <QIcon>
#include <components/sceneutil/pathgridutil.hpp> #include <components/sceneutil/pathgridutil.hpp>
@ -16,6 +16,23 @@
#include "pathgridselectionmode.hpp" #include "pathgridselectionmode.hpp"
#include "worldspacewidget.hpp" #include "worldspacewidget.hpp"
#include <apps/opencs/model/doc/document.hpp>
#include <apps/opencs/model/prefs/category.hpp>
#include <apps/opencs/model/prefs/setting.hpp>
#include <apps/opencs/view/render/editmode.hpp>
#include <apps/opencs/view/render/tagbase.hpp>
#include <osg/Camera>
#include <osg/Matrixd>
#include <osg/Vec3d>
#include <osg/ref_ptr>
#include <vector>
class QPoint;
class QUndoStack;
class QWidget;
namespace CSVRender namespace CSVRender
{ {
PathgridMode::PathgridMode(WorldspaceWidget* worldspaceWidget, QWidget* parent) PathgridMode::PathgridMode(WorldspaceWidget* worldspaceWidget, QWidget* parent)

View file

@ -7,11 +7,6 @@
class QModelIndex; class QModelIndex;
namespace VFS
{
class Manager;
}
namespace CSMWorld namespace CSMWorld
{ {
class Data; class Data;

View file

@ -1,14 +1,18 @@
#ifndef OPENCS_VIEW_SCENEWIDGET_H #ifndef OPENCS_VIEW_SCENEWIDGET_H
#define OPENCS_VIEW_SCENEWIDGET_H #define OPENCS_VIEW_SCENEWIDGET_H
#include <map>
#include <memory> #include <memory>
#include <string>
#include <QColor>
#include <QObject>
#include <QTimer> #include <QTimer>
#include <QWidget> #include <QWidget>
#include <osg/Vec4f>
#include <osg/ref_ptr>
#include <osgViewer/CompositeViewer> #include <osgViewer/CompositeViewer>
#include <osgViewer/View>
#include "lightingbright.hpp" #include "lightingbright.hpp"
#include "lightingday.hpp" #include "lightingday.hpp"

View file

@ -1,6 +1,7 @@
#include "tagbase.hpp" #include "tagbase.hpp"
#include <apps/opencs/view/render/mask.hpp>
CSVRender::TagBase::TagBase(Mask mask) CSVRender::TagBase::TagBase(Mask mask)
: mMask(mask) : mMask(mask)
{ {

View file

@ -9,7 +9,6 @@
#include <QIcon> #include <QIcon>
#include <QWidget> #include <QWidget>
#include <osg/Group>
#include <osg/Vec3f> #include <osg/Vec3f>
#include <components/debug/debuglog.hpp> #include <components/debug/debuglog.hpp>

View file

@ -1,16 +1,18 @@
#include "terrainstorage.hpp" #include "terrainstorage.hpp"
#include <components/esm3/loadltex.hpp>
#include <components/esm3terrain/storage.hpp> #include <components/esm3terrain/storage.hpp>
#include <components/resource/resourcesystem.hpp>
#include <algorithm>
#include <apps/opencs/model/world/data.hpp> #include <apps/opencs/model/world/data.hpp>
#include <apps/opencs/model/world/idcollection.hpp> #include <apps/opencs/model/world/idcollection.hpp>
#include <apps/opencs/model/world/land.hpp> #include <apps/opencs/model/world/land.hpp>
#include <apps/opencs/model/world/landtexture.hpp> #include <apps/opencs/model/world/landtexture.hpp>
#include <apps/opencs/model/world/record.hpp> #include <apps/opencs/model/world/record.hpp>
#include <components/resource/resourcesystem.hpp>
#include <algorithm>
#include <cmath>
#include <iterator> #include <iterator>
#include <math.h>
#include <memory> #include <memory>
#include <osg/Vec4ub> #include <osg/Vec4ub>
#include <stdexcept> #include <stdexcept>

View file

@ -4,7 +4,6 @@
#include <array> #include <array>
#include <components/esm3/loadland.hpp> #include <components/esm3/loadland.hpp>
#include <components/esm3/loadltex.hpp>
#include <components/esm3terrain/storage.hpp> #include <components/esm3terrain/storage.hpp>
#include <osg/ref_ptr> #include <osg/ref_ptr>

View file

@ -1,6 +1,7 @@
#include "worldspacewidget.hpp" #include "worldspacewidget.hpp"
#include <algorithm> #include <algorithm>
#include <set>
#include <QDragEnterEvent> #include <QDragEnterEvent>
#include <QDragMoveEvent> #include <QDragMoveEvent>
@ -8,6 +9,27 @@
#include <QMouseEvent> #include <QMouseEvent>
#include <QToolTip> #include <QToolTip>
#include <apps/opencs/model/doc/document.hpp>
#include <apps/opencs/model/prefs/category.hpp>
#include <apps/opencs/model/prefs/setting.hpp>
#include <apps/opencs/model/world/columns.hpp>
#include <apps/opencs/model/world/data.hpp>
#include <apps/opencs/model/world/record.hpp>
#include <apps/opencs/view/render/editmode.hpp>
#include <apps/opencs/view/render/scenewidget.hpp>
#include <apps/opencs/view/widget/modebutton.hpp>
#include <components/esm/defs.hpp>
#include <osg/Camera>
#include <osg/Group>
#include <osg/Matrixd>
#include <osg/Node>
#include <osg/Referenced>
#include <osg/Viewport>
#include <osgUtil/IntersectionVisitor>
#include <osgViewer/View>
#include <osgUtil/LineSegmentIntersector> #include <osgUtil/LineSegmentIntersector>
#include "../../model/world/idtable.hpp" #include "../../model/world/idtable.hpp"

View file

@ -6,6 +6,8 @@
#include "../../model/doc/document.hpp" #include "../../model/doc/document.hpp"
#include <apps/opencs/view/render/tagbase.hpp>
#include "instancedragmodes.hpp" #include "instancedragmodes.hpp"
#include "scenewidget.hpp" #include "scenewidget.hpp"
@ -30,9 +32,7 @@ namespace CSVWidget
namespace CSVRender namespace CSVRender
{ {
class TagBase;
class Cell; class Cell;
class CellArrow;
class EditMode; class EditMode;
struct WorldspaceHitResult struct WorldspaceHitResult

View file

@ -1,10 +1,14 @@
#include "droplineedit.hpp" #include "droplineedit.hpp"
#include <string>
#include <QDropEvent> #include <QDropEvent>
#include "../../model/world/tablemimedata.hpp" #include "../../model/world/tablemimedata.hpp"
#include "../../model/world/universalid.hpp" #include "../../model/world/universalid.hpp"
#include <apps/opencs/model/world/columnbase.hpp>
#include "../world/dragdroputils.hpp" #include "../world/dragdroputils.hpp"
CSVWidget::DropLineEdit::DropLineEdit(CSMWorld::ColumnBase::Display type, QWidget* parent) CSVWidget::DropLineEdit::DropLineEdit(CSMWorld::ColumnBase::Display type, QWidget* parent)

View file

@ -12,7 +12,6 @@ namespace CSMDoc
namespace CSMWorld namespace CSMWorld
{ {
class TableMimeData;
class UniversalId; class UniversalId;
} }

View file

@ -19,9 +19,13 @@
#include "brushshapes.hpp" #include "brushshapes.hpp"
#include "scenetool.hpp" #include "scenetool.hpp"
#include "../../model/doc/document.hpp"
#include "../../model/prefs/state.hpp" #include "../../model/prefs/state.hpp"
namespace CSMDoc
{
class Document;
}
CSVWidget::ShapeBrushSizeControls::ShapeBrushSizeControls(const QString& title, QWidget* parent) CSVWidget::ShapeBrushSizeControls::ShapeBrushSizeControls(const QString& title, QWidget* parent)
: QGroupBox(title, parent) : QGroupBox(title, parent)
{ {

View file

@ -1,7 +1,6 @@
#include "scenetooltoggle2.hpp" #include "scenetooltoggle2.hpp"
#include <sstream> #include <sstream>
#include <stdexcept>
#include <QFrame> #include <QFrame>
#include <QHBoxLayout> #include <QHBoxLayout>

View file

@ -1,9 +1,12 @@
#include "installationtargetpage.hpp" #include "installationtargetpage.hpp"
#include <string>
#include <QDebug> #include <QDebug>
#include <QFileDialog> #include <QFileDialog>
#include <QMessageBox> #include <QMessageBox>
#include <components/files/configurationmanager.hpp>
#include <components/files/conversion.hpp> #include <components/files/conversion.hpp>
#include "mainwizard.hpp" #include "mainwizard.hpp"

View file

@ -1,6 +1,8 @@
#ifndef INSTALLATIONTARGETPAGE_HPP #ifndef INSTALLATIONTARGETPAGE_HPP
#define INSTALLATIONTARGETPAGE_HPP #define INSTALLATIONTARGETPAGE_HPP
#include <QWizard>
#include "ui_installationtargetpage.h" #include "ui_installationtargetpage.h"
namespace Files namespace Files

View file

@ -2,6 +2,10 @@
#include "mainwizard.hpp" #include "mainwizard.hpp"
#include <QObject>
#include <QPixmap>
#include <QWidget>
Wizard::IntroPage::IntroPage(QWidget* parent) Wizard::IntroPage::IntroPage(QWidget* parent)
: QWizardPage(parent) : QWizardPage(parent)
{ {

View file

@ -3,6 +3,8 @@
#include "ui_intropage.h" #include "ui_intropage.h"
#include <QWizard>
namespace Wizard namespace Wizard
{ {
class MainWizard; class MainWizard;

View file

@ -1,8 +1,14 @@
#ifndef LANGUAGESELECTIONPAGE_HPP #ifndef LANGUAGESELECTIONPAGE_HPP
#define LANGUAGESELECTIONPAGE_HPP #define LANGUAGESELECTIONPAGE_HPP
#include <QString>
#include <QWizard>
#include "ui_languageselectionpage.h" #include "ui_languageselectionpage.h"
class QObject;
class QWidget;
namespace Wizard namespace Wizard
{ {
class MainWizard; class MainWizard;

View file

@ -4,9 +4,11 @@
#include <QDebug> #include <QDebug>
#include <QDir> #include <QDir>
#include <QMessageBox> #include <QMessageBox>
#include <QProcess>
#include <QTextCodec> #include <QTextCodec>
#include <components/files/qtconversion.hpp> #include <components/files/qtconversion.hpp>
#include <components/process/processinvoker.hpp>
#include "componentselectionpage.hpp" #include "componentselectionpage.hpp"
#include "conclusionpage.hpp" #include "conclusionpage.hpp"

View file

@ -1,10 +1,9 @@
#ifndef MAINWIZARD_HPP #ifndef MAINWIZARD_HPP
#define MAINWIZARD_HPP #define MAINWIZARD_HPP
#include <QProcess>
#include <QWizard> #include <QWizard>
#include <components/process/processinvoker.hpp>
#ifndef Q_MOC_RUN #ifndef Q_MOC_RUN
#include <components/files/configurationmanager.hpp> #include <components/files/configurationmanager.hpp>
@ -12,6 +11,11 @@
#include <components/config/launchersettings.hpp> #include <components/config/launchersettings.hpp>
#endif #endif
namespace Process
{
class ProcessInvoker;
}
namespace Wizard namespace Wizard
{ {
class MainWizard : public QWizard class MainWizard : public QWizard

View file

@ -9,6 +9,8 @@
#include <QTextCodec> #include <QTextCodec>
#include <QTextStream> #include <QTextStream>
#include <apps/wizard/inisettings.hpp>
Wizard::UnshieldWorker::UnshieldWorker(qint64 expectedMorrowindBsaSize, QObject* parent) Wizard::UnshieldWorker::UnshieldWorker(qint64 expectedMorrowindBsaSize, QObject* parent)
: QObject(parent) : QObject(parent)
, mExpectedMorrowindBsaSize(expectedMorrowindBsaSize) , mExpectedMorrowindBsaSize(expectedMorrowindBsaSize)