author | harlekin <harlekin> | 2002-12-13 20:17:54 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-12-13 20:17:54 (UTC) |
commit | 5fd9574aca2cbcf9fde0b4a43ae1881af7ba2fa0 (patch) (unidiff) | |
tree | acd77f0506db69998638c3eea4fc1e3673fb62fd /core/applets/volumeapplet/volume.h | |
parent | e348262d418e3a133d13d039ed23da4625726f9d (diff) | |
download | opie-5fd9574aca2cbcf9fde0b4a43ae1881af7ba2fa0.zip opie-5fd9574aca2cbcf9fde0b4a43ae1881af7ba2fa0.tar.gz opie-5fd9574aca2cbcf9fde0b4a43ae1881af7ba2fa0.tar.bz2 |
added bass and treble control
Diffstat (limited to 'core/applets/volumeapplet/volume.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/volumeapplet/volume.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/applets/volumeapplet/volume.h b/core/applets/volumeapplet/volume.h index 4d988ac..d2345b5 100644 --- a/core/applets/volumeapplet/volume.h +++ b/core/applets/volumeapplet/volume.h | |||
@@ -52,12 +52,14 @@ protected slots: | |||
52 | void micChanged ( bool muted ); | 52 | void micChanged ( bool muted ); |
53 | 53 | ||
54 | private slots: | 54 | private slots: |
55 | void volMoved ( int percent ); | 55 | void volMoved ( int percent ); |
56 | void micMoved ( int percent ); | 56 | void micMoved ( int percent ); |
57 | void alarmMoved ( int percent ); | 57 | void alarmMoved ( int percent ); |
58 | void bassMoved( int percent ); | ||
59 | void trebleMoved( int percent ); | ||
58 | 60 | ||
59 | void volMuteToggled ( bool ); | 61 | void volMuteToggled ( bool ); |
60 | void micMuteToggled ( bool ); | 62 | void micMuteToggled ( bool ); |
61 | void alarmSoundToggled ( bool ); | 63 | void alarmSoundToggled ( bool ); |
62 | void keyClickToggled ( bool ); | 64 | void keyClickToggled ( bool ); |
63 | void screenTapToggled ( bool ); | 65 | void screenTapToggled ( bool ); |
@@ -68,19 +70,23 @@ private slots: | |||
68 | private: | 70 | private: |
69 | void readConfig ( bool force = false ); | 71 | void readConfig ( bool force = false ); |
70 | 72 | ||
71 | enum eUpdate { | 73 | enum eUpdate { |
72 | UPD_None, | 74 | UPD_None, |
73 | UPD_Vol, | 75 | UPD_Vol, |
74 | UPD_Mic | 76 | UPD_Mic, |
77 | UPD_Bass, | ||
78 | UPD_Treble | ||
75 | }; | 79 | }; |
76 | void writeConfigEntry ( const char *entry, int val, eUpdate upd ); | 80 | void writeConfigEntry ( const char *entry, int val, eUpdate upd ); |
77 | 81 | ||
78 | 82 | ||
79 | private: | 83 | private: |
80 | QSlider *volSlider; | 84 | QSlider *volSlider; |
85 | QSlider *bassSlider; | ||
86 | QSlider *trebleSlider; | ||
81 | QSlider *micSlider; | 87 | QSlider *micSlider; |
82 | QSlider *alarmSlider; | 88 | QSlider *alarmSlider; |
83 | OLedBox *volLed; | 89 | OLedBox *volLed; |
84 | OLedBox *micLed; | 90 | OLedBox *micLed; |
85 | OLedBox *alarmLed; | 91 | OLedBox *alarmLed; |
86 | 92 | ||
@@ -91,12 +97,14 @@ private: | |||
91 | QPushButton *downButton; | 97 | QPushButton *downButton; |
92 | QTimer *rateTimer; | 98 | QTimer *rateTimer; |
93 | 99 | ||
94 | int m_vol_percent; | 100 | int m_vol_percent; |
95 | int m_mic_percent; | 101 | int m_mic_percent; |
96 | int m_alarm_percent; | 102 | int m_alarm_percent; |
103 | int m_bass_percent; | ||
104 | int m_treble_percent; | ||
97 | bool m_vol_muted; | 105 | bool m_vol_muted; |
98 | bool m_mic_muted; | 106 | bool m_mic_muted; |
99 | bool m_snd_alarm; | 107 | bool m_snd_alarm; |
100 | bool m_snd_touch; | 108 | bool m_snd_touch; |
101 | bool m_snd_key; | 109 | bool m_snd_key; |
102 | 110 | ||