Mercurial > hg > svgui
comparison layer/Layer.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 | e0f08e108064 |
children | 12ab113ca2b1 |
comparison
equal
deleted
inserted
replaced
904:e0f08e108064 | 905:b66fb15de477 |
---|---|
252 * double-click). If there is no item or editing is not | 252 * double-click). If there is no item or editing is not |
253 * supported, return false. | 253 * supported, return false. |
254 */ | 254 */ |
255 virtual bool editOpen(View *, QMouseEvent *) { return false; } | 255 virtual bool editOpen(View *, QMouseEvent *) { return false; } |
256 | 256 |
257 virtual void moveSelection(Selection, int /* newStartFrame */) { } | 257 virtual void moveSelection(Selection, sv_frame_t /* newStartFrame */) { } |
258 virtual void resizeSelection(Selection, Selection /* newSize */) { } | 258 virtual void resizeSelection(Selection, Selection /* newSize */) { } |
259 virtual void deleteSelection(Selection) { } | 259 virtual void deleteSelection(Selection) { } |
260 | 260 |
261 virtual void copy(View *, Selection, Clipboard & /* to */) { } | 261 virtual void copy(View *, Selection, Clipboard & /* to */) { } |
262 | 262 |
544 | 544 |
545 struct MeasureRect { | 545 struct MeasureRect { |
546 | 546 |
547 mutable QRect pixrect; | 547 mutable QRect pixrect; |
548 bool haveFrames; | 548 bool haveFrames; |
549 int startFrame; // only valid if haveFrames | 549 sv_frame_t startFrame; // only valid if haveFrames |
550 int endFrame; // ditto | 550 sv_frame_t endFrame; // ditto |
551 double startY; | 551 double startY; |
552 double endY; | 552 double endY; |
553 | 553 |
554 bool operator<(const MeasureRect &mr) const; | 554 bool operator<(const MeasureRect &mr) const; |
555 void toXml(QTextStream &stream, QString indent) const; | 555 void toXml(QTextStream &stream, QString indent) const; |