TVSequenceProps.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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_TRACKVIEW_TVSEQUENCEPROPS_H
  9. #define CRYINCLUDE_EDITOR_TRACKVIEW_TVSEQUENCEPROPS_H
  10. #pragma once
  11. class CTrackViewSequence;
  12. #if !defined(Q_MOC_RUN)
  13. #include <QDialog>
  14. #include <QScopedPointer>
  15. #endif
  16. namespace Ui {
  17. class CTVSequenceProps;
  18. }
  19. class CTVSequenceProps
  20. : public QDialog
  21. {
  22. Q_OBJECT
  23. public:
  24. CTVSequenceProps(CTrackViewSequence* pSequence, float fps, QWidget* pParent = nullptr); // standard constructor
  25. ~CTVSequenceProps();
  26. private:
  27. enum SequenceTimeUnit
  28. {
  29. Seconds = 0,
  30. Frames
  31. };
  32. CTrackViewSequence* m_pSequence;
  33. virtual bool OnInitDialog();
  34. virtual void OnOK();
  35. void MoveScaleKeys();
  36. float m_FPS;
  37. int m_outOfRange;
  38. SequenceTimeUnit m_timeUnit;
  39. QScopedPointer<Ui::CTVSequenceProps> ui;
  40. public slots:
  41. void OnBnClickedToFrames(bool);
  42. void OnBnClickedToSeconds(bool);
  43. private slots:
  44. void ToggleCutsceneOptions(bool);
  45. void UpdateSequenceProps(const QString& name);
  46. };
  47. #endif // CRYINCLUDE_EDITOR_TRACKVIEW_TVSEQUENCEPROPS_H