32 #ifndef pqAnimationTimeWidget_h 33 #define pqAnimationTimeWidget_h 35 #include "pqApplicationComponentsModule.h" 37 #include <QScopedPointer> 57 Q_PROPERTY(
double timeValue READ timeValue WRITE setTimeValue NOTIFY timeValueChanged)
58 Q_PROPERTY(
int timeStepCount READ timeStepCount WRITE setTimeStepCount)
59 Q_PROPERTY(QString playMode READ playMode WRITE setPlayMode)
60 Q_PROPERTY(
bool playModeReadOnly READ playModeReadOnly WRITE setPlayModeReadOnly)
61 Q_PROPERTY(QString timeLabel READ timeLabel WRITE setTimeLabel)
63 typedef QWidget Superclass;
70 vtkSMProxy* animationScene() const;
73 void setTimeValue(
double time);
74 double timeValue() const;
77 void setTimePrecision(
int val);
78 int timePrecision() const;
81 void setTimeStepCount(
int count);
82 int timeStepCount() const;
85 void setPlayMode(const QString& mode);
86 QString playMode() const;
90 void setPlayModeReadOnly(
bool val);
91 bool playModeReadOnly() const;
94 void setTimeLabel(const QString& val);
95 QString timeLabel() const;
97 void timeValueChanged();
98 void playModeChanged();
104 void setAnimationScene(vtkSMProxy* animationScene);
107 void updateTimestepCountLabelVisibility();
112 void timestepValueChanged();
115 Q_DISABLE_COPY(pqAnimationTimeWidget)
118 vtkSMProxy* timeKeeper() const;
121 QScopedPointer<pqInternals> Internals;