1 // File : VisuGUI_TimeAnimation.h
2 // Created : 28 / 03 / 2003
3 // Author : Vitaly SMETANNIKOV
6 // Copyright : Open CASCADE
8 #ifndef VISUGUI_TIMEANIMATION_H
9 #define VISUGUI_TIMEANIMATION_H
13 #include <qcombobox.h>
14 #include <qtoolbutton.h>
17 #include "VisuGUI_ScalarBarDlg.h"
19 class VISU_TimeAnimation;
23 * Auxilliary class for presentations definition
25 class SetupDlg: public QDialog {
29 SetupDlg(QWidget* theParent, VISU_TimeAnimation* theAnimator);
33 void onFieldChange(int theIndex);
34 void onTypeChanged(int theIndex);
35 void onScalarBarDlg();
36 void onPreferencesDlg();
37 void onRangeCheck(bool theCheck);
38 void onMinValue(double theVal);
39 void onMaxValue(double theVal);
42 VISU_TimeAnimation* myAnimator;
44 QComboBox* myTypeCombo;
45 QPushButton* myPropBtn;
46 QCheckBox* myUseRangeChk;
47 QAD_SpinBoxDbl* myMinVal;
48 QAD_SpinBoxDbl* myMaxVal;
53 class VisuGUI_TimeAnimationDlg: public QDialog
57 VisuGUI_TimeAnimationDlg(SALOMEDS::Study_var theStudy);
58 ~VisuGUI_TimeAnimationDlg();
60 void addField(SALOMEDS::SObject_var theField);
64 virtual void closeEvent(QCloseEvent* theEvent);
68 void onTypeChange(int index);
71 void onForvardPressed();
73 void onFirstPressed();
75 void onFrameChanged(int index);
77 void onSpeedChange(double theSpeed);
78 void onExecution(long theNewFrame, double theTime);
83 QComboBox* myTypeCombo;
84 QPushButton* myPropBtn;
85 QToolButton* myPlayBtn;
89 SALOMEDS::Study_var myStudy;
91 VISU_TimeAnimation* myAnimator;
92 QCheckBox* mySaveCheck;
93 QLineEdit* myPathEdit;
95 #endif //VISUGUI_TIMEANIMATION_H