summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/volumeapplet/config.in2
-rw-r--r--core/applets/volumeapplet/volume.cpp7
-rw-r--r--core/applets/volumeapplet/volume.h8
-rw-r--r--core/applets/volumeapplet/volumeapplet.pro7
-rw-r--r--noncore/settings/networksettings2/opietooth2/Opietooth.cpp2
-rw-r--r--noncore/settings/networksettings2/opietooth2/Opietooth.h4
6 files changed, 17 insertions, 13 deletions
diff --git a/core/applets/volumeapplet/config.in b/core/applets/volumeapplet/config.in
index b18cd54..7ab1a27 100644
--- a/core/applets/volumeapplet/config.in
+++ b/core/applets/volumeapplet/config.in
@@ -1,4 +1,4 @@
1 config VOLUMEAPPLET 1 config VOLUMEAPPLET
2 boolean "opie-volumeapplet (set volume for microphone and speaker)" 2 boolean "opie-volumeapplet (set volume for microphone and speaker)"
3 default "y" 3 default "y"
4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE 4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2UI
diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp
index 45c106a..23c847d 100644
--- a/core/applets/volumeapplet/volume.cpp
+++ b/core/applets/volumeapplet/volume.cpp
@@ -11,45 +11,48 @@
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 "volume.h" 21#include "volume.h"
22 22
23/* OPIE */
23#include <opie2/oledbox.h> 24#include <opie2/oledbox.h>
24#include <opie2/odevice.h> 25#include <opie2/odevice.h>
25#include <opie2/otaskbarapplet.h> 26#include <opie2/otaskbarapplet.h>
26#include <qpe/resource.h> 27#include <qpe/resource.h>
27#include <qpe/applnk.h> 28#include <qpe/applnk.h>
28#include <qpe/config.h> 29#include <qpe/config.h>
29#include <qpe/qcopenvelope_qws.h> 30#include <qpe/qcopenvelope_qws.h>
31using namespace Opie::Core;
32using namespace Opie::Ui;
30 33
34/* QT */
31#include <qpainter.h> 35#include <qpainter.h>
32#include <qcheckbox.h> 36#include <qcheckbox.h>
33#include <qslider.h> 37#include <qslider.h>
34#include <qlayout.h> 38#include <qlayout.h>
35#include <qvbox.h> 39#include <qvbox.h>
36#include <qlabel.h> 40#include <qlabel.h>
37#include <qpushbutton.h> 41#include <qpushbutton.h>
38#include <qtimer.h> 42#include <qtimer.h>
39 43
44/* STD */
40#include <stdio.h> 45#include <stdio.h>
41 46
42using namespace Opie::Core;
43
44#define RATE_TIMER_INTERVAL 100 47#define RATE_TIMER_INTERVAL 100
45// Ten times per second is fine (RATE_TIMER_INTERVAL 100). A shorter time 48// Ten times per second is fine (RATE_TIMER_INTERVAL 100). A shorter time
46// results in "hanging" buttons on the iPAQ due to quite high CPU consumption. 49// results in "hanging" buttons on the iPAQ due to quite high CPU consumption.
47 50
48 51
49/* XPM */ 52/* XPM */
50using namespace Opie::Ui; 53using namespace Opie::Ui;
51static const char * vol_xpm[] = { 54static const char * vol_xpm[] = {
52"20 20 3 1", 55"20 20 3 1",
53" c None", 56" c None",
54". c #0000FF", 57". c #0000FF",
55"+ c #000000", 58"+ c #000000",
diff --git a/core/applets/volumeapplet/volume.h b/core/applets/volumeapplet/volume.h
index 454a688..958395f 100644
--- a/core/applets/volumeapplet/volume.h
+++ b/core/applets/volumeapplet/volume.h
@@ -20,25 +20,25 @@
20 20
21#ifndef __VOLUME_APPLET_H__ 21#ifndef __VOLUME_APPLET_H__
22#define __VOLUME_APPLET_H__ 22#define __VOLUME_APPLET_H__
23 23
24 24
25#include <qframe.h> 25#include <qframe.h>
26 26
27class QPixmap; 27class QPixmap;
28class QTimer; 28class QTimer;
29class QSlider; 29class QSlider;
30class QCheckBox; 30class QCheckBox;
31class QButton; 31class QButton;
32class OLedBox; 32namespace Opie { namespace Ui { class OLedBox; }; };
33 33
34class VolumeApplet; 34class VolumeApplet;
35 35
36class VolumeControl : public QFrame { 36class VolumeControl : public QFrame {
37 Q_OBJECT 37 Q_OBJECT
38 38
39public: 39public:
40 VolumeControl ( VolumeApplet *icon, bool showMic = false, QWidget *parent=0, const char *name=0 ); 40 VolumeControl ( VolumeApplet *icon, bool showMic = false, QWidget *parent=0, const char *name=0 );
41 41
42 bool volMuted ( ) const; 42 bool volMuted ( ) const;
43 int volPercent ( ) const; 43 int volPercent ( ) const;
44 44
@@ -77,27 +77,27 @@ private:
77 UPD_Bass, 77 UPD_Bass,
78 UPD_Treble 78 UPD_Treble
79 }; 79 };
80 void writeConfigEntry ( const char *entry, int val, eUpdate upd ); 80 void writeConfigEntry ( const char *entry, int val, eUpdate upd );
81 81
82 82
83private: 83private:
84 QSlider *volSlider; 84 QSlider *volSlider;
85 QSlider *bassSlider; 85 QSlider *bassSlider;
86 QSlider *trebleSlider; 86 QSlider *trebleSlider;
87 QSlider *micSlider; 87 QSlider *micSlider;
88 QSlider *alarmSlider; 88 QSlider *alarmSlider;
89 OLedBox *volLed; 89 Opie::Ui::OLedBox *volLed;
90 OLedBox *micLed; 90 Opie::Ui::OLedBox *micLed;
91 OLedBox *alarmLed; 91 Opie::Ui::OLedBox *alarmLed;
92 92
93 QCheckBox *alarmBox; 93 QCheckBox *alarmBox;
94 QCheckBox *tapBox; 94 QCheckBox *tapBox;
95 QCheckBox *keyBox; 95 QCheckBox *keyBox;
96 QPushButton *upButton; 96 QPushButton *upButton;
97 QPushButton *downButton; 97 QPushButton *downButton;
98 QTimer *rateTimer; 98 QTimer *rateTimer;
99 99
100 int m_vol_percent; 100 int m_vol_percent;
101 int m_mic_percent; 101 int m_mic_percent;
102 int m_alarm_percent; 102 int m_alarm_percent;
103 int m_bass_percent; 103 int m_bass_percent;
diff --git a/core/applets/volumeapplet/volumeapplet.pro b/core/applets/volumeapplet/volumeapplet.pro
index e118dbd..3067a0f 100644
--- a/core/applets/volumeapplet/volumeapplet.pro
+++ b/core/applets/volumeapplet/volumeapplet.pro
@@ -1,14 +1,13 @@
1 TEMPLATE= lib 1 TEMPLATE= lib
2 CONFIG += qt plugin warn_on 2 CONFIG += qt plugin warn_on
3 HEADERS = volume.h oledbox.h 3 HEADERS = volume.h
4 #SOURCES= volume.cpp oledbox.cpp
5 SOURCES = volume.cpp 4 SOURCES = volume.cpp
6 TARGET = volumeapplet 5 TARGET = volumeapplet
7 DESTDIR = $(OPIEDIR)/plugins/applets 6 DESTDIR = $(OPIEDIR)/plugins/applets
8INCLUDEPATH += $(OPIEDIR)/include 7 INCLUDEPATH+= $(OPIEDIR)/include
9DEPENDPATH += 8DEPENDPATH +=
10LIBS += -lqpe -lopiecore2 9LIBS += -lqpe -lopiecore2 -lopieui2
11 VERSION = 1.0.0 10 VERSION = 1.0.0
12 11
13include( $(OPIEDIR)/include.pro ) 12include( $(OPIEDIR)/include.pro )
14target.path = $$prefix/plugins/applets 13target.path = $$prefix/plugins/applets
diff --git a/noncore/settings/networksettings2/opietooth2/Opietooth.cpp b/noncore/settings/networksettings2/opietooth2/Opietooth.cpp
index 8d71f32..8ea3a48 100644
--- a/noncore/settings/networksettings2/opietooth2/Opietooth.cpp
+++ b/noncore/settings/networksettings2/opietooth2/Opietooth.cpp
@@ -1,14 +1,16 @@
1#include <opie2/odebug.h> 1#include <opie2/odebug.h>
2#include <opie2/oledbox.h> 2#include <opie2/oledbox.h>
3using namespace Opie::Core;
4using namespace Opie::Ui;
3 5
4#include <qpe/resource.h> 6#include <qpe/resource.h>
5#include <qcheckbox.h> 7#include <qcheckbox.h>
6#include <qgroupbox.h> 8#include <qgroupbox.h>
7#include <qlabel.h> 9#include <qlabel.h>
8#include <qprogressbar.h> 10#include <qprogressbar.h>
9#include <qheader.h> 11#include <qheader.h>
10#include <qmessagebox.h> 12#include <qmessagebox.h>
11#include <qapplication.h> 13#include <qapplication.h>
12#include <qlistbox.h> 14#include <qlistbox.h>
13#include <qdialog.h> 15#include <qdialog.h>
14#include <qlayout.h> 16#include <qlayout.h>
diff --git a/noncore/settings/networksettings2/opietooth2/Opietooth.h b/noncore/settings/networksettings2/opietooth2/Opietooth.h
index 9e53fcb..16a22d6 100644
--- a/noncore/settings/networksettings2/opietooth2/Opietooth.h
+++ b/noncore/settings/networksettings2/opietooth2/Opietooth.h
@@ -1,19 +1,19 @@
1#ifndef OPIETOOTH_H 1#ifndef OPIETOOTH_H
2#define OPIETOOTH_H 2#define OPIETOOTH_H
3 3
4#include <OTIcons.h> 4#include <OTIcons.h>
5 5
6#include <OTPairingGUI.h> 6#include <OTPairingGUI.h>
7class OLedBox; 7namespace Opie { namespace Ui { class OLedBox; }; };
8 8
9namespace Opietooth2 { 9namespace Opietooth2 {
10 10
11class OTGateway; 11class OTGateway;
12class OTDriver; 12class OTDriver;
13class OTInquiry; 13class OTInquiry;
14class OTPeer; 14class OTPeer;
15class PeerLVI; 15class PeerLVI;
16 16
17class OTPairing : public OTPairingGUI { 17class OTPairing : public OTPairingGUI {
18 18
19 Q_OBJECT 19 Q_OBJECT
@@ -100,25 +100,25 @@ private :
100 100
101 void refreshState( PeerLVI *, bool ); 101 void refreshState( PeerLVI *, bool );
102 void scanMode( bool ); 102 void scanMode( bool );
103 103
104 // load scanned devices 104 // load scanned devices
105 105
106 bool MyIcons; 106 bool MyIcons;
107 OTIcons * Icons; 107 OTIcons * Icons;
108 OTGateway * OT; 108 OTGateway * OT;
109 OTInquiry * Scanning; 109 OTInquiry * Scanning;
110 UUIDVector Filter; 110 UUIDVector Filter;
111 111
112 OLedBox * Paired_Led; 112 Opie::Ui::OLedBox * Paired_Led;
113 QTimer * StrengthTimer; 113 QTimer * StrengthTimer;
114 PeerLVI * Current; 114 PeerLVI * Current;
115 115
116 OTPeer * SelectedPeer; 116 OTPeer * SelectedPeer;
117 int SelectedChannel; 117 int SelectedChannel;
118}; 118};
119}; 119};
120 120
121#include <OTManageGUI.h> 121#include <OTManageGUI.h>
122namespace Opietooth2 { 122namespace Opietooth2 {
123 123
124class OTManage : public OTManageGUI { 124class OTManage : public OTManageGUI {