3
0

ImagePopup.h 841 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. #if !defined(Q_MOC_RUN)
  10. #include <QDialog>
  11. #include <AzCore/Memory/SystemAllocator.h>
  12. #include <AzQtComponents/Components/StyledDialog.h>
  13. #endif
  14. namespace Ui
  15. {
  16. class ImagePopup;
  17. }
  18. namespace ImageProcessingAtomEditor
  19. {
  20. class ImagePopup
  21. : public QDialog
  22. {
  23. Q_OBJECT
  24. public:
  25. AZ_CLASS_ALLOCATOR(ImagePopup, AZ::SystemAllocator);
  26. explicit ImagePopup(QImage previewImage, QWidget* parent = nullptr);
  27. ~ImagePopup();
  28. private:
  29. QScopedPointer<Ui::ImagePopup> m_ui;
  30. QImage m_previewImage;
  31. };
  32. } //namespace ImageProcessingAtomEditor