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

A time line bar which is zoom able and drawable current time marker. More...

+ Inheritance diagram for MAKLogger::DtTimelineBar:
+ Collaboration diagram for MAKLogger::DtTimelineBar:

Public Slots

virtual void setStartStopTimePercentages (float, float)
 
virtual void testForUpdate ()
 Slot used to test to see if an update should be performed. More...
 
virtual void drawZoomBox ()
 
virtual void resizeZoomBox (int delta)
 
virtual void resizeEvent (QResizeEvent *qre)
 
- Public Slots inherited from MAKLogger::DtOverlapSlider
void selectBarByIndex (int index)
 
- Public Slots inherited from MAKLogger::DtLgrZoomableWidget
virtual void setOffsets (float left, float right)
 
virtual void testForUpdate (DtLgrGuiModel &model)
 

Signals

void wheelMoved (int)
 
void drawnTimesChanged (float)
 
- Signals inherited from MAKLogger::DtOverlapSlider
void barMoved (DtSliderBar *)
 
void barSizeChanged (DtSliderBar *)
 
- Signals inherited from MAKLogger::DtLgrZoomableWidget
void offsetsChanged (float left, float right)
 

Public Member Functions

 DtTimelineBar (DtLgrGuiModel &model, QWidget *parent)
 CTOR. More...
 
virtual ~DtTimelineBar ()
 DTOR. More...
 
virtual void reverseTicks (bool reverse)
 
virtual DtAbsoluteTime firstTime () const
 
virtual DtAbsoluteTime lastTime () const
 
virtual DtAbsoluteTime currentTime () const
 
virtual DtAbsoluteTime startTime () const
 
virtual DtAbsoluteTime stopTime () const
 
virtual DtRelativeTime duration () const
 
virtual DtRelativeTime playDuration () const
 
virtual int verticalMargin () const
 
virtual DtSliderBaraddTimelineWindowSlider ()
 
virtual DtSliderBarwindowSlider ()
 
virtual DtLgrTimeBarZoomBoxtimeBarZoomBox ()
 
virtual void enableZoomBox (bool enable)
 
virtual DtLgrGuiModelmodel ()
 
virtual void setEmptyText (const QString &emptyText)
 
- Public Member Functions inherited from MAKLogger::DtOverlapSlider
 DtOverlapSlider (QWidget *parent)
 CTOR. More...
 
virtual DtSliderBaraddRange (QString name, float start, float end)
 Add a new Range. More...
 
virtual void removeRange (QString name)
 Remove a range by its name. More...
 
virtual void clearRanges ()
 Remove all ranges. More...
 
void setBarColors (QColor top, QColor bottom)
 Set all bar colors. More...
 
- 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 float minimumDistance () const
 
virtual void setMinimumDistance (float distance)
 
virtual void saveMinimumDistance ()
 
virtual void restoreMinimumDistance ()
 
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 paintEvent (QPaintEvent *)
 
virtual void mouseReleaseEvent (QMouseEvent *)
 
virtual void mouseMoveEvent (QMouseEvent *)
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void keyPressEvent (QKeyEvent *)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual void contextMenuEvent (QContextMenuEvent *)
 
virtual void updateCurrentTime (QPoint)
 
virtual void draw (QPainter &painter, const QRect &boundingRect)
 
virtual void drawBox (QPainter &painter, DtSliderBox *box)
 
virtual void drawTicks (QPainter &painter, double, double)
 
virtual void drawBackground (QPainter &painter, double, double)
 
- Protected Member Functions inherited from MAKLogger::DtOverlapSlider
virtual void moveBox (DtSliderBox *box, float v)
 Override moveBox to emit signals. More...
 
virtual void enterEvent (QEvent *)
 
virtual void leaveEvent (QEvent *)
 
virtual void resizeEvent (QResizeEvent *)
 
virtual void draw (QPainter &painter, QRect boundingRect)
 
virtual void drawBars (QPainter &painter) const
 
virtual void drawBoxes (QPainter &painter) const
 
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...
 
QPointF getBoxPositionBounds (DtSliderBox *box) const
 
void calcMinMax () const
 

Static Protected Member Functions

static DtRelativeTime textTickSize (DtRelativeTime duration)
 
- 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)
 

Protected Attributes

double myDrawnCurrentTime
 
double myDrawnStartTime
 
double myDrawnStopTime
 
double myDrawnFirstVisibleTime
 
double myDrawnLastVisibleTime
 
int myHorizontalMargin
 
int myVerticalMargin
 
bool myReverseTicks
 
bool myUpdateTimeFlag
 
bool mySelectingArea
 
DtValueSmoothermyValueSmoother
 
DtLgrTimelineWindowSliderBarmyTimelineWindowSlider
 
DtLgrTimeBarZoomBoxmyTimeBarZoomBox
 
DtLgrGuiModelmyModel
 
float myLeftViewableOffset
 
float myRightViewableOffset
 
QString myEmptyText
 
QColor myInitialFill
 
QColor myOuterColor
 
QColor myInnerColor
 
QColor myTickColor
 
- Protected Attributes inherited from MAKLogger::DtOverlapSlider
QMatrix myDrawnMatrix
 
QColor myTopColor
 
QColor myBottomColor
 
QColor myColorGradTop
 
QColor myColorGradBottom
 
DtSliderBarmyActiveBar
 The bar currently under the mouse. More...
 
- 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

QColor InitialFill
 
QColor OuterColor
 
QColor InnerColor
 
QColor TickColor
 
- Properties inherited from MAKLogger::DtOverlapSlider
QColor ColorGradTop
 
QColor ColorGradBottom
 

Detailed Description

A time line bar which is zoom able and drawable current time marker.

Constructor & Destructor Documentation

MAKLogger::DtTimelineBar::DtTimelineBar ( DtLgrGuiModel model,
QWidget parent 
)

CTOR.

virtual MAKLogger::DtTimelineBar::~DtTimelineBar ( )
virtual

DTOR.

Member Function Documentation

virtual DtSliderBar* MAKLogger::DtTimelineBar::addTimelineWindowSlider ( )
virtual
virtual void MAKLogger::DtTimelineBar::contextMenuEvent ( QContextMenuEvent *  )
protectedvirtual
virtual DtAbsoluteTime MAKLogger::DtTimelineBar::currentTime ( ) const
virtual
virtual void MAKLogger::DtTimelineBar::draw ( QPainter &  painter,
const QRect &  boundingRect 
)
protectedvirtual
virtual void MAKLogger::DtTimelineBar::drawBackground ( QPainter &  painter,
double  ,
double   
)
protectedvirtual
virtual void MAKLogger::DtTimelineBar::drawBox ( QPainter &  painter,
DtSliderBox box 
)
protectedvirtual
void MAKLogger::DtTimelineBar::drawnTimesChanged ( float  )
signal
virtual void MAKLogger::DtTimelineBar::drawTicks ( QPainter &  painter,
double  ,
double   
)
protectedvirtual
virtual void MAKLogger::DtTimelineBar::drawZoomBox ( )
virtualslot
virtual DtRelativeTime MAKLogger::DtTimelineBar::duration ( ) const
virtual
virtual void MAKLogger::DtTimelineBar::enableZoomBox ( bool  enable)
virtual
virtual DtAbsoluteTime MAKLogger::DtTimelineBar::firstTime ( ) const
virtual
virtual void MAKLogger::DtTimelineBar::keyPressEvent ( QKeyEvent *  )
protectedvirtual
virtual DtAbsoluteTime MAKLogger::DtTimelineBar::lastTime ( ) const
virtual
virtual DtLgrGuiModel* MAKLogger::DtTimelineBar::model ( )
virtual
virtual void MAKLogger::DtTimelineBar::mouseMoveEvent ( QMouseEvent *  )
protectedvirtual

Reimplemented from MAKLogger::DtOverlapSlider.

virtual void MAKLogger::DtTimelineBar::mousePressEvent ( QMouseEvent *  )
protectedvirtual

Reimplemented from MAKLogger::DtOverlapSlider.

virtual void MAKLogger::DtTimelineBar::mouseReleaseEvent ( QMouseEvent *  )
protectedvirtual

Reimplemented from MAKLogger::DtOverlapSlider.

virtual void MAKLogger::DtTimelineBar::paintEvent ( QPaintEvent *  )
protectedvirtual

Reimplemented from MAKLogger::DtOverlapSlider.

virtual DtRelativeTime MAKLogger::DtTimelineBar::playDuration ( ) const
virtual
virtual void MAKLogger::DtTimelineBar::resizeEvent ( QResizeEvent *  qre)
virtualslot
virtual void MAKLogger::DtTimelineBar::resizeZoomBox ( int  delta)
virtualslot
virtual void MAKLogger::DtTimelineBar::reverseTicks ( bool  reverse)
virtual
virtual void MAKLogger::DtTimelineBar::setEmptyText ( const QString &  emptyText)
virtual
virtual void MAKLogger::DtTimelineBar::setStartStopTimePercentages ( float  ,
float   
)
virtualslot
virtual DtAbsoluteTime MAKLogger::DtTimelineBar::startTime ( ) const
virtual
virtual DtAbsoluteTime MAKLogger::DtTimelineBar::stopTime ( ) const
virtual
virtual void MAKLogger::DtTimelineBar::testForUpdate ( )
virtualslot

Slot used to test to see if an update should be performed.

static DtRelativeTime MAKLogger::DtTimelineBar::textTickSize ( DtRelativeTime  duration)
staticprotected
virtual DtLgrTimeBarZoomBox* MAKLogger::DtTimelineBar::timeBarZoomBox ( )
virtual
virtual void MAKLogger::DtTimelineBar::updateCurrentTime ( QPoint  )
protectedvirtual
virtual int MAKLogger::DtTimelineBar::verticalMargin ( ) const
virtual
virtual void MAKLogger::DtTimelineBar::wheelEvent ( QWheelEvent *  event)
protectedvirtual
void MAKLogger::DtTimelineBar::wheelMoved ( int  )
signal
virtual DtSliderBar* MAKLogger::DtTimelineBar::windowSlider ( )
virtual

Member Data Documentation

double MAKLogger::DtTimelineBar::myDrawnCurrentTime
protected
double MAKLogger::DtTimelineBar::myDrawnFirstVisibleTime
protected
double MAKLogger::DtTimelineBar::myDrawnLastVisibleTime
protected
double MAKLogger::DtTimelineBar::myDrawnStartTime
protected
double MAKLogger::DtTimelineBar::myDrawnStopTime
protected
QString MAKLogger::DtTimelineBar::myEmptyText
protected
int MAKLogger::DtTimelineBar::myHorizontalMargin
protected
QColor MAKLogger::DtTimelineBar::myInitialFill
protected
QColor MAKLogger::DtTimelineBar::myInnerColor
protected
float MAKLogger::DtTimelineBar::myLeftViewableOffset
protected
DtLgrGuiModel* MAKLogger::DtTimelineBar::myModel
protected
QColor MAKLogger::DtTimelineBar::myOuterColor
protected
bool MAKLogger::DtTimelineBar::myReverseTicks
protected
float MAKLogger::DtTimelineBar::myRightViewableOffset
protected
bool MAKLogger::DtTimelineBar::mySelectingArea
protected
QColor MAKLogger::DtTimelineBar::myTickColor
protected
DtLgrTimeBarZoomBox* MAKLogger::DtTimelineBar::myTimeBarZoomBox
protected
DtLgrTimelineWindowSliderBar* MAKLogger::DtTimelineBar::myTimelineWindowSlider
protected
bool MAKLogger::DtTimelineBar::myUpdateTimeFlag
protected
DtValueSmoother* MAKLogger::DtTimelineBar::myValueSmoother
protected
int MAKLogger::DtTimelineBar::myVerticalMargin
protected

Property Documentation

QColor MAKLogger::DtTimelineBar::InitialFill
QColor MAKLogger::DtTimelineBar::InnerColor
QColor MAKLogger::DtTimelineBar::OuterColor
QColor MAKLogger::DtTimelineBar::TickColor

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)