Merge EditorAction_Log_Copy and Clear into EditorAction_Log
This commit is contained in:
parent
e913cde094
commit
8a2d118641
|
|
@ -3,10 +3,9 @@
|
|||
#include <NazaraEditor/Core/Core.hpp>
|
||||
#include <NazaraEditor/Core/Application/Action.hpp>
|
||||
#include <NazaraEditor/Core/Application/ActionStack.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Level.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Log_Clear.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Log_CopyToClipboard.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Editor.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Level.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Log.hpp>
|
||||
#include <NazaraEditor/Core/Application/BaseApplication.hpp>
|
||||
#include <NazaraEditor/Core/Application/EditorLogger.hpp>
|
||||
#include <NazaraEditor/Core/Application/Level.hpp>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,15 @@
|
|||
|
||||
namespace Nz
|
||||
{
|
||||
class NAZARAEDITOR_CORE_API EditorAction_Log_Clear final
|
||||
: public EditorAction
|
||||
{
|
||||
EDITORACTION_BODY(EditorAction_Log_Clear, false);
|
||||
|
||||
public:
|
||||
void Execute() override;
|
||||
};
|
||||
|
||||
class NAZARAEDITOR_CORE_API EditorAction_Log_CopyToClipboard final
|
||||
: public EditorAction
|
||||
{
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <NazaraEditor/Core/Application/Action.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
class NAZARAEDITOR_CORE_API EditorAction_Log_Clear final
|
||||
: public EditorAction
|
||||
{
|
||||
EDITORACTION_BODY(EditorAction_Log_Clear, false);
|
||||
|
||||
public:
|
||||
void Execute() override;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Log_CopyToClipboard.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Log.hpp>
|
||||
#include <NazaraEditor/Core/Application/BaseApplication.hpp>
|
||||
#include <NazaraEditor/Core/Application/EditorLogger.hpp>
|
||||
|
||||
#include <Nazara/Platform.hpp>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
void EditorAction_Log_Clear::Execute()
|
||||
{
|
||||
Nz::EditorBaseApplication::Instance()->GetLogger().Clear();
|
||||
}
|
||||
|
||||
void EditorAction_Log_CopyToClipboard::Execute()
|
||||
{
|
||||
auto& lines = Nz::EditorBaseApplication::Instance()->GetLogger().GetLog();
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Log_Clear.hpp>
|
||||
#include <NazaraEditor/Core/Application/BaseApplication.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
void EditorAction_Log_Clear::Execute()
|
||||
{
|
||||
Nz::EditorBaseApplication::Instance()->GetLogger().Clear();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue