ImagePreviewerFactory.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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 <AzCore/Memory/SystemAllocator.h>
  10. #include <AzToolsFramework/AssetBrowser/Previewer/PreviewerFactory.h>
  11. #include <QString>
  12. namespace ImageProcessingAtom
  13. {
  14. class ImagePreviewerFactory final
  15. : public AzToolsFramework::AssetBrowser::PreviewerFactory
  16. {
  17. public:
  18. AZ_CLASS_ALLOCATOR(ImagePreviewerFactory, AZ::SystemAllocator);
  19. ImagePreviewerFactory() = default;
  20. ~ImagePreviewerFactory() = default;
  21. //! AzToolsFramework::AssetBrowser::PreviewerFactory overrides
  22. AzToolsFramework::AssetBrowser::Previewer* CreatePreviewer(QWidget* parent = nullptr) const override;
  23. bool IsEntrySupported(const AzToolsFramework::AssetBrowser::AssetBrowserEntry* entry) const override;
  24. const QString& GetName() const override;
  25. private:
  26. QString m_name = "ImagePreviewer";
  27. };
  28. } //namespace ImageProcessingAtom