MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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:

Public Slots

void setStart (float startPosition)
 Set the start position. More...
 
void setEnd (float endPosition)
 Set the end position. More...
 
void setStartAndEnd (float startPosition, float endPosition)
 Set both the start and end position. More...
 
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) More...
 
void resetEnd ()
 slot which will move end box to right edge of view (supports scaling) More...
 
- Public Slots inherited from MAKLogger::DtLgrZoomableWidget
virtual void setOffsets (float left, float right)
 
virtual void testForUpdate (DtLgrGuiModel &model)
 

Signals

void startAndEndChanged (float, float)
 
void leftSelectionChanged (bool)
 
void rightSelectionChanged (bool)
 
- Signals inherited from MAKLogger::DtLgrZoomableWidget
void offsetsChanged (float left, float right)
 

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 ()
 
- Public Member Functions inherited from MAKLogger::DtLgrZoomableWidget
 DtLgrZoomableWidget (QWidget *parent)
 CTOR. More...
 
virtual ~DtLgrZoomableWidget ()
 DTOR. More...
 
QRectF scaledViewport (QRect orignalViewport, QPoint margins) const
 Scale a viewport using the scaled settings and the provided margins. More...
 
void drawCursor (QPainter &painter, double firstVisibleTime, double lastVisibleTime, double cursorTime, int xOffset, bool active)
 Draw A cursor. More...
 
QRect cursorBounds (double firstVisibleTime, double lastVisibleTime, double cursorTime, int xOffset)
 Get the cursor bounds. More...
 
double firstVisibleTime (double firstTime, double lastTime) const
 Get the first visible time, based upon the scale. More...
 
double firstVisibleTime (DtLgrGuiModel &model) const
 Get the first visible time via the models display time. More...
 
double lastVisibleTime (double firstTime, double lastTime) const
 Get the last visible time, based upon the scale. More...
 
double lastVisibleTime (DtLgrGuiModel &model) const
 Get the last visible time via the models display time. More...
 
float leftOffset () const
 Get the left offset (percent 0-100.0), inline for performance reasons. More...
 
float rightOffset () const
 Get the right offset (percent 0-100.0), inline for performance reasons. More...
 
float horizontalMargin () const
 get the horizontal margin. More...
 
void setHorizontalMargin (float margin)
 set the horizontal margin. More...
 
void setDrawTimes (DtLgrGuiModel &model)
 
- Public Member Functions inherited from MAKLogger::DtMultiBoxSlider
 DtMultiBoxSlider ()
 CTOR. More...
 
virtual ~DtMultiBoxSlider ()
 DTOR. More...
 
void addBar (DtSliderBar *bar)
 Add a preexisting bar. More...
 
DtSliderBaraddBar (float start, float end)
 Add a new bar at the positions. More...
 
DtSliderBarbar (QString name)
 Lookup a slider bar by name. More...
 
void removeBarByName (QString name)
 Lookup a slider bar by name, and then remove it if it is found. More...
 
void removeBar (DtSliderBar *bar)
 Remove a bar (and it's boxes) from the slider. More...
 
virtual float maxBoxWidth () const
 
virtual float minBoxWidth () const
 
virtual float maxBoxHeight () const
 
virtual float minBoxHeight () const
 
virtual void movePressedBoxes (float v)
 
virtual void restorePressedBoxes ()
 
virtual void unselectAll ()
 
virtual void unpressAll ()
 
virtual void pushToTop (DtSliderBox *box)
 Pushes box and bar to top. More...
 
virtual void pushToTop (DtSliderBar *bar)
 
virtual DtSliderBarpickBar (QRectF viewport, QPoint pos)
 
virtual DtSliderBoxpickBox (QRectF viewport, QPoint pos)
 
virtual void selectBox (DtSliderBox *box)
 
virtual void selectBar (DtSliderBar *bar)
 
virtual void pressBox (DtSliderBox *box)
 
virtual void pressBar (DtSliderBar *bar)
 
virtual void releaseBox (DtSliderBox *box)
 
virtual void releaseBar (DtSliderBar *bar)
 
- Public Member Functions inherited from MAKLogger::DtDragComponent
 DtDragComponent ()
 CTOR. More...
 
virtual ~DtDragComponent ()
 DTOR. More...
 
void registerMousePress (const QMouseEvent &e)
 To be called when mouse is pressed. More...
 
void registerMouseRelease (const QMouseEvent &e)
 To be called when mouse is released. More...
 
void registerMouseMove (const QMouseEvent &e)
 To be called when mouse is moved. More...
 
QPoint absolutePosition () const
 Get the absolute position of the mouse. More...
 
QPoint relativePosition () const
 Get the relative position of the mouse from the initial position. More...
 
QPoint relativeVelocity () const
 Get the relative position of the mouse from the last update. More...
 
bool currentlyDragging () const
 Get whether the mouse is currently dragging. More...
 

Protected Slots

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

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 Member Functions inherited from MAKLogger::DtMultiBoxSlider
virtual float canBoxMove (DtSliderBox *box, float dv)
 Check if the box can be moved by dv. More...
 
virtual void moveBox (DtSliderBox *box, float v)
 Move the box. More...
 
QPointF getBoxPositionBounds (DtSliderBox *box) const
 
virtual void drawBars (QPainter &painter) const
 
virtual void drawBoxes (QPainter &painter) const
 
void calcMinMax () const
 

Protected Attributes

float myStart
 
float myEnd
 
DtSliderBoxmyLeftBox
 
DtSliderBoxmyRightBox
 
QMatrix myDrawnMatrix
 
QColor myTopColor
 
QColor myBottomColor
 
- Protected Attributes inherited from MAKLogger::DtLgrZoomableWidget
float myLeftOffset
 
float myRightOffset
 
float myHorizontalMargin
 
double myDrawnFirstVisibleTime
 
double myDrawnLastVisibleTime
 
double myDrawnCurrentVisibleTime
 
- Protected Attributes inherited from MAKLogger::DtMultiBoxSlider
DtSliderBoxList myBoxes
 
DtSliderBarList myBars
 
bool myAllowOverlap
 
float myMinimumDistance
 
float mySavedMinimumDistance
 
bool myMutableListChanged
 
float myMutableMaxWidth
 
float myMutableMinWidth
 
float myMutableMaxHeight
 
float myMutableMinHeight
 
- Protected Attributes inherited from MAKLogger::DtDragComponent
QPoint myFirstPosition
 
QPoint myLastPosition
 
QPoint myCurrentPosition
 
bool myDownFlag
 

Properties

float start
 
float end
 

Additional Inherited Members

- Static Protected Member Functions inherited from MAKLogger::DtMultiBoxSlider
static bool lessPosition (DtSliderBox *box1, DtSliderBox *box2)
 
static bool lessWidth (DtSliderBox *box1, DtSliderBox *box2)
 
static bool lessHeight (DtSliderBox *box1, DtSliderBox *box2)
 

Detailed Description

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

Constructor & Destructor Documentation

MAKLogger::DtBoundsSlider::DtBoundsSlider ( float  start = 0.0f,
float  end = 0.0f,
QWidget p = 0 
)

Member Function Documentation

virtual void MAKLogger::DtBoundsSlider::draw ( QPainter &  painter)
protectedvirtual
virtual void MAKLogger::DtBoundsSlider::drawBar ( QPainter &  painter,
DtSliderBar bar 
) const
protectedvirtual
virtual void MAKLogger::DtBoundsSlider::drawBox ( QPainter &  painter,
DtSliderBox box 
) const
protectedvirtual
float MAKLogger::DtBoundsSlider::end ( ) const
void MAKLogger::DtBoundsSlider::endBoxMoved ( float  endPosition)
protectedslot

Set the end position.

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

bool MAKLogger::DtBoundsSlider::leftSelected ( ) const
inline
void MAKLogger::DtBoundsSlider::leftSelectionChanged ( bool  )
signal
virtual float MAKLogger::DtBoundsSlider::minimumDistance ( ) const
virtual

Reimplemented from MAKLogger::DtMultiBoxSlider.

virtual void MAKLogger::DtBoundsSlider::mouseDoubleClickEvent ( QMouseEvent *  e)
protectedvirtual
virtual void MAKLogger::DtBoundsSlider::mouseMoveEvent ( QMouseEvent *  )
protectedvirtual
virtual void MAKLogger::DtBoundsSlider::mousePressEvent ( QMouseEvent *  )
protectedvirtual
virtual void MAKLogger::DtBoundsSlider::mouseReleaseEvent ( QMouseEvent *  )
protectedvirtual
virtual void MAKLogger::DtBoundsSlider::paintEvent ( QPaintEvent *  )
protectedvirtual
void MAKLogger::DtBoundsSlider::resetEnd ( )
slot

slot which will move end box to right edge of view (supports scaling)

void MAKLogger::DtBoundsSlider::resetStart ( )
slot

slot which will move start box to left edge of view (supports scaling)

virtual void MAKLogger::DtBoundsSlider::restoreMinimumDistance ( )
virtual

Reimplemented from MAKLogger::DtMultiBoxSlider.

bool MAKLogger::DtBoundsSlider::rightSelected ( ) const
inline
void MAKLogger::DtBoundsSlider::rightSelectionChanged ( bool  )
signal
virtual void MAKLogger::DtBoundsSlider::saveMinimumDistance ( )
virtual

Reimplemented from MAKLogger::DtMultiBoxSlider.

void MAKLogger::DtBoundsSlider::setBarColors ( QColor  top,
QColor  bottom 
)
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::setLeftSelection ( bool  )
slot
virtual void MAKLogger::DtBoundsSlider::setMinimumDistance ( float  )
virtual

Reimplemented from MAKLogger::DtMultiBoxSlider.

void MAKLogger::DtBoundsSlider::setRightSelection ( bool  )
slot
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::setStartAndEndNoEmit ( float  ,
float   
)
slot
float MAKLogger::DtBoundsSlider::start ( ) const
void MAKLogger::DtBoundsSlider::startAndEndChanged ( float  ,
float   
)
signal
void MAKLogger::DtBoundsSlider::startBoxMoved ( float  startPosition)
protectedslot

Set the start position.

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

Member Data Documentation

QColor MAKLogger::DtBoundsSlider::myBottomColor
protected
QMatrix MAKLogger::DtBoundsSlider::myDrawnMatrix
protected
float MAKLogger::DtBoundsSlider::myEnd
protected
DtSliderBox* MAKLogger::DtBoundsSlider::myLeftBox
protected
DtSliderBox* MAKLogger::DtBoundsSlider::myRightBox
protected
float MAKLogger::DtBoundsSlider::myStart
protected
QColor MAKLogger::DtBoundsSlider::myTopColor
protected

Property Documentation

float MAKLogger::DtBoundsSlider::end
readwrite
float MAKLogger::DtBoundsSlider::start
readwrite

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

Document ID: Generated on Thu Sep 2 15:35:22 EDT 2021 from SVN revision 233992
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)