4 #ifndef pqAnimationTimeWidget_h
5 #define pqAnimationTimeWidget_h
7 #include "pqComponentsModule.h"
13 #include <QScopedPointer>
32 Q_PROPERTY(QString playMode READ playMode WRITE setPlayMode NOTIFY playModeChanged)
33 Q_PROPERTY(
int numberOfFrames READ numberOfFrames WRITE setNumberOfFrames)
34 Q_PROPERTY(
double startTime READ startTime WRITE setStartTime)
35 Q_PROPERTY(
double endTime READ endTime WRITE setEndTime)
36 Q_PROPERTY(QString timeLabel READ timeLabel WRITE setTimeLabel)
37 Q_PROPERTY(QList<QVariant> timestepValues READ timestepValues WRITE setTimestepValues)
39 typedef QWidget Superclass;
62 void setTimestepValues(const QList<QVariant>& list);
63 const QList<QVariant>& timestepValues() const;
70 void setStartTime(
double start);
71 double startTime() const;
78 void setEndTime(
double end);
79 double endTime() const;
86 void setNumberOfFrames(
int nbOfFrame);
87 int numberOfFrames() const;
93 void setCurrentTime(
double t);
105 int precision() const;
111 void setPlayMode(const QString& mode);
112 QString playMode() const;
119 void setTimeLabel(const QString& val);
120 QString timeLabel() const;
124 void playModeChanged();
140 void setPrecision(
int precision);
152 void updateCurrentTime(
double t);
158 QScopedPointer<pqInternals> Internals;