git mv Code\Sandbox\Plugins Code/Editor/Plugins
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
+95
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(Q_MOC_RUN)
|
||||
#include <QMainWindow>
|
||||
|
||||
#include <AzCore/Serialization/SerializeContext.h>
|
||||
#include <AzToolsFramework/Entity/EditorEntityContextBus.h>
|
||||
#endif
|
||||
|
||||
class QObjectPropertyModel;
|
||||
class PropertyInfo;
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
class Entity;
|
||||
}
|
||||
|
||||
namespace AzToolsFramework
|
||||
{
|
||||
class EntityOutlinerWidget;
|
||||
}
|
||||
|
||||
class OutlinerWidget;
|
||||
|
||||
// This is the shell class to interface between Qt and the Sandbox. All Sandbox implementation is retained in an inherited class.
|
||||
class QComponentEntityEditorOutlinerWindow
|
||||
: public QMainWindow
|
||||
, public ISystemEventListener
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit QComponentEntityEditorOutlinerWindow(QWidget* parent = 0);
|
||||
~QComponentEntityEditorOutlinerWindow();
|
||||
|
||||
void Init();
|
||||
|
||||
// Used to receive events from widgets where SIGNALS aren't available or implemented yet.
|
||||
// Required override.
|
||||
void OnSystemEvent(ESystemEvent event, UINT_PTR wparam, UINT_PTR lparam) override;
|
||||
|
||||
// you are required to implement this to satisfy the unregister/registerclass requirements on "AzToolsFramework::RegisterViewPane"
|
||||
// make sure you pick a unique GUID
|
||||
static const GUID& GetClassID()
|
||||
{
|
||||
// {A2B58C0B-811A-4773-A057-A02D4BB9A293}
|
||||
static const GUID guid =
|
||||
{
|
||||
0xA2B58C0B, 0x811A, 0x4773, { 0xa0, 0x57, 0xa0, 0x2d, 0x4b, 0xb9, 0xa2, 0x93 }
|
||||
};
|
||||
return guid;
|
||||
}
|
||||
|
||||
private:
|
||||
OutlinerWidget* m_outlinerWidget;
|
||||
};
|
||||
|
||||
// This is the shell class to interface between Qt and the Sandbox. All Sandbox implementation is retained in an inherited class.
|
||||
class QEntityOutlinerWindow
|
||||
: public QMainWindow
|
||||
, public ISystemEventListener
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit QEntityOutlinerWindow(QWidget* parent = 0);
|
||||
~QEntityOutlinerWindow();
|
||||
|
||||
void Init();
|
||||
|
||||
// Used to receive events from widgets where SIGNALS aren't available or implemented yet.
|
||||
// Required override.
|
||||
void OnSystemEvent(ESystemEvent event, UINT_PTR wparam, UINT_PTR lparam) override;
|
||||
|
||||
// you are required to implement this to satisfy the unregister/registerclass requirements on "AzToolsFramework::RegisterViewPane"
|
||||
// make sure you pick a unique GUID
|
||||
static const GUID& GetClassID()
|
||||
{
|
||||
// {CEE50D0E-46A8-4CB4-9C5F-DCD374A78032}
|
||||
static const GUID guid =
|
||||
{
|
||||
0xcee50d0e, 0x46a8, 0x4cb4, { 0x9c, 0x5f, 0xdc, 0xd3, 0x74, 0xa7, 0x80, 0x32 }
|
||||
};
|
||||
return guid;
|
||||
}
|
||||
|
||||
private:
|
||||
AzToolsFramework::EntityOutlinerWidget* m_outlinerWidget;
|
||||
};
|
||||
Reference in New Issue
Block a user