1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- class CTrackViewSequence;
- #if !defined(Q_MOC_RUN)
- #include <QDialog>
- #include <QScopedPointer>
- #endif
- namespace Ui {
- class CTVSequenceProps;
- }
- class CTVSequenceProps
- : public QDialog
- {
- Q_OBJECT
- public:
- CTVSequenceProps(CTrackViewSequence* pSequence, float fps, QWidget* pParent = nullptr); // standard constructor
- ~CTVSequenceProps();
- private:
- enum SequenceTimeUnit
- {
- Seconds = 0,
- Frames
- };
- CTrackViewSequence* m_pSequence;
- virtual bool OnInitDialog();
- virtual void OnOK();
- void MoveScaleKeys();
- float m_FPS;
- int m_outOfRange;
- SequenceTimeUnit m_timeUnit;
- QScopedPointer<Ui::CTVSequenceProps> ui;
- public slots:
- void OnBnClickedToFrames(bool);
- void OnBnClickedToSeconds(bool);
- private slots:
- void ToggleCutsceneOptions(bool);
- void UpdateSequenceProps(const QString& name);
- };
|