MAK Data Logger API Documentation for HLA
 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-2025 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 
49  void setBarColors(QColor top,QColor bottom);
50 
51  public slots:
52  void selectBarByIndex(int index);
53 
54  signals:
55  void barMoved(DtSliderBar*);
56  void barSizeChanged(DtSliderBar*);
57 
58  protected:
59 
61  virtual void moveBox(DtSliderBox* box,float v);
62 
63  virtual void enterEvent( QEvent* );
64  virtual void leaveEvent( QEvent* );
65  virtual void paintEvent( QPaintEvent* );
66  virtual void mouseReleaseEvent(QMouseEvent*);
67  virtual void mouseMoveEvent( QMouseEvent* );
68  virtual void mousePressEvent( QMouseEvent* );
69  virtual void resizeEvent( QResizeEvent* );
70 
71  virtual void draw(QPainter& painter,QRect boundingRect);
72 
73  virtual void drawBars(QPainter& painter) const;
74  virtual void drawBoxes(QPainter& painter) const;
75 
76  virtual void drawBar(QPainter& painter,DtSliderBar* bar) const;
77  virtual void drawBox(QPainter& painter,DtSliderBox* box) const;
78 
79  QMatrix myDrawnMatrix;
80  QColor myTopColor;
81  QColor myBottomColor;
82  QColor myColorGradTop;
83  QColor myColorGradBottom;
84 
86  DtSliderBar* myActiveBar;
87  };
88 }
89 
90 #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 Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)