A widget which can be zoomed. More...
Inheritance diagram for MAKLogger::DtLgrZoomableWidget:
Collaboration diagram for MAKLogger::DtLgrZoomableWidget:Public Slots | |
| virtual void | setOffsets (float left, float right) |
| virtual void | testForUpdate (DtLgrGuiModel &model) |
Signals | |
| void | offsetsChanged (float left, float right) |
Public Member Functions | |
| DtLgrZoomableWidget (QWidget *parent) | |
| CTOR. | |
| virtual | ~DtLgrZoomableWidget () |
| DTOR. | |
| QRectF | scaledViewport (QRect orignalViewport, QPoint margins) const |
| Scale a viewport using the scaled settings and the provided margins. | |
| void | drawCursor (QPainter &painter, double firstVisibleTime, double lastVisibleTime, double cursorTime, int xOffset, bool active) |
| Draw A cursor. | |
| QRect | cursorBounds (double firstVisibleTime, double lastVisibleTime, double cursorTime, int xOffset) |
| Get the cursor bounds. | |
| double | firstVisibleTime (double firstTime, double lastTime) const |
| Get the first visible time, based upon the scale. | |
| double | firstVisibleTime (DtLgrGuiModel &model) const |
| Get the first visible time via the models display time. | |
| double | lastVisibleTime (double firstTime, double lastTime) const |
| Get the last visible time, based upon the scale. | |
| double | lastVisibleTime (DtLgrGuiModel &model) const |
| Get the last visible time via the models display time. | |
| float | leftOffset () const |
| Get the left offset (percent 0-100.0), inline for performance reasons. | |
| float | rightOffset () const |
| Get the right offset (percent 0-100.0), inline for performance reasons. | |
| float | horizontalMargin () const |
| get the horizontal margin. | |
| void | setHorizontalMargin (float margin) |
| set the horizontal margin. | |
| void | setDrawTimes (DtLgrGuiModel &model) |
Protected Attributes | |
| float | myLeftOffset |
| float | myRightOffset |
| float | myHorizontalMargin |
| double | myDrawnFirstVisibleTime |
| double | myDrawnLastVisibleTime |
| double | myDrawnCurrentVisibleTime |
A widget which can be zoomed.
| float MAKLogger::DtLgrZoomableWidget::leftOffset | ( | ) | const [inline] |
Get the left offset (percent 0-100.0), inline for performance reasons.
| float MAKLogger::DtLgrZoomableWidget::rightOffset | ( | ) | const [inline] |
Get the right offset (percent 0-100.0), inline for performance reasons.
| QRectF MAKLogger::DtLgrZoomableWidget::scaledViewport | ( | QRect | orignalViewport, |
| QPoint | margins | ||
| ) | const |
Scale a viewport using the scaled settings and the provided margins.