comparison layer/TimeInstantLayer.h @ 946:36cddc3de023 alignment_view

Merge from default branch
author Chris Cannam
date Mon, 20 Apr 2015 09:19:52 +0100
parents 251dd0abc7b7
children 94e4952a6774
comparison
equal deleted inserted replaced
897:499b637f2a26 946:36cddc3de023
33 TimeInstantLayer(); 33 TimeInstantLayer();
34 virtual ~TimeInstantLayer(); 34 virtual ~TimeInstantLayer();
35 35
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(sv_frame_t) 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;