MAK Data Logger API Documentation for HLA
overlapSlider.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #ifndef overlapSlider_H_
12 #define overlapSlider_H_
13 
14 #include "lgrGui.h"
15 
16 #include "lgrZoomableWidget.h"
17 #include "multiBoxSlider.h"
18 #include "dragComponent.h"
19 #include <QtGui/QMatrix>
20 
21 class QPainter;
22 
23 namespace MAKLogger
24 {
25 
28  public DtMultiBoxSlider, public DtDragComponent
29  {
30  Q_OBJECT
31 
32  public:
33 
35  explicit DtOverlapSlider(QWidget* parent);
36 
38  virtual DtSliderBar* addRange(QString name,float start,float end);
39 
41  virtual void removeRange(QString name);
42 
44  virtual void clearRanges();
45 
47  void setBarColors(QColor top,QColor bottom);
48 
49  public slots:
50  void selectBarByIndex(int index);
51 
52  signals:
53  void barMoved(DtSliderBar*);
54  void barSizeChanged(DtSliderBar*);
55 
56  protected:
57 
59  virtual void moveBox(DtSliderBox* box,float v);
60 
61  virtual void enterEvent( QEvent* );
62  virtual void leaveEvent( QEvent* );
63  virtual void paintEvent( QPaintEvent* );
64  virtual void mouseReleaseEvent(QMouseEvent*);
65  virtual void mouseMoveEvent( QMouseEvent* );
66  virtual void mousePressEvent( QMouseEvent* );
67  virtual void resizeEvent( QResizeEvent* );
68 
69  virtual void draw(QPainter& painter,QRect boundingRect);
70 
71  virtual void drawBars(QPainter& painter) const;
72  virtual void drawBoxes(QPainter& painter) const;
73 
74  virtual void drawBar(QPainter& painter,DtSliderBar* bar) const;
75  virtual void drawBox(QPainter& painter,DtSliderBox* box) const;
76 
77  QMatrix myDrawnMatrix;
78  QColor myTopColor;
79  QColor myBottomColor;
80 
81 
84  };
85 }
86 
87 #endif

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)