delete MEWindowsRequestBus
Signed-off-by: Dayo Lawal <lawalfua@amazon.com>
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ namespace AtomToolsFramework
|
||||
{
|
||||
class AtomToolsMainWindow
|
||||
: public AzQtComponents::DockMainWindow
|
||||
, protected AtomToolsFramework::AtomToolsMainWindowRequestBus::Handler
|
||||
, protected AtomToolsMainWindowRequestBus::Handler
|
||||
{
|
||||
public:
|
||||
AtomToolsMainWindow(QWidget* parent = 0);
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ namespace AtomToolsFramework
|
||||
//! Get a list of registered docked widget names
|
||||
virtual AZStd::vector<AZStd::string> GetDockWidgetNames() const = 0;
|
||||
|
||||
//! Resizes the Material Editor window to achieve a requested size for the viewport render target.
|
||||
//! Resizes the main window to achieve a requested size for the viewport render target.
|
||||
//! (This indicates the size of the render target, not the desktop-scaled QT widget size).
|
||||
virtual void ResizeViewportRenderTarget(uint32_t width, uint32_t height) {};
|
||||
|
||||
|
||||
-64
@@ -1,64 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AzCore/EBus/EBus.h>
|
||||
#include <AzCore/std/containers/vector.h>
|
||||
#include <AzCore/std/string/string.h>
|
||||
|
||||
class QWidget;
|
||||
|
||||
namespace MaterialEditor
|
||||
{
|
||||
//! MaterialEditorWindowRequestBus provides
|
||||
class MaterialEditorWindowRequests
|
||||
: public AZ::EBusTraits
|
||||
{
|
||||
public:
|
||||
static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
|
||||
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
|
||||
|
||||
//! Bring main window to foreground
|
||||
virtual void ActivateWindow() = 0;
|
||||
|
||||
//! Add dockable widget in main window
|
||||
//! @param name title of the dockable window
|
||||
//! @param widget docked window content
|
||||
//! @param area location of docked window corresponding to Qt::DockWidgetArea
|
||||
//! @param orientation orientation of docked window corresponding to Qt::Orientation
|
||||
virtual bool AddDockWidget(const AZStd::string& name, QWidget* widget, uint32_t area, uint32_t orientation) = 0;
|
||||
|
||||
//! Destroy dockable widget in main window
|
||||
//! @param name title of the dockable window
|
||||
virtual void RemoveDockWidget(const AZStd::string& name) = 0;
|
||||
|
||||
//! Show or hide dockable widget in main window
|
||||
//! @param name title of the dockable window
|
||||
virtual void SetDockWidgetVisible(const AZStd::string& name, bool visible) = 0;
|
||||
|
||||
//! Determine visibility of dockable widget in main window
|
||||
//! @param name title of the dockable window
|
||||
virtual bool IsDockWidgetVisible(const AZStd::string& name) const = 0;
|
||||
|
||||
//! Get a list of registered docked widget names
|
||||
virtual AZStd::vector<AZStd::string> GetDockWidgetNames() const = 0;
|
||||
|
||||
//! Resizes the Material Editor window to achieve a requested size for the viewport render target.
|
||||
//! (This indicates the size of the render target, not the desktop-scaled QT widget size).
|
||||
virtual void ResizeViewportRenderTarget(uint32_t width, uint32_t height) = 0;
|
||||
|
||||
//! Forces the viewport's render target to use the given resolution, ignoring the size of the viewport widget.
|
||||
virtual void LockViewportRenderTargetSize(uint32_t width, uint32_t height) = 0;
|
||||
|
||||
//! Releases the viewport's render target resolution lock, allowing it to match the viewport widget again.
|
||||
virtual void UnlockViewportRenderTargetSize() = 0;
|
||||
};
|
||||
using MaterialEditorWindowRequestBus = AZ::EBus<MaterialEditorWindowRequests>;
|
||||
|
||||
} // namespace MaterialEditor
|
||||
Reference in New Issue
Block a user