1 #ifndef HISTORYKEEPER_H
2 #define HISTORYKEEPER_H
11 #include <QElapsedTimer>
17 #include <QDoubleSpinBox>
19 class HistoryKeeper :
public QObject
23 HistoryKeeper(
unsigned int maxStackSize_,
double minElapsedTime_);
24 HistoryKeeper(
unsigned int maxStackSize_,
double minElapsedTime_, QDoubleSpinBox *spin_);
25 HistoryKeeper(
unsigned int maxStackSize_,
double minElapsedTime_, QDoubleSpinBox *spin_, QSlider *slider_);
28 void setRecorded(
bool recorded);
31 void valueChanged(
double newValue);
35 virtual bool eventFilter(QObject *
object, QEvent *event);
43 void init(
unsigned int maxStackSize_,
double minElapsedTime_);
49 QTimer *mainLoopTimer;
50 QElapsedTimer *elapsedTimer;
51 double minElapsedTime;
65 #endif // HISTORYKEEPER_H