comparison widgets/Thumbwheel.h @ 189:5b7472db612b

* Add large chunks of context help in the optional status bar * Add an extra overlay mode in which even the centre frame is disabled * Fixes to FTP retrieval
author Chris Cannam
date Fri, 19 Jan 2007 13:13:14 +0000
parents e7cf6044c2a0
children c492902dba40
comparison
equal deleted inserted replaced
188:dd573e090eed 189:5b7472db612b
34 float getSpeed() const; 34 float getSpeed() const;
35 bool getTracking() const; 35 bool getTracking() const;
36 bool getShowScale() const; 36 bool getShowScale() const;
37 int getValue() const; 37 int getValue() const;
38 38
39 virtual void mousePressEvent(QMouseEvent *e);
40 virtual void mouseDoubleClickEvent(QMouseEvent *e);
41 virtual void mouseMoveEvent(QMouseEvent *e);
42 virtual void mouseReleaseEvent(QMouseEvent *e);
43 virtual void wheelEvent(QWheelEvent *e);
44 virtual void paintEvent(QPaintEvent *e);
45
46 void setRangeMapper(RangeMapper *mapper); // I take ownership, will delete 39 void setRangeMapper(RangeMapper *mapper); // I take ownership, will delete
47 const RangeMapper *getRangeMapper() const { return m_rangeMapper; } 40 const RangeMapper *getRangeMapper() const { return m_rangeMapper; }
48 float getMappedValue() const; 41 float getMappedValue() const;
49 42
50 void setShowToolTip(bool show); 43 void setShowToolTip(bool show);
51 44
52 QSize sizeHint() const; 45 QSize sizeHint() const;
53 46
54 signals: 47 signals:
55 void valueChanged(int); 48 void valueChanged(int);
49
50 void mouseEntered();
51 void mouseLeft();
56 52
57 public slots: 53 public slots:
58 void setMinimumValue(int min); 54 void setMinimumValue(int min);
59 void setMaximumValue(int max); 55 void setMaximumValue(int max);
60 void setDefaultValue(int deft); 56 void setDefaultValue(int deft);
66 void resetToDefault(); 62 void resetToDefault();
67 63
68 protected slots: 64 protected slots:
69 void updateMappedValue(int value); 65 void updateMappedValue(int value);
70 66
71 private: 67 protected:
68 virtual void mousePressEvent(QMouseEvent *e);
69 virtual void mouseDoubleClickEvent(QMouseEvent *e);
70 virtual void mouseMoveEvent(QMouseEvent *e);
71 virtual void mouseReleaseEvent(QMouseEvent *e);
72 virtual void wheelEvent(QWheelEvent *e);
73 virtual void paintEvent(QPaintEvent *e);
74 virtual void enterEvent(QEvent *);
75 virtual void leaveEvent(QEvent *);
76
72 int m_min; 77 int m_min;
73 int m_max; 78 int m_max;
74 int m_default; 79 int m_default;
75 int m_value; 80 int m_value;
76 float m_mappedValue; 81 float m_mappedValue;