Skip to content

Commit 28c8703

Browse files
committed
Rename editor::engine to editor::engine_base (https://github.com/Xottab-DUTY/xray-16/issues/1)
1 parent 8ac6831 commit 28c8703

21 files changed

+43
-43
lines changed

src/Include/editor/engine.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class property_holder_base;
2121

2222
namespace editor
2323
{
24-
class engine
24+
class engine_base
2525
{
2626
public:
2727
virtual bool on_message(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT& result) = 0;

src/Include/editor/interfaces.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace editor
1313
{
1414
class ide_base;
15-
class engine;
15+
class engine_base;
1616

17-
typedef void(__cdecl* initialize_function_ptr)(ide_base*&, engine*);
17+
typedef void(__cdecl* initialize_function_ptr)(ide_base*&, engine_base*);
1818
typedef void(__cdecl* finalize_function_ptr)(ide_base*&);
1919

2020
} // namespace editor

src/editors/xrWeatherEditor/entry_point.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
private ref class window_ide_final : public editor::window_ide
1414
{
1515
public:
16-
window_ide_final(editor::ide_base*& ide, editor::engine* engine) : editor::window_ide(engine)
16+
window_ide_final(editor::ide_base*& ide, editor::engine_base* engine) : editor::window_ide(engine)
1717
{
1818
m_ide = ide;
1919
Application::Idle += gcnew System::EventHandler(this, &window_ide_final::on_idle);
@@ -60,7 +60,7 @@ private ref class window_ide_final : public editor::window_ide
6060

6161
ide_impl* g_ide = nullptr;
6262

63-
static void initialize_impl(editor::ide_base*& ide, editor::engine* engine)
63+
static void initialize_impl(editor::ide_base*& ide, editor::engine_base* engine)
6464
{
6565
VERIFY(!g_ide);
6666
g_ide = new ide_impl(engine);
@@ -73,7 +73,7 @@ static void initialize_impl(editor::ide_base*& ide, editor::engine* engine)
7373
WINOLEAPI CoInitializeEx(IN LPVOID pvReserved, IN DWORD dwCoInit);
7474
#pragma comment(lib, "ole32.lib")
7575

76-
extern "C" __declspec(dllexport) void initialize(editor::ide_base*& ide, editor::engine* engine)
76+
extern "C" __declspec(dllexport) void initialize(editor::ide_base*& ide, editor::engine_base* engine)
7777
{
7878
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
7979
initialize_impl(ide, engine);

src/editors/xrWeatherEditor/ide_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
using editor::window_ide;
2222

23-
ide_impl::ide_impl(editor::engine* engine) : m_engine(engine), m_window(nullptr), m_paused(false), m_in_idle(false) {}
23+
ide_impl::ide_impl(editor::engine_base* engine) : m_engine(engine), m_window(nullptr), m_paused(false), m_in_idle(false) {}
2424
ide_impl::~ide_impl() {}
2525
void ide_impl::window(window_ide ^ window) { m_window = window; }
2626
window_ide ^ ide_impl::window() { return (m_window); }

src/editors/xrWeatherEditor/ide_impl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace editor
2222
{
2323
ref class window_ide;
24-
class engine;
24+
class engine_base;
2525
class property_holder_holder;
2626
} // namespace editor
2727

@@ -32,7 +32,7 @@ class ide_impl : public editor::ide_base
3232
typedef XRay::Editor::property_holder_base property_holder;
3333

3434
public:
35-
ide_impl(editor::engine* engine);
35+
ide_impl(editor::engine_base* engine);
3636
virtual ~ide_impl();
3737
void window(window_ide ^ window);
3838
window_ide ^ window();
@@ -59,7 +59,7 @@ class ide_impl : public editor::ide_base
5959
frames_size_getter_type const& frames_size_getter);
6060

6161
private:
62-
editor::engine* m_engine;
62+
editor::engine_base* m_engine;
6363
gcroot<window_ide ^> m_window;
6464
bool m_paused;
6565
bool m_in_idle;

src/editors/xrWeatherEditor/property_file_name_value_shared_str.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
using System::String;
1313

14-
property_file_name_value_shared_str::property_file_name_value_shared_str(editor::engine* engine, shared_str& value,
14+
property_file_name_value_shared_str::property_file_name_value_shared_str(editor::engine_base* engine, shared_str& value,
1515
System::String ^ DefaultExt_, System::String ^ Filter_, System::String ^ InitialDirectory_, System::String ^ Title_,
1616
bool remove_extension)
1717
: inherited(engine, value), DefaultExt(DefaultExt_), Filter(Filter_), InitialDirectory(InitialDirectory_),

src/editors/xrWeatherEditor/property_file_name_value_shared_str.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ref class property_file_name_value_shared_str : public property_string_shared_st
1919
typedef property_string_shared_str inherited;
2020

2121
public:
22-
property_file_name_value_shared_str(editor::engine* engine, shared_str& value, System::String ^ DefaultExt_,
22+
property_file_name_value_shared_str(editor::engine_base* engine, shared_str& value, System::String ^ DefaultExt_,
2323
System::String ^ Filter_, System::String ^ InitialDirectory_, System::String ^ Title_, bool remove_extension);
2424

2525
virtual System::String ^ default_extension();

src/editors/xrWeatherEditor/property_holder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
using Flobbster::Windows::Forms::PropertySpec;
1414
using System::String;
1515
using XRay::Editor::property_holder_collection;
16-
using editor::engine;
16+
using editor::engine_base;
1717
using XRay::Editor::property_holder_holder;
1818

1919
typedef property_holder::collection_type collection_type;
2020

21-
property_holder::property_holder(editor::engine* engine, LPCSTR display_name, property_holder_collection* collection,
21+
property_holder::property_holder(editor::engine_base* engine, LPCSTR display_name, property_holder_collection* collection,
2222
XRay::Editor::property_holder_holder* holder)
2323
: m_engine(engine), m_display_name(to_string(display_name)), m_collection(collection), m_holder(holder),
2424
m_disposing(false)
@@ -53,7 +53,7 @@ void property_holder::on_dispose()
5353
}
5454

5555
property_container ^ property_holder::container() { return (m_container); }
56-
engine& property_holder::engine()
56+
engine_base& property_holder::engine()
5757
{
5858
VERIFY(m_engine);
5959
return (*m_engine);

src/editors/xrWeatherEditor/property_holder.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ ref class property_holder_converter;
1717

1818
namespace editor
1919
{
20-
class engine;
20+
class engine_base;
2121
//class property_holder_collection;
2222
}
2323

2424

2525
class property_holder : public XRay::Editor::property_holder_base
2626
{
2727
public:
28-
property_holder(editor::engine* engine, LPCSTR display_name, XRay::Editor::property_holder_collection* collection,
28+
property_holder(editor::engine_base* engine, LPCSTR display_name, XRay::Editor::property_holder_collection* collection,
2929
XRay::Editor::property_holder_holder* holder);
3030
virtual ~property_holder();
3131
void on_dispose();
3232
property_container ^ container();
33-
editor::engine& engine();
33+
editor::engine_base& engine();
3434

3535
public:
3636
virtual XRay::Editor::property_holder_holder* holder();
@@ -209,7 +209,7 @@ class property_holder : public XRay::Editor::property_holder_base
209209
gcroot<property_container ^> m_container;
210210
gcroot<System::String ^> m_display_name;
211211
collection_type* m_collection;
212-
editor::engine* m_engine;
212+
editor::engine_base* m_engine;
213213
XRay::Editor::property_holder_holder* m_holder;
214214
bool m_disposing;
215215
}; // class property_holder

src/editors/xrWeatherEditor/property_string_shared_str.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "property_string_shared_str.hpp"
1111
#include "engine_include.hpp"
1212

13-
property_string_shared_str::property_string_shared_str(editor::engine* engine, shared_str& value)
13+
property_string_shared_str::property_string_shared_str(editor::engine_base* engine, shared_str& value)
1414
: m_engine(engine), m_value(&value)
1515
{
1616
}

0 commit comments

Comments
 (0)