Skip to content

Commit

Permalink
xrECore & xrEditor: restructure and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Mar 23, 2018
1 parent e70f89b commit b1b2982
Show file tree
Hide file tree
Showing 43 changed files with 243 additions and 324 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
#include "GameType.h"
#include "xrServerEntities/gametype_chooser.h"

namespace XRay
{
namespace ECore
{
namespace Props
namespace XRay::Editor::Controls
{
bool GameType::Run(pcstr title, GameTypeChooser* data)
{
Expand All @@ -30,6 +26,4 @@ System::Void GameType::buttonOk_Click(System::Object^ sender, System::EventArgs^
gameTypes->m_GameType.set(eGameIDArtefactHunt, checkAfHunt->Checked);
gameTypes->m_GameType.set(eGameIDCaptureTheArtefact, checkCTA->Checked);
}
} // namespace Props
} // namespace ECore
} // namespace XRay
} // namespace XRay::Editor::Controls
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
ref class GameType;
}
Expand All @@ -15,9 +15,9 @@ struct GameTypeChooser;

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
using namespace System;
using namespace System::ComponentModel;
Expand Down Expand Up @@ -154,6 +154,6 @@ private: System::Windows::Forms::Panel^ panel1;
}
#pragma endregion
};
} // namespace Props
} // namespace ECore
} // namespace Controls
} // namespace Editor
} // namespace XRay
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@

#include <sstream>

namespace XRay
{
namespace ECore
{
namespace Props
namespace XRay::Editor::Controls
{
void ItemList::AssignItems(ListItemsVec& newItems, bool fullExpand, bool fullSort /*= false*/)
{
Expand Down Expand Up @@ -126,6 +122,4 @@ void ItemList::AssignItems(ListItemsVec& newItems, bool fullExpand, bool fullSor

viewItems->EndUpdate();
}
} // namespace Props
} // namespace ECore
} // namespace XRay
} // namespace XRay::Editor::Controls
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
ref class ItemList;
}
Expand All @@ -16,9 +16,9 @@ using ListItemsVec = xr_vector<ListItem*>;

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
using namespace System;
using namespace System::ComponentModel;
Expand Down Expand Up @@ -125,6 +125,6 @@ private: System::ComponentModel::IContainer^ components;
}
#pragma endregion
};
} // namespace Props
} // namespace ECore
} // namespace Controls
} // namespace Editor
} // namespace XRay
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#include "pch.hpp"
#include "NumericVector.h"

namespace XRay
{
namespace ECore
{
namespace Props
namespace XRay::Editor::Controls
{
bool NumericVector::Run(pcstr title, Fvector* data, int decimal, Fvector* resetValue, Fvector* min, Fvector* max, int* X, int* Y)
{
Expand Down Expand Up @@ -118,6 +114,4 @@ System::Void NumericVector::OnValueChanged(System::Object^ sender, System::Event
if (checkImmediate->Checked)
buttonApply_Click(sender, e);
}
} // namespace Props
} // namespace ECore
} // namespace XRay
} // namespace XRay::Editor::Controls
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
ref class NumericVector;
}
Expand All @@ -17,9 +17,9 @@ using Fvector = _vector3<float>;

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
using namespace System;
using namespace System::ComponentModel;
Expand Down Expand Up @@ -212,6 +212,6 @@ private: System::Windows::Forms::Label^ labelZ;
}
#pragma endregion
};
} // namespace Props
} // namespace ECore
} // namespace Controls
} // namespace Editor
} // namespace XRay
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
ref class PropertiesList;
ref class ItemList;
Expand All @@ -14,9 +14,9 @@ ref class ItemList;

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
using namespace System;
using namespace System::ComponentModel;
Expand Down Expand Up @@ -62,6 +62,6 @@ private: ItemList^ itemList;
}
#pragma endregion
};
} // namespace Props
} // namespace ECore
} // namespace Controls
} // namespace Editor
} // namespace XRay
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,10 @@

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
ref class SelectItem;
}
}
}

namespace XRay
{
namespace ECore
{
namespace Props
{
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

public ref class SelectItem : public System::Windows::Forms::Form
{
public:
Expand Down Expand Up @@ -67,6 +49,6 @@ private: System::Windows::Forms::Panel^ panel1;
}
#pragma endregion
};
} // namespace Props
} // namespace ECore
} // namespace Controls
} // namespace Editor
} // namespace XRay
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ xr_token function_token[] =
{ nullptr, 0 }
};

namespace XRay
{
namespace ECore
{
namespace Props
namespace XRay::Editor::Controls
{
ShaderFunction::ShaderFunction(void)
{
Expand Down Expand Up @@ -180,6 +176,4 @@ void ShaderFunction::DrawGraph()

//pbDraw->Invalidate(); // Redraw everything just in case
}
} // namespace Props
} // namespace ECore
} // namespace XRay
} // namespace XRay::Editor::Controls
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
ref class ShaderFunction;
}
Expand All @@ -21,9 +21,9 @@ ref class Token;

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
using namespace System;
using namespace System::ComponentModel;
Expand Down Expand Up @@ -331,6 +331,6 @@ private: System::Windows::Forms::Button^ buttonCancel;
}
#pragma endregion
};
} // namespace Props
} // namespace ECore
} // namespace Controls
} // namespace Editor
} // namespace XRay
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
#include "pch.hpp"

#include "TextEdit.h"

namespace XRay
{
namespace ECore
{
namespace Props
namespace XRay::Editor::Controls
{
System::Void TextEdit::buttonClear_Click(System::Object^ sender, System::EventArgs^ e)
{
Expand Down Expand Up @@ -144,6 +139,4 @@ System::Void TextEdit::buttonSave_Click(System::Object^ sender, System::EventArg
toolStripStatusLabel3->Text = "Error: can't save file";

}
} // namespace Props
} // namespace ECore
} // namespace XRay
} // namespace XRay::Editor::Controls
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
#pragma once
namespace XRay
{
namespace ECore
{
namespace Props
{
ref class TextEdit;
}
}
}

namespace XRay
{
namespace ECore
namespace Editor
{
namespace Props
namespace Controls
{
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

public ref class TextEdit : public System::Windows::Forms::Form
{
using TOnApplyClick = fastdelegate::FastDelegate1<pcstr, bool>;
Expand Down Expand Up @@ -217,6 +204,6 @@ private: System::Windows::Forms::ToolStripStatusLabel^ toolStripStatusLabel3;
}
#pragma endregion
};
} // namespace Props
} // namespace ECore
} // namespace Controls
} // namespace Editor
} // namespace XRay
File renamed without changes.
4 changes: 2 additions & 2 deletions src/editors/xrECore/Core/ELog.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "pch.hpp"
#include "ELog.h"
#include "Props/WindowLog.h"
#include "Windows/WindowLog.h"

gcroot<EditorLog^> ELog;

using namespace XRay::ECore::Props;
using namespace XRay::Editor::Windows;

XRECORE_API void ELogCallback(void* context, pcstr message)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#include "WindowIDE.h"
#include "WindowView.h"
#include "WindowLog.h"
#include "DockPanelSerializer.h"
#include "Controls/DockPanelSerializer.h"

namespace XRay::ECore::Props
namespace XRay::Editor::Windows
{
void WindowIDE::Initialize()
{
Expand Down Expand Up @@ -40,4 +40,4 @@ WeifenLuo::WinFormsUI::Docking::IDockContent^ WindowIDE::reloadContent(System::S

return result;
}
} // namespace XRay::ECore::Props
} // namespace XRay::Editor::Windows
Loading

0 comments on commit b1b2982

Please sign in to comment.