comparison widgets/LevelPanToolButton.h @ 932:37bb4b416c52 tonioni

Render direct to widget (necessary to avoid pixel doubling on OS/X)
author Chris Cannam
date Wed, 25 Mar 2015 11:27:46 +0000
parents 86df7de08e03
children 9022635c615a
comparison
equal deleted inserted replaced
931:7cf497b72da3 932:37bb4b416c52
40 void setLevel(float); 40 void setLevel(float);
41 41
42 /// Set pan in the range [-1,1] -- will be rounded 42 /// Set pan in the range [-1,1] -- will be rounded
43 void setPan(float); 43 void setPan(float);
44 44
45 /// Redraw icon for toolbar button based on level-pan widget contents
46 void redraw();
47
48 signals: 45 signals:
49 void levelChanged(float); 46 void levelChanged(float);
50 void panChanged(float); 47 void panChanged(float);
51 48
52 private slots: 49 private slots:
53 void selfLevelChanged(float); 50 void selfLevelChanged(float);
54 void selfClicked(); 51 void selfClicked();
55 52
56 protected: 53 protected:
54 void paintEvent(QPaintEvent *);
55
57 LevelPanWidget *m_lpw; 56 LevelPanWidget *m_lpw;
58 int m_pixels; 57 int m_pixels;
59 bool m_muted; 58 bool m_muted;
60 float m_savedLevel; 59 float m_savedLevel;
61 }; 60 };