From 2ed07c2a6ad3937cd53f97cce159111cfd87a961 Mon Sep 17 00:00:00 2001 From: Dayo Lawal Date: Mon, 2 Aug 2021 23:09:28 -0500 Subject: [PATCH] delete MEWindowsRequestBus Signed-off-by: Dayo Lawal --- .../Window/AtomToolsMainWindow.h | 2 +- .../Window/AtomToolsMainWindowRequestBus.h | 2 +- .../Window/MaterialEditorWindowRequestBus.h | 64 ------------------- 3 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 Gems/Atom/Tools/MaterialEditor/Code/Include/Atom/Window/MaterialEditorWindowRequestBus.h diff --git a/Gems/Atom/Tools/AtomToolsFramework/Code/Include/AtomToolsFramework/Window/AtomToolsMainWindow.h b/Gems/Atom/Tools/AtomToolsFramework/Code/Include/AtomToolsFramework/Window/AtomToolsMainWindow.h index edb8ff4322..6b02bd1c06 100644 --- a/Gems/Atom/Tools/AtomToolsFramework/Code/Include/AtomToolsFramework/Window/AtomToolsMainWindow.h +++ b/Gems/Atom/Tools/AtomToolsFramework/Code/Include/AtomToolsFramework/Window/AtomToolsMainWindow.h @@ -23,7 +23,7 @@ namespace AtomToolsFramework { class AtomToolsMainWindow : public AzQtComponents::DockMainWindow - , protected AtomToolsFramework::AtomToolsMainWindowRequestBus::Handler + , protected AtomToolsMainWindowRequestBus::Handler { public: AtomToolsMainWindow(QWidget* parent = 0); diff --git a/Gems/Atom/Tools/AtomToolsFramework/Code/Include/AtomToolsFramework/Window/AtomToolsMainWindowRequestBus.h b/Gems/Atom/Tools/AtomToolsFramework/Code/Include/AtomToolsFramework/Window/AtomToolsMainWindowRequestBus.h index fd98b3b68b..ee21554844 100644 --- a/Gems/Atom/Tools/AtomToolsFramework/Code/Include/AtomToolsFramework/Window/AtomToolsMainWindowRequestBus.h +++ b/Gems/Atom/Tools/AtomToolsFramework/Code/Include/AtomToolsFramework/Window/AtomToolsMainWindowRequestBus.h @@ -48,7 +48,7 @@ namespace AtomToolsFramework //! Get a list of registered docked widget names virtual AZStd::vector 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) {}; diff --git a/Gems/Atom/Tools/MaterialEditor/Code/Include/Atom/Window/MaterialEditorWindowRequestBus.h b/Gems/Atom/Tools/MaterialEditor/Code/Include/Atom/Window/MaterialEditorWindowRequestBus.h deleted file mode 100644 index 6b62549684..0000000000 --- a/Gems/Atom/Tools/MaterialEditor/Code/Include/Atom/Window/MaterialEditorWindowRequestBus.h +++ /dev/null @@ -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 -#include -#include - -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 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; - -} // namespace MaterialEditor