MAK Data Logger API Documentation for DIS
sliderBar.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef sliderBar_H_
10 #define sliderBar_H_
11 
12 #include "lgrGui.h"
13 
14 #include <QtCore/QString>
15 #include <QtGui/QColor>
16 
17 class QPixmap;
18 class QRectF;
19 
20 namespace MAKLogger
21 {
22  class DtSliderBox;
23 
26  {
27  public:
28 
30  DtSliderBar();
31 
33  DtSliderBar(float start,float end);
34 
36  virtual ~DtSliderBar();
37 
39  float start() const;
40 
42  float end() const;
43 
45  float width() const;
46 
48  const QString& name() const;
49 
51  void setName(const QString& aName);
52 
54  const QPixmap* image() const;
55 
57  void setImage(QPixmap*);
58 
60  QColor color() const;
61 
63  void setColor(QColor c);
64 
65  bool selected() const;
66  void setSelected(bool value);
67 
68  bool pressed() const;
69  void setPressed(bool value);
70 
71  void setFixedSize(bool);
72  bool fixedSize() const;
73 
74  void setStartEnd(float start,float end);
75 
77 
78  DtSliderBox* startBox();
79  const DtSliderBox* startBox() const;
81 
83 
84  DtSliderBox* endBox();
85  const DtSliderBox* endBox() const;
87 
89  QRectF bounds(QRectF viewport) const;
90 
92  QRectF boundsWithBoxes(QRectF viewport) const;
93 
94  protected:
95 
96  QColor myColor;
97 
99  float myEndPosition;
100 
103 
104  QString myName;
105  QPixmap* myImage;
106 
108  bool myPressed;
110  };
111 }
112 
113 #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)