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 #include "SALOMEconfig.h"
23 #include CORBA_SERVER_HEADER(SALOMEDS)
24 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
25 #include CORBA_CLIENT_HEADER(VISU_Gen)
27 class VISU_TimeAnimation;
30 * Auxilliary class for presentations definition
32 class SetupDlg: public QDialog {
36 SetupDlg(QWidget* theParent, VISU_TimeAnimation* theAnimator);
40 void onFieldChange(int theIndex);
41 void onTypeChanged(int theIndex);
42 void onScalarBarDlg();
43 void onPreferencesDlg();
44 void onRangeCheck(bool theCheck);
45 void onMinValue(double theVal);
46 void onMaxValue(double theVal);
49 VISU_TimeAnimation* myAnimator;
51 QComboBox* myTypeCombo;
52 QPushButton* myPropBtn;
53 QCheckBox* myUseRangeChk;
54 QAD_SpinBoxDbl* myMinVal;
55 QAD_SpinBoxDbl* myMaxVal;
60 class VisuGUI_TimeAnimationDlg: public QDialog
64 VisuGUI_TimeAnimationDlg(SALOMEDS::Study_var theStudy);
65 ~VisuGUI_TimeAnimationDlg();
67 void addField(SALOMEDS::SObject_var theField);
71 virtual void closeEvent(QCloseEvent* theEvent);
75 void onTypeChange(int index);
78 void onForvardPressed();
80 void onFirstPressed();
82 void onFrameChanged(int index);
84 void onSpeedChange(double theSpeed);
85 void onExecution(long theNewFrame, double theTime);
91 QComboBox* myTypeCombo;
92 QPushButton* myPropBtn;
93 QToolButton* myPlayBtn;
95 QPushButton* mySetupBtn;
96 QPushButton* myGenBtn;
99 SALOMEDS::Study_var myStudy;
101 VISU_TimeAnimation* myAnimator;
102 QCheckBox* mySaveCheck;
103 QLineEdit* myPathEdit;
105 QCloseEvent* myEvent;
107 #endif //VISUGUI_TIMEANIMATION_H