LayoutConfigDialog.h 1012 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #ifndef CRYINCLUDE_EDITOR_LAYOUTCONFIGDIALOG_H
  9. #define CRYINCLUDE_EDITOR_LAYOUTCONFIGDIALOG_H
  10. #pragma once
  11. #if !defined(Q_MOC_RUN)
  12. #include "LayoutWnd.h"
  13. #include <QDialog>
  14. #endif
  15. namespace Ui {
  16. class CLayoutConfigDialog;
  17. }
  18. class LayoutConfigModel;
  19. // CLayoutConfigDialog dialog
  20. class CLayoutConfigDialog
  21. : public QDialog
  22. {
  23. Q_OBJECT
  24. public:
  25. CLayoutConfigDialog(QWidget* pParent = nullptr); // standard constructor
  26. virtual ~CLayoutConfigDialog();
  27. void SetLayout(EViewLayout layout);
  28. EViewLayout GetLayout() const { return m_layout; };
  29. // Dialog Data
  30. protected:
  31. virtual void OnOK();
  32. LayoutConfigModel* m_model;
  33. EViewLayout m_layout;
  34. QScopedPointer<Ui::CLayoutConfigDialog> ui;
  35. };
  36. #endif // CRYINCLUDE_EDITOR_LAYOUTCONFIGDIALOG_H