Diffstat (limited to 'core/applets/volumeapplet/volume.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/volumeapplet/volume.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp index 38f827e..c736437 100644 --- a/core/applets/volumeapplet/volume.cpp +++ b/core/applets/volumeapplet/volume.cpp | |||
@@ -2,65 +2,61 @@ | |||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include <stdio.h> | 21 | #include <stdio.h> |
22 | 22 | ||
23 | #include "volume.h" | 23 | #include "volume.h" |
24 | 24 | ||
25 | #include <qpe/resource.h> | 25 | #include <qpe/resource.h> |
26 | #include <qpe/qpeapplication.h> | ||
27 | #include <qpe/applnk.h> | 26 | #include <qpe/applnk.h> |
28 | #include <qpe/config.h> | 27 | #include <qpe/config.h> |
29 | #if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) | 28 | #if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) |
30 | #include <qpe/qcopenvelope_qws.h> | 29 | #include <qpe/qcopenvelope_qws.h> |
31 | #endif | 30 | #endif |
32 | 31 | ||
33 | #include <qpainter.h> | 32 | #include <qpainter.h> |
34 | #include <qcheckbox.h> | 33 | #include <qcheckbox.h> |
35 | #include <qslider.h> | 34 | #include <qslider.h> |
36 | #include <qlayout.h> | 35 | #include <qlayout.h> |
37 | #include <qframe.h> | ||
38 | #include <qpixmap.h> | ||
39 | #include <qvbox.h> | 36 | #include <qvbox.h> |
40 | #include <qlabel.h> | 37 | #include <qlabel.h> |
41 | 38 | ||
42 | #include <qtoolbutton.h> | ||
43 | #include <qpushbutton.h> | 39 | #include <qpushbutton.h> |
44 | #include <qtimer.h> | 40 | #include <qtimer.h> |
45 | 41 | ||
46 | #include <opie/odevice.h> | 42 | #include <opie/odevice.h> |
47 | 43 | ||
48 | #include "oledbox.h" | 44 | #include "oledbox.h" |
49 | 45 | ||
50 | using namespace Opie; | 46 | using namespace Opie; |
51 | 47 | ||
52 | #define RATE_TIMER_INTERVAL 100 | 48 | #define RATE_TIMER_INTERVAL 100 |
53 | // Ten times per second is fine (RATE_TIMER_INTERVAL 100). A shorter time | 49 | // Ten times per second is fine (RATE_TIMER_INTERVAL 100). A shorter time |
54 | // results in "hanging" buttons on the iPAQ due to quite high CPU consumption. | 50 | // results in "hanging" buttons on the iPAQ due to quite high CPU consumption. |
55 | 51 | ||
56 | 52 | ||
57 | /* XPM */ | 53 | /* XPM */ |
58 | static const char * vol_xpm[] = { | 54 | static const char * vol_xpm[] = { |
59 | "20 20 3 1", | 55 | "20 20 3 1", |
60 | " c None", | 56 | " c None", |
61 | ". c #0000FF", | 57 | ". c #0000FF", |
62 | "+ c #000000", | 58 | "+ c #000000", |
63 | " ", | 59 | " ", |
64 | " . ", | 60 | " . ", |
65 | " . . . . ", | 61 | " . . . . ", |
66 | " . . . . . . ", | 62 | " . . . . . . ", |