FBXExporterDialog.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_FBXEXPORTERDIALOG_H
  9. #define CRYINCLUDE_EDITOR_FBXEXPORTERDIALOG_H
  10. #pragma once
  11. #if !defined(Q_MOC_RUN)
  12. #include "Resource.h"
  13. #include <QDialog>
  14. #endif
  15. namespace Ui
  16. {
  17. class FBXExporterDialog;
  18. }
  19. class CFBXExporterDialog
  20. : public QDialog
  21. {
  22. Q_OBJECT
  23. public:
  24. CFBXExporterDialog (bool bDisplayOnlyFPSSetting = false, QWidget* pParent = nullptr);
  25. ~CFBXExporterDialog();
  26. float GetFPS() const;
  27. bool GetExportCoordsLocalToTheSelectedObject() const;
  28. bool GetExportOnlyPrimaryCamera() const;
  29. void SetExportLocalCoordsCheckBoxEnable(bool checked);
  30. int exec() override;
  31. protected:
  32. void OnFPSChange();
  33. void SetExportLocalToTheSelectedObjectCheckBox();
  34. void SetExportOnlyPrimaryCameraCheckBox();
  35. void accept() override;
  36. bool m_bDisplayOnlyFPSSetting;
  37. private:
  38. QScopedPointer<Ui::FBXExporterDialog> m_ui;
  39. };
  40. #endif // CRYINCLUDE_EDITOR_FBXEXPORTERDIALOG_H