-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 8 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.h | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index f4153a0..c17271f 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -1,54 +1,62 @@ | |||
1 | /* | 1 | /* |
2 | * bluebase.cpp * | 2 | * bluebase.cpp * |
3 | * --------------------- | 3 | * --------------------- |
4 | * | 4 | * |
5 | * begin : Sun 10 17:20:00 CEST 2002 | 5 | * begin : Sun 10 17:20:00 CEST 2002 |
6 | * copyright : (c) 2002 by Maximilian Reiß | 6 | * copyright : (c) 2002 by Maximilian Reiß |
7 | * email : max.reiss@gmx.de | 7 | * email : max.reiss@gmx.de |
8 | * | 8 | * |
9 | */ | 9 | */ |
10 | /*************************************************************************** | 10 | /*************************************************************************** |
11 | * * | 11 | * * |
12 | * This program is free software; you can redistribute it and/or modify * | 12 | * This program is free software; you can redistribute it and/or modify * |
13 | * it under the terms of the GNU General Public License as published by * | 13 | * it under the terms of the GNU General Public License as published by * |
14 | * the Free Software Foundation; either version 2 of the License, or * | 14 | * the Free Software Foundation; either version 2 of the License, or * |
15 | * (at your option) any later version. * | 15 | * (at your option) any later version. * |
16 | * * | 16 | * * |
17 | ***************************************************************************/ | 17 | ***************************************************************************/ |
18 | 18 | ||
19 | #include "bluebase.h" | 19 | #include "bluebase.h" |
20 | #include "scandialog.h" | ||
20 | 21 | ||
21 | #include <qframe.h> | 22 | #include <qframe.h> |
22 | #include <qlabel.h> | 23 | #include <qlabel.h> |
23 | #include <qpushbutton.h> | 24 | #include <qpushbutton.h> |
24 | #include <qlayout.h> | 25 | #include <qlayout.h> |
25 | #include <qvariant.h> | 26 | #include <qvariant.h> |
26 | #include <qwhatsthis.h> | 27 | #include <qwhatsthis.h> |
27 | #include <qimage.h> | 28 | #include <qimage.h> |
28 | #include <qpixmap.h> | 29 | #include <qpixmap.h> |
29 | #include <qtabwidget.h> | 30 | #include <qtabwidget.h> |
30 | #include <qscrollview.h> | 31 | #include <qscrollview.h> |
31 | #include <qvbox.h> | 32 | #include <qvbox.h> |
32 | #include <qapplication.h> | 33 | #include <qapplication.h> |
33 | #include <qcheckbox.h> | 34 | #include <qcheckbox.h> |
34 | 35 | ||
35 | #include <qpe/resource.h> | 36 | #include <qpe/resource.h> |
36 | 37 | ||
37 | BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) | 38 | BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) |
38 | : BluetoothBase( parent, name, fl ) { | 39 | : BluetoothBase( parent, name, fl ) { |
39 | 40 | ||
40 | 41 | ||
42 | QObject::connect( (QObject*) PushButton2, SIGNAL( clicked() ), this, SLOT(startScan())); | ||
43 | |||
41 | QPalette pal = this->palette(); | 44 | QPalette pal = this->palette(); |
42 | QColor col = pal.color(QPalette::Active, QColorGroup::Background); | 45 | QColor col = pal.color(QPalette::Active, QColorGroup::Background); |
43 | pal.setColor(QPalette::Active, QColorGroup::Button, col); | 46 | pal.setColor(QPalette::Active, QColorGroup::Button, col); |
44 | pal.setColor(QPalette::Inactive, QColorGroup::Button, col); | 47 | pal.setColor(QPalette::Inactive, QColorGroup::Button, col); |
45 | pal.setColor(QPalette::Normal, QColorGroup::Button, col); | 48 | pal.setColor(QPalette::Normal, QColorGroup::Button, col); |
46 | pal.setColor(QPalette::Disabled, QColorGroup::Button, col); | 49 | pal.setColor(QPalette::Disabled, QColorGroup::Button, col); |
47 | this->setPalette(pal); | 50 | this->setPalette(pal); |
48 | } | 51 | } |
49 | 52 | ||
50 | 53 | ||
54 | void BlueBase::startScan() { | ||
55 | Form3 *scan = new Form3( this, "", true); | ||
56 | scan->exec(); | ||
57 | } | ||
58 | |||
51 | BlueBase::~BlueBase(){ | 59 | BlueBase::~BlueBase(){ |
52 | } | 60 | } |
53 | 61 | ||
54 | 62 | ||
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h index 4d53e99..29c45be 100644 --- a/noncore/net/opietooth/manager/bluebase.h +++ b/noncore/net/opietooth/manager/bluebase.h | |||
@@ -1,34 +1,39 @@ | |||
1 | 1 | ||
2 | #ifndef BLUEBASE_H | 2 | #ifndef BLUEBASE_H |
3 | #define BLUEBASE_H | 3 | #define BLUEBASE_H |
4 | 4 | ||
5 | #include <qvariant.h> | 5 | #include <qvariant.h> |
6 | #include <qwidget.h> | 6 | #include <qwidget.h> |
7 | #include <qscrollview.h> | 7 | #include <qscrollview.h> |
8 | #include <qsplitter.h> | 8 | #include <qsplitter.h> |
9 | 9 | ||
10 | #include "bluetoothbase.h" | 10 | #include "bluetoothbase.h" |
11 | 11 | ||
12 | class QVBox; | 12 | class QVBox; |
13 | class QHBoxLayout; | 13 | class QHBoxLayout; |
14 | class QGridLayout; | 14 | class QGridLayout; |
15 | class QFrame; | 15 | class QFrame; |
16 | class QLabel; | 16 | class QLabel; |
17 | class QPushButton; | 17 | class QPushButton; |
18 | class QTabWidget; | 18 | class QTabWidget; |
19 | class QCheckBox; | 19 | class QCheckBox; |
20 | 20 | ||
21 | class BlueBase : public BluetoothBase { | 21 | class BlueBase : public BluetoothBase { |
22 | Q_OBJECT | 22 | Q_OBJECT |
23 | 23 | ||
24 | public: | 24 | public: |
25 | BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 25 | BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
26 | ~BlueBase(); | 26 | ~BlueBase(); |
27 | 27 | ||
28 | protected: | 28 | protected: |
29 | 29 | ||
30 | |||
31 | private slots: | ||
32 | void startScan(); | ||
33 | |||
34 | |||
30 | }; | 35 | }; |
31 | 36 | ||
32 | 37 | ||
33 | 38 | ||
34 | #endif | 39 | #endif |