]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0020713: [CEA 396] VISU frame rate V5_1_main_20100406
authorouv <ouv@opencascade.com>
Mon, 5 Apr 2010 13:10:45 +0000 (13:10 +0000)
committerouv <ouv@opencascade.com>
Mon, 5 Apr 2010 13:10:45 +0000 (13:10 +0000)
src/VISUGUI/VisuGUI_TimeAnimation.cxx
src/VISUGUI/VisuGUI_TimeAnimation.h

index 7198e984573300c9eb16cba99f40f347efedfad1..a7bdbcfb33dc98ee3af219ca79f562221af91ce5 100644 (file)
@@ -62,6 +62,7 @@
 #include "VISU_Actor.h"
 
 #include <SalomeApp_DoubleSpinBox.h>
+#include <SalomeApp_IntSpinBox.h>
 #include "SalomeApp_Study.h"
 #include "LightApp_Application.h"
 
@@ -95,7 +96,6 @@
 #include <QGroupBox>
 #include <QPushButton>
 #include <QLabel>
-#include <QSpinBox>
 
 #include <qwt_wheel.h>
 
@@ -1780,8 +1780,8 @@ VisuGUI_TimeAnimationDlg::VisuGUI_TimeAnimationDlg (VisuGUI* theModule,
   myFrequencyLbl->setEnabled(false);
   aSaveLay->addWidget(myFrequencyLbl, 5, 0, 1, 2);
 
-  myFrequencySpin = new QSpinBox(aSaveBox);
-  myFrequencySpin->setRange(1, 100);
+  myFrequencySpin = new SalomeApp_IntSpinBox(aSaveBox);
+  VISU::initSpinBox(myFrequencySpin, 1, 100, 1);
   myFrequencySpin->setValue(myAnimator->getTimeStampFrequency());
   myFrequencySpin->setEnabled(false);
   aSaveLay->addWidget(myFrequencySpin, 5, 2);
index 8c4514a03bc74db592fe46d31b37338d5b0078dc..44d6de0cfd309bcf06d2196c9c898b4a0969750f 100644 (file)
@@ -45,6 +45,7 @@
 
 class VisuGUI;
 class SalomeApp_Module;
+class SalomeApp_IntSpinBox;
 class VISU_TimeAnimation;
 
 namespace VISU
@@ -63,7 +64,6 @@ class QCheckBox;
 class QComboBox;
 class QGroupBox;
 class QToolButton;
-class QSpinBox;
 
 /*!
  * Auxilliary class for presentations definition
@@ -249,7 +249,7 @@ class VisuGUI_TimeAnimationDlg: public QDialog
     QLabel*      myPathAVILbl;
     QPushButton* myBrowseAVIBtn;
     QLabel*      myFrequencyLbl;
-    QSpinBox*    myFrequencySpin;
+    SalomeApp_IntSpinBox* myFrequencySpin;
 
     QPushButton* myPublishBtn;
     QPushButton* mySaveBtn;