text: /*===================================================================
  
  The Medical Imaging Interaction Toolkit (MITK)
  
  Copyright (c) German Cancer Research Center,
  Division of Medical and Biological Informatics.
  All rights reserved.
  
  This software is distributed WITHOUT ANY WARRANTY; without
  even the implied warranty of MERCHANTABILITY or FITNESS FOR
  A PARTICULAR PURPOSE.
  
  See LICENSE.txt or http://www.mitk.org for details.
  
  ===================================================================*/
  
  #ifndef QMITKPRIMITIVEMOVIENAVIGATORWIDGET_H_
  #define QMITKPRIMITIVEMOVIENAVIGATORWIDGET_H_
  
  #include <ui_QmitkPrimitiveMovieNavigatorWidget.h>
  #include "MitkQtWidgetsExtExports.h"
  #include <QWidget>
  #include <QTimer>
  
  class MitkQtWidgetsExt_EXPORT QmitkPrimitiveMovieNavigatorWidget : public QWidget
  {
      Q_OBJECT
  
  public:
      QmitkPrimitiveMovieNavigatorWidget( QWidget* parent = 0, Qt::WindowFlags fl = 0 );
      ~QmitkPrimitiveMovieNavigatorWidget();
  
      virtual int getTimerInterval();
  
  public slots:
      virtual void Refetch();
      virtual void SetStepper( mitk::Stepper * stepper );
      virtual void goButton_clicked();
      virtual void stopButton_clicked();
      virtual void spinBoxValueChanged(int value);
      virtual void setTimerInterval( int timerIntervalInMS );
  
  protected:
      Ui::QmitkPrimitiveMovieNavigator m_Controls;
      mitk::Stepper::Pointer m_Stepper;
      bool m_InRefetch;
      QTimer* m_Timer;
      int m_TimerIntervalInMS;
  
  private slots:
      virtual void next();
  
  };
  
  #endif
  
  