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 Member Functions | Protected Member Functions | Protected Attributes
MAKLogger::DtTimeBarZoomSlider Class Reference

Slider bar which shows an mini tile bar overlay which is responsible for zooming the time bar and drawing a minimized view of it. More...

+ Inheritance diagram for MAKLogger::DtTimeBarZoomSlider:
+ Collaboration diagram for MAKLogger::DtTimeBarZoomSlider:

Public Member Functions

 DtTimeBarZoomSlider (DtTimeComponent *timeComponent, float start, float end, QWidget *parent)
 
virtual ~DtTimeBarZoomSlider ()
 
- Public Member Functions inherited from MAKLogger::DtBoundsSlider
 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 Member Functions

virtual void draw ()
 Override the base draw function. More...
 
virtual void drawBar (QPainter &painter, DtSliderBar *bar) const
 Override the base draw bar function. More...
 
- Protected Member Functions inherited from MAKLogger::DtBoundsSlider
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 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

DtTimeComponentmyTimeComponent
 
- Protected Attributes inherited from MAKLogger::DtBoundsSlider
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
 

Additional Inherited Members

- Public Slots inherited from MAKLogger::DtBoundsSlider
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 inherited from MAKLogger::DtBoundsSlider
void startAndEndChanged (float, float)
 
void leftSelectionChanged (bool)
 
void rightSelectionChanged (bool)
 
- Signals inherited from MAKLogger::DtLgrZoomableWidget
void offsetsChanged (float left, float right)
 
- Protected Slots inherited from MAKLogger::DtBoundsSlider
void startBoxMoved (float startPosition)
 Set the start position. More...
 
void endBoxMoved (float endPosition)
 Set the end position. More...
 
- 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)
 
- Properties inherited from MAKLogger::DtBoundsSlider
float start
 
float end
 

Detailed Description

Slider bar which shows an mini tile bar overlay which is responsible for zooming the time bar and drawing a minimized view of it.

Constructor & Destructor Documentation

MAKLogger::DtTimeBarZoomSlider::DtTimeBarZoomSlider ( DtTimeComponent timeComponent,
float  start,
float  end,
QWidget parent 
)
virtual MAKLogger::DtTimeBarZoomSlider::~DtTimeBarZoomSlider ( )
virtual

Member Function Documentation

virtual void MAKLogger::DtTimeBarZoomSlider::draw ( )
protectedvirtual

Override the base draw function.

virtual void MAKLogger::DtTimeBarZoomSlider::drawBar ( QPainter &  painter,
DtSliderBar bar 
) const
protectedvirtual

Override the base draw bar function.

Reimplemented from MAKLogger::DtBoundsSlider.

Member Data Documentation

DtTimeComponent* MAKLogger::DtTimeBarZoomSlider::myTimeComponent
protected

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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)