1 // VISU VISUGUI : GUI of VISU component
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : VisuGUI_TimeAnimation.h
8 // Author : Vitaly SMETANNIKOV
11 #ifndef VISUGUI_TIMEANIMATION_H
12 #define VISUGUI_TIMEANIMATION_H
16 #include <qcombobox.h>
17 #include <qtoolbutton.h>
20 #include "VisuGUI_ScalarBarDlg.h"
22 class VISU_TimeAnimation;
26 * Auxilliary class for presentations definition
28 class SetupDlg: public QDialog {
32 SetupDlg(QWidget* theParent, VISU_TimeAnimation* theAnimator);
36 void onFieldChange(int theIndex);
37 void onTypeChanged(int theIndex);
38 void onScalarBarDlg();
39 void onPreferencesDlg();
40 void onRangeCheck(bool theCheck);
41 void onMinValue(double theVal);
42 void onMaxValue(double theVal);
45 VISU_TimeAnimation* myAnimator;
47 QComboBox* myTypeCombo;
48 QPushButton* myPropBtn;
49 QCheckBox* myUseRangeChk;
50 QAD_SpinBoxDbl* myMinVal;
51 QAD_SpinBoxDbl* myMaxVal;
56 class VisuGUI_TimeAnimationDlg: public QDialog
60 VisuGUI_TimeAnimationDlg(SALOMEDS::Study_var theStudy);
61 ~VisuGUI_TimeAnimationDlg();
63 void addField(SALOMEDS::SObject_var theField);
67 virtual void closeEvent(QCloseEvent* theEvent);
71 void onTypeChange(int index);
74 void onForvardPressed();
76 void onFirstPressed();
78 void onFrameChanged(int index);
80 void onSpeedChange(double theSpeed);
81 void onExecution(long theNewFrame, double theTime);
87 QComboBox* myTypeCombo;
88 QPushButton* myPropBtn;
89 QToolButton* myPlayBtn;
91 QPushButton* mySetupBtn;
92 QPushButton* myGenBtn;
95 SALOMEDS::Study_var myStudy;
97 VISU_TimeAnimation* myAnimator;
98 QCheckBox* mySaveCheck;
99 QLineEdit* myPathEdit;
101 QCloseEvent* myEvent;
103 #endif //VISUGUI_TIMEANIMATION_H