Mercurial > hg > svgui
comparison layer/TimeInstantLayer.h @ 905:b66fb15de477 cxx11
Working through the float/double and int/sv_frame_t fixes
author | Chris Cannam |
---|---|
date | Mon, 09 Mar 2015 14:35:21 +0000 |
parents | 1d526ba11a24 |
children | 251dd0abc7b7 |
comparison
equal
deleted
inserted
replaced
904:e0f08e108064 | 905:b66fb15de477 |
---|---|
36 virtual void paint(View *v, QPainter &paint, QRect rect) const; | 36 virtual void paint(View *v, QPainter &paint, QRect rect) const; |
37 | 37 |
38 virtual QString getLabelPreceding(int) const; | 38 virtual QString getLabelPreceding(int) const; |
39 virtual QString getFeatureDescription(View *v, QPoint &) const; | 39 virtual QString getFeatureDescription(View *v, QPoint &) const; |
40 | 40 |
41 virtual bool snapToFeatureFrame(View *v, int &frame, | 41 virtual bool snapToFeatureFrame(View *v, sv_frame_t &frame, |
42 int &resolution, | 42 int &resolution, |
43 SnapType snap) const; | 43 SnapType snap) const; |
44 | 44 |
45 virtual void drawStart(View *v, QMouseEvent *); | 45 virtual void drawStart(View *v, QMouseEvent *); |
46 virtual void drawDrag(View *v, QMouseEvent *); | 46 virtual void drawDrag(View *v, QMouseEvent *); |
54 virtual void editDrag(View *v, QMouseEvent *); | 54 virtual void editDrag(View *v, QMouseEvent *); |
55 virtual void editEnd(View *v, QMouseEvent *); | 55 virtual void editEnd(View *v, QMouseEvent *); |
56 | 56 |
57 virtual bool editOpen(View *, QMouseEvent *); | 57 virtual bool editOpen(View *, QMouseEvent *); |
58 | 58 |
59 virtual void moveSelection(Selection s, int newStartFrame); | 59 virtual void moveSelection(Selection s, sv_frame_t newStartFrame); |
60 virtual void resizeSelection(Selection s, Selection newSize); | 60 virtual void resizeSelection(Selection s, Selection newSize); |
61 virtual void deleteSelection(Selection s); | 61 virtual void deleteSelection(Selection s); |
62 | 62 |
63 virtual void copy(View *v, Selection s, Clipboard &to); | 63 virtual void copy(View *v, Selection s, Clipboard &to); |
64 virtual bool paste(View *v, const Clipboard &from, int frameOffset, | 64 virtual bool paste(View *v, const Clipboard &from, sv_frame_t frameOffset, |
65 bool interactive); | 65 bool interactive); |
66 | 66 |
67 virtual const Model *getModel() const { return m_model; } | 67 virtual const Model *getModel() const { return m_model; } |
68 void setModel(SparseOneDimensionalModel *model); | 68 void setModel(SparseOneDimensionalModel *model); |
69 | 69 |
90 | 90 |
91 virtual int getCompletion(View *) const { return m_model->getCompletion(); } | 91 virtual int getCompletion(View *) const { return m_model->getCompletion(); } |
92 | 92 |
93 virtual bool needsTextLabelHeight() const { return m_model->hasTextLabels(); } | 93 virtual bool needsTextLabelHeight() const { return m_model->hasTextLabels(); } |
94 | 94 |
95 virtual bool getValueExtents(float &, float &, bool &, QString &) const { | 95 virtual bool getValueExtents(double &, double &, bool &, QString &) const { |
96 return false; | 96 return false; |
97 } | 97 } |
98 | 98 |
99 virtual void toXml(QTextStream &stream, QString indent = "", | 99 virtual void toXml(QTextStream &stream, QString indent = "", |
100 QString extraAttributes = "") const; | 100 QString extraAttributes = "") const; |