CustomResolutionDlg.h 816 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 a resolution info from users
  9. // Notice : Refer to ViewportTitleDlg.cpp for a use case.
  10. #pragma once
  11. #if !defined(Q_MOC_RUN)
  12. #include <QDialog>
  13. #endif
  14. namespace Ui
  15. {
  16. class CustomResolutionDlg;
  17. }
  18. class CCustomResolutionDlg
  19. : public QDialog
  20. {
  21. Q_OBJECT
  22. public:
  23. CCustomResolutionDlg(int w, int h, QWidget* pParent = nullptr);
  24. ~CCustomResolutionDlg();
  25. int GetWidth() const;
  26. int GetHeight() const;
  27. protected:
  28. void OnInitDialog();
  29. int m_wDefault, m_hDefault;
  30. QScopedPointer<Ui::CustomResolutionDlg> m_ui;
  31. };