From 22a6f0493b70e714736ab1e84d6082f28c09d7a3 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 5 Apr 2010 13:10:45 +0000 Subject: [PATCH] 0020713: [CEA 396] VISU frame rate --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 6 +++--- src/VISUGUI/VisuGUI_TimeAnimation.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 7198e984..a7bdbcfb 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -62,6 +62,7 @@ #include "VISU_Actor.h" #include +#include #include "SalomeApp_Study.h" #include "LightApp_Application.h" @@ -95,7 +96,6 @@ #include #include #include -#include #include @@ -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); diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.h b/src/VISUGUI/VisuGUI_TimeAnimation.h index 8c4514a0..44d6de0c 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.h +++ b/src/VISUGUI/VisuGUI_TimeAnimation.h @@ -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; -- 2.39.2