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 QtxDblSpinBox* myMinVal;
55 QtxDblSpinBox* myMaxVal;
59 //class SALOMEDSClient_Study;
60 //class SALOMEDSClient_SObject;
63 class VisuGUI_TimeAnimationDlg: public QDialog
67 VisuGUI_TimeAnimationDlg(QWidget* parent, _PTR(Study) theStudy);
68 ~VisuGUI_TimeAnimationDlg();
70 void addField(_PTR(SObject) theField);
74 virtual void closeEvent(QCloseEvent* theEvent);
78 void onTypeChange(int index);
81 void onForvardPressed();
83 void onFirstPressed();
85 void onWindowChanged(int index);
87 void onSpeedChange(double theSpeed);
88 void onExecution(long theNewFrame, double theTime);
94 QComboBox* myTypeCombo;
95 QPushButton* myPropBtn;
96 QToolButton* myPlayBtn;
98 QPushButton* mySetupBtn;
99 QPushButton* myGenBtn;
104 VISU_TimeAnimation* myAnimator;
105 QCheckBox* mySaveCheck;
106 QLineEdit* myPathEdit;
108 QCloseEvent* myEvent;
110 #endif //VISUGUI_TIMEANIMATION_H