Diffstat (limited to 'core/applets/volumeapplet/volume.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/volumeapplet/volume.h | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/core/applets/volumeapplet/volume.h b/core/applets/volumeapplet/volume.h index cb0be72..a982f53 100644 --- a/core/applets/volumeapplet/volume.h +++ b/core/applets/volumeapplet/volume.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
@@ -27,3 +27,2 @@ | |||
27 | #include <qguardedptr.h> | 27 | #include <qguardedptr.h> |
28 | #include <qtimer.h> | ||
29 | 28 | ||
@@ -31,2 +30,4 @@ class QSlider; | |||
31 | class QCheckBox; | 30 | class QCheckBox; |
31 | class QPushButton; | ||
32 | class QTimer; | ||
32 | 33 | ||
@@ -36,3 +37,3 @@ class VolumeControl : public QFrame | |||
36 | public: | 37 | public: |
37 | VolumeControl( bool showMic=FALSE, QWidget *parent=0, const char *name=0 ); | 38 | VolumeControl( QWidget *parent=0, const char *name=0 ); |
38 | 39 | ||
@@ -40,3 +41,2 @@ public: | |||
40 | QSlider *slider; | 41 | QSlider *slider; |
41 | QSlider *mic; | ||
42 | QCheckBox *muteBox; | 42 | QCheckBox *muteBox; |
@@ -45,3 +45,11 @@ private: | |||
45 | void keyPressEvent( QKeyEvent * ); | 45 | void keyPressEvent( QKeyEvent * ); |
46 | void createView(bool showMic = FALSE); | 46 | |
47 | private slots: | ||
48 | void ButtonChanged(); | ||
49 | void rateTimerDone(); | ||
50 | |||
51 | private: | ||
52 | QPushButton *upButton; | ||
53 | QPushButton *downButton; | ||
54 | QTimer *rateTimer; | ||
47 | }; | 55 | }; |
@@ -59,24 +67,10 @@ public slots: | |||
59 | void volumeChanged( bool muted ); | 67 | void volumeChanged( bool muted ); |
60 | void micChanged( bool muted ); | ||
61 | |||
62 | void setVolume( int percent ); | 68 | void setVolume( int percent ); |
63 | void setMic( int percent ); | ||
64 | |||
65 | void sliderMoved( int percent ); | 69 | void sliderMoved( int percent ); |
66 | void micMoved( int percent ); | ||
67 | void mute( bool ); | 70 | void mute( bool ); |
68 | 71 | ||
69 | void showVolControl(bool showMic = FALSE); | ||
70 | void advVolControl(); | ||
71 | |||
72 | private: | 72 | private: |
73 | void readSystemVolume(); | 73 | void readSystemVolume(); |
74 | void readSystemMic(); | ||
75 | |||
76 | void writeSystemVolume(); | 74 | void writeSystemVolume(); |
77 | void writeSystemMic(); | ||
78 | |||
79 | void keyPressEvent ( QKeyEvent * e ); | ||
80 | void mousePressEvent( QMouseEvent * ); | 75 | void mousePressEvent( QMouseEvent * ); |
81 | void mouseReleaseEvent( QMouseEvent *); | ||
82 | void paintEvent( QPaintEvent* ); | 76 | void paintEvent( QPaintEvent* ); |
@@ -84,6 +78,5 @@ private: | |||
84 | private: | 78 | private: |
85 | int volumePercent, micPercent; | 79 | int volumePercent; |
86 | bool muted, micMuted; | 80 | bool muted; |
87 | QPixmap volumePixmap; | 81 | QPixmap volumePixmap; |
88 | QTimer *advancedTimer; | ||
89 | }; | 82 | }; |
@@ -92,2 +85 @@ private: | |||
92 | #endif // __VOLUME_APPLET_H__ | #endif // __VOLUME_APPLET_H__ | |
93 | |||