connect( mySlider, SIGNAL( sliderMoved( int ) ), SLOT( onSliderMoved( int ) ) );
connect( mySlider, SIGNAL( valueChanged( int ) ), SLOT( onValueChanged( int ) ) );
+ connect( mySpeedBox, SIGNAL( valueChanged( int ) ), SLOT( onSpeedChanged( int ) ) );
+
connect( myTimer, SIGNAL( timeout() ), SLOT( onTimeout() ) );
enableControls( false );
myMainWindow->Repaint();
}
+void VisuGUI_Slider::onSpeedChanged( int value )
+{
+ if(myPlayButton->isOn()){
+ int delay = int(5000.0 / double(mySpeedBox->value()));
+ myTimer->start( delay );
+ }
+}
+
void VisuGUI_Slider::onTimeout()
{
int value = mySlider->value();
virtual void onSliderMoved( int );
virtual void onValueChanged( int );
+ virtual void onSpeedChanged( int );
+
virtual void onTimeout();
private: