MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
overlapSlider.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2026 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #ifndef overlapSlider_H_
12 #define overlapSlider_H_
13 
14 #include <lgrGui/lgrGui.h>
15 
17 #include <lgrGui/multiBoxSlider.h>
18 #include <lgrGui/dragComponent.h>
19 #include <QMatrix>
20 
21 class QPainter;
22 
23 namespace MAKLogger
24 {
25 
28  public DtMultiBoxSlider, public DtDragComponent
29  {
30  Q_OBJECT
31  Q_PROPERTY(QColor ColorGradTop MEMBER myColorGradTop USER true)
32  Q_PROPERTY(QColor ColorGradBottom MEMBER myColorGradBottom USER true)
33 
34  public:
35 
37  explicit DtOverlapSlider(QWidget* parent);
38 
40  virtual DtSliderBar* addRange(QString name,float start,float end);
41 
43  virtual void removeRange(QString name);
44 
46  virtual void clearRanges();
47 
48  signals:
49  void barMoved(DtSliderBar*);
50  void barSizeChanged(DtSliderBar*);
51 
52  protected:
53 
55  virtual void moveBox(DtSliderBox* box,float v);
56 
57  virtual void enterEvent( QEvent* );
58  virtual void leaveEvent( QEvent* );
59  virtual void paintEvent( QPaintEvent* );
60  virtual void mouseReleaseEvent(QMouseEvent*);
61  virtual void mouseMoveEvent( QMouseEvent* );
62  virtual void mousePressEvent( QMouseEvent* );
63  virtual void resizeEvent( QResizeEvent* );
64 
65  virtual void draw(QPainter& painter,QRect boundingRect);
66 
67  virtual void drawBars(QPainter& painter) const;
68  virtual void drawBoxes(QPainter& painter) const;
69 
70  virtual void drawBar(QPainter& painter,DtSliderBar* bar) const;
71  virtual void drawBox(QPainter& painter,DtSliderBox* box) const;
72 
73  QMatrix myDrawnMatrix;
74  QColor myColorGradTop;
75  QColor myColorGradBottom;
76 
78  DtSliderBar* myActiveBar;
79  };
80 }
81 
82 #endif
Contains MAKLogger::DtMultiBoxSlider class.
A slider which allows multiple boxes that can overlap.
Definition: overlapSlider.h:27
Used to manage a bar between a start and an end of a slider bar.
Definition: sliderBar.h:25
A widget which can be zoomed.
Definition: lgrZoomableWidget.h:26
Represents a box within a slider.
Definition: sliderBox.h:27
Contains MAKLogger::DtLgrZoomableWidget class.
Contains MAKLogger::DtDragComponent class.
#define DT_DLL_LGRGUI
Definition: lgrGui.h:19
Defines INPORT/EXPORT macros for lgrGui library.
Classes used to track mouse drags.
Definition: dragComponent.h:21
A slider bar which supports multiple boxes.
Definition: multiBoxSlider.h:32

Document ID: Generated on Tue Nov 17 15:25:07 EST 2026 from SVN revision 298446
Copyright © 2026 MAK Technologies. All Rights Reserved (www.mak.com)