Mercurial > hg > svgui
comparison layer/Layer.h @ 273:e954c00cbe55
* proper (though ugly) handling of y coord for measure rects in scrollable layers
author | Chris Cannam |
---|---|
date | Fri, 29 Jun 2007 16:50:59 +0000 |
parents | 87e4c880b4c8 |
children | b9380f679f70 |
comparison
equal
deleted
inserted
replaced
272:87e4c880b4c8 | 273:e954c00cbe55 |
---|---|
427 | 427 |
428 mutable QRect pixrect; | 428 mutable QRect pixrect; |
429 bool haveFrames; | 429 bool haveFrames; |
430 long startFrame; // only valid if haveFrames | 430 long startFrame; // only valid if haveFrames |
431 long endFrame; // ditto | 431 long endFrame; // ditto |
432 double startY; | |
433 double endY; | |
432 | 434 |
433 bool operator<(const MeasureRect &mr) const; | 435 bool operator<(const MeasureRect &mr) const; |
434 QString toXmlString(QString indent) const; | 436 QString toXmlString(QString indent) const; |
435 }; | 437 }; |
436 | 438 |
465 bool m_haveDraggingRect; | 467 bool m_haveDraggingRect; |
466 | 468 |
467 // Note that pixrects are only correct for a single view. | 469 // Note that pixrects are only correct for a single view. |
468 // So we should update them at the start of the paint procedure | 470 // So we should update them at the start of the paint procedure |
469 // (painting is single threaded) and only use them after that. | 471 // (painting is single threaded) and only use them after that. |
470 void updateMeasurementPixrects(View *v) const; | 472 void updateMeasurePixrects(View *v) const; |
473 | |
474 virtual void updateMeasureRectYCoords(View *v, const MeasureRect &r) const; | |
475 virtual void setMeasureRectYCoord(View *v, MeasureRect &r, bool start, int y) const; | |
471 | 476 |
472 // This assumes updateMeasurementPixrects has been called | 477 // This assumes updateMeasurementPixrects has been called |
473 MeasureRectSet::const_iterator findFocusedMeasureRect(QPoint) const; | 478 MeasureRectSet::const_iterator findFocusedMeasureRect(QPoint) const; |
474 | 479 |
475 void paintMeasurementRect(View *v, QPainter &paint, | 480 void paintMeasurementRect(View *v, QPainter &paint, |