ResolutionSettingWidget.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 <AzCore/Memory/SystemAllocator.h>
  11. #include <Source/Editor/ResolutionSettingItemWidget.h>
  12. AZ_PUSH_DISABLE_WARNING(4251 4800, "-Wunknown-warning-option") // disable warnings spawned by QT
  13. #include <QWidget>
  14. #include <QListWidget>
  15. AZ_POP_DISABLE_WARNING
  16. #endif
  17. namespace Ui
  18. {
  19. class ResolutionSettingWidget;
  20. }
  21. namespace ImageProcessingAtomEditor
  22. {
  23. class ResolutionSettingWidget
  24. : public QWidget
  25. {
  26. Q_OBJECT
  27. public:
  28. AZ_CLASS_ALLOCATOR(ResolutionSettingWidget, AZ::SystemAllocator);
  29. explicit ResolutionSettingWidget(ResoultionWidgetType type, EditorTextureSetting& texureSetting, QWidget* parent = nullptr);
  30. ~ResolutionSettingWidget();
  31. private:
  32. QScopedPointer<Ui::ResolutionSettingWidget> m_ui;
  33. ResoultionWidgetType m_type;
  34. EditorTextureSetting* m_textureSetting;
  35. };
  36. } //namespace ImageProcessingAtomEditor