CustomAspectRatioDlg.h 963 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. // Description : A dialog for getting an aspect ratio info from users
  9. // Notice : Refer to ViewportTitleDlg cpp for a use case
  10. #ifndef CRYINCLUDE_EDITOR_CUSTOMASPECTRATIODLG_H
  11. #define CRYINCLUDE_EDITOR_CUSTOMASPECTRATIODLG_H
  12. #pragma once
  13. #if !defined(Q_MOC_RUN)
  14. #include <QDialog>
  15. #endif
  16. namespace Ui
  17. {
  18. class CustomAspectRatioDlg;
  19. }
  20. class CCustomAspectRatioDlg
  21. : public QDialog
  22. {
  23. Q_OBJECT
  24. public:
  25. CCustomAspectRatioDlg(int x, int y, QWidget* pParent = nullptr);
  26. ~CCustomAspectRatioDlg();
  27. int GetX() const;
  28. int GetY() const;
  29. protected:
  30. void OnInitDialog();
  31. int m_xDefault, m_yDefault;
  32. QScopedPointer<Ui::CustomAspectRatioDlg> m_ui;
  33. };
  34. #endif // CRYINCLUDE_EDITOR_CUSTOMASPECTRATIODLG_H