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

A Widget which contains two slider boxes which define a bounding area. More...

+ Inheritance diagram for MAKLogger::DtBoundsSlider:
+ Collaboration diagram for MAKLogger::DtBoundsSlider:

List of all members.

Public Slots

void setStart (float startPosition)
 Set the start position.
void setEnd (float endPosition)
 Set the end position.
void setStartAndEnd (float startPosition, float endPosition)
 Set both the start and end position.
void setStartAndEndNoEmit (float, float)
void setLeftSelection (bool)
void setRightSelection (bool)
void resetStart ()
 slot which will move start box to left edge of view (supports scaling)
void resetEnd ()
 slot which will move end box to right edge of view (supports scaling)

Signals

void startAndEndChanged (float, float)
void leftSelectionChanged (bool)
void rightSelectionChanged (bool)

Public Member Functions

 DtBoundsSlider (float start=0.0f, float end=0.0f, QWidget *p=0)
float start () const
float end () const
bool leftSelected () const
bool rightSelected () const
void setBarColors (QColor top, QColor bottom)
virtual float minimumDistance () const
virtual void setMinimumDistance (float)
virtual void saveMinimumDistance ()
virtual void restoreMinimumDistance ()

Protected Slots

void startBoxMoved (float startPosition)
 Set the start position.
void endBoxMoved (float endPosition)
 Set the end position.

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
virtual void mouseDoubleClickEvent (QMouseEvent *e)
virtual void mouseReleaseEvent (QMouseEvent *)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void draw (QPainter &painter)
virtual void drawBar (QPainter &painter, DtSliderBar *bar) const
virtual void drawBox (QPainter &painter, DtSliderBox *box) const

Protected Attributes

float myStart
float myEnd
DtSliderBoxmyLeftBox
DtSliderBoxmyRightBox
QMatrix myDrawnMatrix
QColor myTopColor
QColor myBottomColor

Properties

float start
float end

Detailed Description

A Widget which contains two slider boxes which define a bounding area.


Member Function Documentation

void MAKLogger::DtBoundsSlider::endBoxMoved ( float  endPosition) [protected, slot]

Set the end position.

The end may not proceed the start. The endPosition will be clamped to [startPosition, 100] inclusively.

void MAKLogger::DtBoundsSlider::setEnd ( float  endPosition) [slot]

Set the end position.

The end may not proceed the start. The endPosition will be clamped to [startPosition, 100] inclusively.

void MAKLogger::DtBoundsSlider::setStart ( float  startPosition) [slot]

Set the start position.

The start may not exceed the end. The startPosition will be clamped to [0, endPosition] inclusively.

void MAKLogger::DtBoundsSlider::setStartAndEnd ( float  startPosition,
float  endPosition 
) [slot]

Set both the start and end position.

The start position must be between [0,100] and the endPosition must be between [startPosition,100] all inclusively.

void MAKLogger::DtBoundsSlider::startBoxMoved ( float  startPosition) [protected, slot]

Set the start position.

The start may not exceed the end. The startPosition will be clamped to [0, endPosition] inclusively.


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)