MaterialBrowserInteractions.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzToolsFramework/AssetBrowser/AssetBrowserBus.h>
  10. #include <AzToolsFramework/SourceControl/SourceControlAPI.h>
  11. class QWidget;
  12. class QMenu;
  13. class QAction;
  14. namespace AzToolsFramework
  15. {
  16. namespace AssetBrowser
  17. {
  18. class AssetBrowserEntry;
  19. class SourceAssetBrowserEntry;
  20. class FolderAssetBrowserEntry;
  21. }
  22. }
  23. namespace AZ
  24. {
  25. namespace Render
  26. {
  27. class MaterialBrowserInteractions
  28. : public AzToolsFramework::AssetBrowser::AssetBrowserInteractionNotificationBus::Handler
  29. {
  30. public:
  31. AZ_CLASS_ALLOCATOR(MaterialBrowserInteractions, AZ::SystemAllocator);
  32. MaterialBrowserInteractions();
  33. ~MaterialBrowserInteractions();
  34. private:
  35. //! AssetBrowserInteractionNotificationBus::Handler overrides...
  36. void AddSourceFileOpeners(const char* fullSourceFileName, const AZ::Uuid& sourceUUID, AzToolsFramework::AssetBrowser::SourceFileOpenerList& openers) override;
  37. void AddSourceFileCreators(const char* fullSourceFolderName, const AZ::Uuid& sourceUUID, AzToolsFramework::AssetBrowser::SourceFileCreatorList& creators) override;
  38. bool HandlesSource(AZStd::string_view fileName) const;
  39. };
  40. } // namespace Render
  41. } // namespace AZ