git mv Code\Sandbox\Plugins Code/Editor/Plugins
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
+86
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "ComponentEntityEditorPlugin_precompiled.h"
|
||||
|
||||
#include "CryEdit.h"
|
||||
#include "UI/QComponentEntityEditorOutlinerWindow.h"
|
||||
#include "UI/Outliner/OutlinerWidget.hxx"
|
||||
|
||||
#include <AzCore/Component/Entity.h>
|
||||
#include <AzCore/Component/ComponentApplicationBus.h>
|
||||
|
||||
#include <AzToolsFramework/UI/Outliner/EntityOutlinerWidget.hxx>
|
||||
|
||||
#include <QVBoxLayout>
|
||||
|
||||
QComponentEntityEditorOutlinerWindow::QComponentEntityEditorOutlinerWindow(QWidget* parent)
|
||||
: QMainWindow(parent)
|
||||
, m_outlinerWidget(nullptr)
|
||||
{
|
||||
gEnv->pSystem->GetISystemEventDispatcher()->RegisterListener(this);
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
QComponentEntityEditorOutlinerWindow::~QComponentEntityEditorOutlinerWindow()
|
||||
{
|
||||
gEnv->pSystem->GetISystemEventDispatcher()->RemoveListener(this);
|
||||
}
|
||||
|
||||
void QComponentEntityEditorOutlinerWindow::OnSystemEvent([[maybe_unused]] ESystemEvent event, [[maybe_unused]] UINT_PTR wparam, [[maybe_unused]] UINT_PTR lparam)
|
||||
{
|
||||
}
|
||||
|
||||
void QComponentEntityEditorOutlinerWindow::Init()
|
||||
{
|
||||
QVBoxLayout* layout = new QVBoxLayout();
|
||||
|
||||
m_outlinerWidget = new OutlinerWidget(nullptr);
|
||||
layout->addWidget(m_outlinerWidget);
|
||||
|
||||
QWidget* window = new QWidget();
|
||||
window->setLayout(layout);
|
||||
setCentralWidget(window);
|
||||
}
|
||||
|
||||
QEntityOutlinerWindow::QEntityOutlinerWindow(QWidget* parent)
|
||||
: QMainWindow(parent)
|
||||
, m_outlinerWidget(nullptr)
|
||||
{
|
||||
gEnv->pSystem->GetISystemEventDispatcher()->RegisterListener(this);
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
QEntityOutlinerWindow::~QEntityOutlinerWindow()
|
||||
{
|
||||
gEnv->pSystem->GetISystemEventDispatcher()->RemoveListener(this);
|
||||
}
|
||||
|
||||
void QEntityOutlinerWindow::OnSystemEvent([[maybe_unused]] ESystemEvent event, [[maybe_unused]] UINT_PTR wparam, [[maybe_unused]] UINT_PTR lparam)
|
||||
{
|
||||
}
|
||||
|
||||
void QEntityOutlinerWindow::Init()
|
||||
{
|
||||
QVBoxLayout* layout = new QVBoxLayout();
|
||||
|
||||
m_outlinerWidget = new AzToolsFramework::EntityOutlinerWidget(nullptr);
|
||||
layout->addWidget(m_outlinerWidget);
|
||||
|
||||
QWidget* window = new QWidget();
|
||||
window->setLayout(layout);
|
||||
setCentralWidget(window);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// End of context menu handling
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <UI/moc_QComponentEntityEditorOutlinerWindow.cpp>
|
||||
|
||||
Reference in New Issue
Block a user