Mercurial > hg > svgui
comparison widgets/ItemEditDialog.h @ 904:e0f08e108064 cxx11
Move to using double rather than float for floating-point calculations (float only for storage); more build fixes
author | Chris Cannam |
---|---|
date | Mon, 09 Mar 2015 12:02:10 +0000 |
parents | e4773943c9c1 |
children | 2564d0865feb |
comparison
equal
deleted
inserted
replaced
903:1757933ce5a7 | 904:e0f08e108064 |
---|---|
35 ShowDuration = 1 << 1, | 35 ShowDuration = 1 << 1, |
36 ShowValue = 1 << 2, | 36 ShowValue = 1 << 2, |
37 ShowText = 1 << 3 | 37 ShowText = 1 << 3 |
38 }; | 38 }; |
39 | 39 |
40 ItemEditDialog(int sampleRate, int options, QString valueUnits = "", | 40 ItemEditDialog(sv_samplerate_t sampleRate, int options, QString valueUnits = "", |
41 QWidget *parent = 0); | 41 QWidget *parent = 0); |
42 | 42 |
43 void setFrameTime(int frame); | 43 void setFrameTime(sv_frame_t frame); |
44 int getFrameTime() const; | 44 sv_frame_t getFrameTime() const; |
45 | 45 |
46 void setRealTime(RealTime rt); | 46 void setRealTime(RealTime rt); |
47 RealTime getRealTime() const; | 47 RealTime getRealTime() const; |
48 | 48 |
49 void setFrameDuration(int frame); | 49 void setFrameDuration(sv_frame_t frame); |
50 int getFrameDuration() const; | 50 sv_frame_t getFrameDuration() const; |
51 | 51 |
52 void setRealDuration(RealTime rt); | 52 void setRealDuration(RealTime rt); |
53 RealTime getRealDuration() const; | 53 RealTime getRealDuration() const; |
54 | 54 |
55 void setValue(float value); | 55 void setValue(float value); |
57 | 57 |
58 void setText(QString text); | 58 void setText(QString text); |
59 QString getText() const; | 59 QString getText() const; |
60 | 60 |
61 protected slots: | 61 protected slots: |
62 void frameTimeChanged(int); | 62 void frameTimeChanged(sv_frame_t); |
63 void realTimeSecsChanged(int); | 63 void realTimeSecsChanged(int); |
64 void realTimeUSecsChanged(int); | 64 void realTimeUSecsChanged(int); |
65 void frameDurationChanged(int); | 65 void frameDurationChanged(sv_frame_t); |
66 void realDurationSecsChanged(int); | 66 void realDurationSecsChanged(int); |
67 void realDurationUSecsChanged(int); | 67 void realDurationUSecsChanged(int); |
68 void valueChanged(double); | 68 void valueChanged(double); |
69 void textChanged(QString); | 69 void textChanged(QString); |
70 void reset(); | 70 void reset(); |
71 | 71 |
72 protected: | 72 protected: |
73 int m_sampleRate; | 73 sv_samplerate_t m_sampleRate; |
74 int m_defaultFrame; | 74 sv_frame_t m_defaultFrame; |
75 int m_defaultDuration; | 75 sv_frame_t m_defaultDuration; |
76 float m_defaultValue; | 76 float m_defaultValue; |
77 QString m_defaultText; | 77 QString m_defaultText; |
78 QSpinBox *m_frameTimeSpinBox; | 78 QSpinBox *m_frameTimeSpinBox; |
79 QSpinBox *m_realTimeSecsSpinBox; | 79 QSpinBox *m_realTimeSecsSpinBox; |
80 QSpinBox *m_realTimeUSecsSpinBox; | 80 QSpinBox *m_realTimeUSecsSpinBox; |