TVSequenceProps.h 1.1 KB

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