Mercurial > hg > svgui
comparison layer/ImageLayer.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 | 4c8ca536b54f |
children | 94e4952a6774 |
comparison
equal
deleted
inserted
replaced
904:e0f08e108064 | 905:b66fb15de477 |
---|---|
40 | 40 |
41 virtual void paint(View *v, QPainter &paint, QRect rect) const; | 41 virtual void paint(View *v, QPainter &paint, QRect rect) const; |
42 | 42 |
43 virtual QString getFeatureDescription(View *v, QPoint &) const; | 43 virtual QString getFeatureDescription(View *v, QPoint &) const; |
44 | 44 |
45 virtual bool snapToFeatureFrame(View *v, int &frame, | 45 virtual bool snapToFeatureFrame(View *v, sv_frame_t &frame, |
46 int &resolution, | 46 int &resolution, |
47 SnapType snap) const; | 47 SnapType snap) const; |
48 | 48 |
49 virtual void drawStart(View *v, QMouseEvent *); | 49 virtual void drawStart(View *v, QMouseEvent *); |
50 virtual void drawDrag(View *v, QMouseEvent *); | 50 virtual void drawDrag(View *v, QMouseEvent *); |
52 | 52 |
53 virtual void editStart(View *v, QMouseEvent *); | 53 virtual void editStart(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 void moveSelection(Selection s, int newStartFrame); | 57 virtual void moveSelection(Selection s, sv_frame_t newStartFrame); |
58 virtual void resizeSelection(Selection s, Selection newSize); | 58 virtual void resizeSelection(Selection s, Selection newSize); |
59 virtual void deleteSelection(Selection s); | 59 virtual void deleteSelection(Selection s); |
60 | 60 |
61 virtual void copy(View *v, Selection s, Clipboard &to); | 61 virtual void copy(View *v, Selection s, Clipboard &to); |
62 virtual bool paste(View *v, const Clipboard &from, int frameOffset, | 62 virtual bool paste(View *v, const Clipboard &from, sv_frame_t frameOffset, |
63 bool interactive); | 63 bool interactive); |
64 | 64 |
65 virtual bool editOpen(View *, QMouseEvent *); // on double-click | 65 virtual bool editOpen(View *, QMouseEvent *); // on double-click |
66 | 66 |
67 virtual const Model *getModel() const { return m_model; } | 67 virtual const Model *getModel() const { return m_model; } |
84 | 84 |
85 virtual bool isLayerEditable() const { return true; } | 85 virtual bool isLayerEditable() const { return true; } |
86 | 86 |
87 virtual int getCompletion(View *) const { return m_model->getCompletion(); } | 87 virtual int getCompletion(View *) const { return m_model->getCompletion(); } |
88 | 88 |
89 virtual bool getValueExtents(float &min, float &max, | 89 virtual bool getValueExtents(double &min, double &max, |
90 bool &logarithmic, QString &unit) const; | 90 bool &logarithmic, QString &unit) const; |
91 | 91 |
92 virtual void toXml(QTextStream &stream, QString indent = "", | 92 virtual void toXml(QTextStream &stream, QString indent = "", |
93 QString extraAttributes = "") const; | 93 QString extraAttributes = "") const; |
94 | 94 |
96 | 96 |
97 virtual void setLayerDormant(const View *v, bool dormant); | 97 virtual void setLayerDormant(const View *v, bool dormant); |
98 | 98 |
99 void setProperties(const QXmlAttributes &attributes); | 99 void setProperties(const QXmlAttributes &attributes); |
100 | 100 |
101 virtual bool addImage(int frame, QString url); // using a command | 101 virtual bool addImage(sv_frame_t frame, QString url); // using a command |
102 | 102 |
103 protected slots: | 103 protected slots: |
104 void checkAddSources(); | 104 void checkAddSources(); |
105 void fileSourceReady(); | 105 void fileSourceReady(); |
106 | 106 |