Skip to content

Commit 55b9260

Browse files
committed
Move property_container_base into XRay::Editor namespace (https://github.com/Xottab-DUTY/xray-16/issues/1)
1 parent 9b2cc69 commit 55b9260

File tree

111 files changed

+712
-560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+712
-560
lines changed

src/Include/editor/engine.hpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@
1111

1212
class shared_str;
1313

14-
namespace editor
14+
namespace XRay
15+
{
16+
namespace Editor
1517
{
1618
class property_holder_base;
19+
}
20+
}
1721

22+
namespace editor
23+
{
1824
class engine
1925
{
2026
public:
@@ -44,9 +50,9 @@ class engine
4450
virtual void track_weather(float const& time) = 0;
4551
virtual float track_weather() = 0;
4652

47-
virtual property_holder_base* current_frame_property_holder() = 0;
48-
virtual property_holder_base* blend_frame_property_holder() = 0;
49-
virtual property_holder_base* target_frame_property_holder() = 0;
53+
virtual XRay::Editor::property_holder_base* current_frame_property_holder() = 0;
54+
virtual XRay::Editor::property_holder_base* blend_frame_property_holder() = 0;
55+
virtual XRay::Editor::property_holder_base* target_frame_property_holder() = 0;
5056

5157
virtual void weather_paused(bool const& value) = 0;
5258
virtual bool weather_paused() = 0;

src/Include/editor/ide.hpp

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@
99
#ifndef EDITOR_IDE_HPP_INCLUDED
1010
#define EDITOR_IDE_HPP_INCLUDED
1111

12-
namespace editor
12+
namespace XRay
13+
{
14+
namespace Editor
1315
{
1416
class property_holder_base;
1517
class property_holder_collection;
1618
class property_holder_holder;
19+
}
20+
}
1721

22+
namespace editor
23+
{
1824
class ide
1925
{
2026
public:
@@ -25,11 +31,11 @@ class ide
2531
virtual void pause() = 0;
2632

2733
public:
28-
virtual property_holder_base* create_property_holder(
29-
LPCSTR display_name, property_holder_collection* collection = 0, property_holder_holder* holder = 0) = 0;
30-
virtual void destroy(property_holder_base*& property_holder) = 0;
31-
virtual void environment_levels(property_holder_base* property_holder) = 0;
32-
virtual void environment_weathers(property_holder_base* property_holder) = 0;
34+
virtual XRay::Editor::property_holder_base* create_property_holder(
35+
LPCSTR display_name, XRay::Editor::property_holder_collection* collection = 0, XRay::Editor::property_holder_holder* holder = 0) = 0;
36+
virtual void destroy(XRay::Editor::property_holder_base*& property_holder) = 0;
37+
virtual void environment_levels(XRay::Editor::property_holder_base* property_holder) = 0;
38+
virtual void environment_weathers(XRay::Editor::property_holder_base* property_holder) = 0;
3339

3440
public:
3541
typedef fastdelegate::FastDelegate0<LPCSTR const*> weathers_getter_type;

src/Include/editor/property_holder_base.hpp

Lines changed: 41 additions & 5 deletions
Large diffs are not rendered by default.

src/editors/xrWeatherEditor/ide_impl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ void ide_impl::on_load_finished()
5555
}
5656

5757
void ide_impl::pause() { m_window->view().pause(); }
58-
editor::property_holder_base* ide_impl::create_property_holder(
59-
LPCSTR display_name, editor::property_holder_collection* collection, editor::property_holder_holder* holder)
58+
XRay::Editor::property_holder_base* ide_impl::create_property_holder(
59+
LPCSTR display_name, XRay::Editor::property_holder_collection* collection, XRay::Editor::property_holder_holder* holder)
6060
{
6161
return (new ::property_holder(m_engine, display_name, collection, holder));
6262
}
6363

64-
void ide_impl::destroy(editor::property_holder_base*& property_holder)
64+
void ide_impl::destroy(property_holder*& property_holder)
6565
{
6666
delete (property_holder);
6767
property_holder = 0;

src/editors/xrWeatherEditor/ide_impl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#pragma unmanaged
1313
#include <windows.h>
14-
#include "xrcore/fastdelegate.h"
14+
#include "xrCore/fastdelegate.h"
1515
#include <utility>
1616
#include "include/editor/ide.hpp"
1717
#pragma managed
@@ -29,7 +29,7 @@ class ide_impl : public editor::ide
2929
{
3030
public:
3131
typedef editor::window_ide window_ide;
32-
typedef editor::property_holder_base property_holder;
32+
typedef XRay::Editor::property_holder_base property_holder;
3333

3434
public:
3535
ide_impl(editor::engine* engine);
@@ -50,7 +50,7 @@ class ide_impl : public editor::ide
5050

5151
public:
5252
virtual property_holder* create_property_holder(
53-
LPCSTR display_name, editor::property_holder_collection* collection, editor::property_holder_holder* holder);
53+
LPCSTR display_name, XRay::Editor::property_holder_collection* collection, XRay::Editor::property_holder_holder* holder);
5454
virtual void destroy(property_holder*& property_holder);
5555
virtual void environment_levels(property_holder* property_holder);
5656
virtual void environment_weathers(property_holder* property_holder);

src/editors/xrWeatherEditor/property_boolean.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public
1616
ref class property_boolean : public IProperty
1717
{
1818
public:
19-
typedef editor::property_holder_base::boolean_getter_type boolean_getter_type;
20-
typedef editor::property_holder_base::boolean_setter_type boolean_setter_type;
19+
typedef XRay::Editor::property_holder_base::boolean_getter_type boolean_getter_type;
20+
typedef XRay::Editor::property_holder_base::boolean_setter_type boolean_setter_type;
2121

2222
public:
2323
property_boolean(boolean_getter_type const& getter, boolean_setter_type const& setter);

src/editors/xrWeatherEditor/property_boolean_values_value.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public
1515
ref class property_boolean_values_value : public property_boolean
1616
{
1717
public:
18-
typedef editor::property_holder_base::boolean_getter_type boolean_getter_type;
19-
typedef editor::property_holder_base::boolean_setter_type boolean_setter_type;
18+
typedef XRay::Editor::property_holder_base::boolean_getter_type boolean_getter_type;
19+
typedef XRay::Editor::property_holder_base::boolean_setter_type boolean_setter_type;
2020

2121
private:
2222
typedef property_boolean inherited;

src/editors/xrWeatherEditor/property_boolean_values_value_reference.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public
1515
ref class property_boolean_values_value_reference : public property_boolean_reference
1616
{
1717
public:
18-
typedef editor::property_holder_base::boolean_getter_type boolean_getter_type;
19-
typedef editor::property_holder_base::boolean_setter_type boolean_setter_type;
18+
typedef XRay::Editor::property_holder_base::boolean_getter_type boolean_getter_type;
19+
typedef XRay::Editor::property_holder_base::boolean_setter_type boolean_setter_type;
2020

2121
private:
2222
typedef property_boolean_reference inherited;

src/editors/xrWeatherEditor/property_collection_base.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void property_collection_base::CopyTo(Array ^ items, int index)
2525
collection_type* collection = this->collection();
2626
for (int i = index, n = collection->size(); i < n; ++i)
2727
{
28-
editor::property_holder_base* holder_raw = collection->item(i);
28+
XRay::Editor::property_holder_base* holder_raw = collection->item(i);
2929
::property_holder* holder = dynamic_cast<::property_holder*>(holder_raw);
3030
VERIFY(holder);
3131
items->SetValue(holder->container(), i);
@@ -65,7 +65,7 @@ bool property_collection_base::IsFixedSize::get() { return (false); }
6565
bool property_collection_base::IsReadOnly::get() { return (false); }
6666
Object ^ property_collection_base::default ::get(int index)
6767
{
68-
editor::property_holder_base* holder_raw = collection()->item(index);
68+
XRay::Editor::property_holder_base* holder_raw = collection()->item(index);
6969
::property_holder* holder = dynamic_cast<::property_holder*>(holder_raw);
7070
return (holder->container());
7171
}
@@ -78,7 +78,7 @@ void property_collection_base::default ::set(int index, Object ^ value)
7878

7979
property_container ^ property_collection_base::create()
8080
{
81-
editor::property_holder_base* holder_raw = collection()->create();
81+
XRay::Editor::property_holder_base* holder_raw = collection()->create();
8282
::property_holder* holder = dynamic_cast<::property_holder*>(holder_raw);
8383
return (holder->container());
8484
}

src/editors/xrWeatherEditor/property_collection_base.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ ref class property_collection_converter;
2323
public System::Collections::IList
2424
{
2525
public:
26-
typedef editor::property_holder_collection collection_type;
27-
typedef editor::property_holder_base property_holder;
26+
typedef XRay::Editor::property_holder_collection collection_type;
27+
typedef XRay::Editor::property_holder_base property_holder;
2828
typedef System::Collections::IEnumerator IEnumerator;
2929
typedef System::Array Array;
3030
typedef System::Object Object;

0 commit comments

Comments
 (0)