Add time step slider to 3d views (#9695)

Add new toolbar with slider that controls visible timestep in the view
This commit is contained in:
jonjenssen
2023-01-18 22:59:06 +01:00
committed by GitHub
parent 85f1b004cb
commit 712bad97bd
5 changed files with 61 additions and 2 deletions

View File

@@ -377,6 +377,8 @@ void AnimationToolBar::slotUpdateAnimationGuiFromFrameIndex( int value )
m_timestepCombo->setCurrentIndex( value );
updateAnimationButtons();
connect( m_timestepCombo, SIGNAL( currentIndexChanged( int ) ), m_activeAnimationControl, SLOT( setCurrentFrame( int ) ) );
emit frameChanged( value );
}
} // End namespace caf

View File

@@ -72,6 +72,9 @@ public:
void setCurrentTimeStepIndex( int index );
signals:
void frameChanged( int frameIndex );
public slots:
void slotUpdateTimestepList( int frameCount );
void playPauseChanged();