Public Slots | Signals | Public Member Functions | Protected Attributes
MAKLogger::DtLgrZoomableWidget Class Reference

A widget which can be zoomed. More...

+ Inheritance diagram for MAKLogger::DtLgrZoomableWidget:
+ Collaboration diagram for MAKLogger::DtLgrZoomableWidget:

List of all members.

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

Detailed Description

A widget which can be zoomed.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)