summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/wirelessapplet/wireless.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/applets/wirelessapplet/wireless.cpp b/noncore/applets/wirelessapplet/wireless.cpp
index 711d0dd..0491a86 100644
--- a/noncore/applets/wirelessapplet/wireless.cpp
+++ b/noncore/applets/wirelessapplet/wireless.cpp
@@ -15,48 +15,51 @@
15#include "mgraph.h" 15#include "mgraph.h"
16#include "advancedconfig.h" 16#include "advancedconfig.h"
17 17
18/* OPIE */ 18/* OPIE */
19#include <opie2/onetwork.h> 19#include <opie2/onetwork.h>
20#include <opie2/otaskbarapplet.h> 20#include <opie2/otaskbarapplet.h>
21#include <qpe/config.h> 21#include <qpe/config.h>
22#include <qpe/qpeapplication.h> 22#include <qpe/qpeapplication.h>
23 23
24/* QT */ 24/* QT */
25#include <qradiobutton.h> 25#include <qradiobutton.h>
26#include <qpushbutton.h> 26#include <qpushbutton.h>
27#include <qpainter.h> 27#include <qpainter.h>
28#include <qlabel.h> 28#include <qlabel.h>
29#include <qslider.h> 29#include <qslider.h>
30#include <qbuttongroup.h> 30#include <qbuttongroup.h>
31#include <qlayout.h> 31#include <qlayout.h>
32#include <qfile.h> 32#include <qfile.h>
33#include <qtextstream.h> 33#include <qtextstream.h>
34 34
35/* STD */ 35/* STD */
36#include <math.h> 36#include <math.h>
37#include <sys/types.h> 37#include <sys/types.h>
38#include <signal.h> 38#include <signal.h>
39#if defined (__GNUC__) && (__GNUC__ < 3)
40#define round qRound
41#endif
39 42
40//#define MDEBUG 43//#define MDEBUG
41#undef MDEBUG 44#undef MDEBUG
42 45
43using namespace Opie::Ui; 46using namespace Opie::Ui;
44using namespace Opie::Net; 47using namespace Opie::Net;
45WirelessControl::WirelessControl( WirelessApplet *applet, QWidget *parent, const char *name ) 48WirelessControl::WirelessControl( WirelessApplet *applet, QWidget *parent, const char *name )
46 : QFrame( parent, name, WStyle_StaysOnTop | WType_Popup ), applet( applet ) 49 : QFrame( parent, name, WStyle_StaysOnTop | WType_Popup ), applet( applet )
47{ 50{
48 51
49 readConfig(); 52 readConfig();
50 writeConfigEntry( "UpdateFrequency", updateFrequency ); 53 writeConfigEntry( "UpdateFrequency", updateFrequency );
51 54
52 setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); 55 setFrameStyle( QFrame::PopupPanel | QFrame::Raised );
53 QGridLayout *grid = new QGridLayout( this, 3, 2, 6, 2, "top layout" ); 56 QGridLayout *grid = new QGridLayout( this, 3, 2, 6, 2, "top layout" );
54 57
55 /* status label */ 58 /* status label */
56 59
57 statusLabel = new QLabel( this, "statuslabel" ); 60 statusLabel = new QLabel( this, "statuslabel" );
58 QString text( "Wireless Status:<br>" 61 QString text( "Wireless Status:<br>"
59 "*** Unknown ***<br>" 62 "*** Unknown ***<br>"
60 "Card not inserted ?<br>" 63 "Card not inserted ?<br>"
61 "Or Sharp ROM ?<br>" 64 "Or Sharp ROM ?<br>"
62 "CELL: 00:00:00:00:00:00" ); 65 "CELL: 00:00:00:00:00:00" );