summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/.cvsignore8
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp48
-rw-r--r--noncore/net/opietooth/manager/bluebase.h18
-rw-r--r--noncore/net/opietooth/manager/main.cpp10
-rw-r--r--noncore/net/opietooth/manager/manager.pro12
5 files changed, 27 insertions, 69 deletions
diff --git a/noncore/net/opietooth/manager/.cvsignore b/noncore/net/opietooth/manager/.cvsignore
new file mode 100644
index 0000000..8a37ec3
--- a/dev/null
+++ b/noncore/net/opietooth/manager/.cvsignore
@@ -0,0 +1,8 @@
1Makefile
2bluetoothbase.cpp
3bluetoothbase.h
4devicedialog.cpp
5devicedialog.h
6moc_*
7scandialog.cpp
8scandialog.h
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 8ba5e0e..f4153a0 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -35,52 +35,7 @@
35#include <qpe/resource.h> 35#include <qpe/resource.h>
36 36
37BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) 37BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl )
38 : QWidget( parent, name, fl ) { 38 : BluetoothBase( parent, name, fl ) {
39
40 QWidget *d = QApplication::desktop();
41 int w=d->width();
42 int h=d->height();
43 resize( w , h );
44
45
46 QVBoxLayout * TopLayout = new QVBoxLayout(this);
47 TabWidget = new QTabWidget( this, "TabWidget" );
48 TopLayout->addWidget(TabWidget);
49 TabWidget->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, TabWidget->sizePolicy().hasHeightForWidth() ) );
50 TabWidget->setAutoMask( FALSE );
51 TabWidget->setTabShape( QTabWidget::Rounded );
52
53 Tab = new QWidget( TabWidget, "tab" );
54
55 QVBoxLayout * Layout = new QVBoxLayout(Tab);
56
57 Test = new QLabel( Tab, "test");
58 ScanButton = new QPushButton(Tab, "scanbutton");
59
60 Layout->addWidget(Test);
61 Layout->addWidget(ScanButton);
62
63
64 TabWidget->insertTab( Tab, tr( "Geräte" ) );
65
66
67 TabConn = new QWidget( TabWidget, "tab3" );
68
69 TabWidget->insertTab( TabConn, tr("Connections") );
70
71 TabConf = new QWidget( TabWidget, "tab2" );
72
73 AuthCheckBox = new QCheckBox (TabConf, "auth" );
74 QLabel *AuthLabel = new QLabel( TabConf, "authlabel" );
75 AuthLabel->setText( tr("enable authentification"));
76
77 CryptCheckBox = new QCheckBox (TabConf, "crypt");
78 QLabel *CryptLabel = new QLabel ( TabConf, "cryptlabel");
79 CryptLabel->setText(tr("enable encryption"));
80
81
82 TabWidget->insertTab( TabConf, tr("Configuration"));
83
84 39
85 40
86 QPalette pal = this->palette(); 41 QPalette pal = this->palette();
@@ -96,3 +51,4 @@ BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl )
96BlueBase::~BlueBase(){ 51BlueBase::~BlueBase(){
97} 52}
98 53
54
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h
index e2b013e..4d53e99 100644
--- a/noncore/net/opietooth/manager/bluebase.h
+++ b/noncore/net/opietooth/manager/bluebase.h
@@ -7,6 +7,8 @@
7#include <qscrollview.h> 7#include <qscrollview.h>
8#include <qsplitter.h> 8#include <qsplitter.h>
9 9
10#include "bluetoothbase.h"
11
10class QVBox; 12class QVBox;
11class QHBoxLayout; 13class QHBoxLayout;
12class QGridLayout; 14class QGridLayout;
@@ -16,25 +18,17 @@ class QPushButton;
16class QTabWidget; 18class QTabWidget;
17class QCheckBox; 19class QCheckBox;
18 20
19class BlueBase : public QWidget 21class BlueBase : public BluetoothBase {
20{
21 Q_OBJECT 22 Q_OBJECT
22 23
23public: 24public:
24 BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 25 BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
25 ~BlueBase(); 26 ~BlueBase();
26 27
27
28
29protected: 28protected:
30 QTabWidget *TabWidget; 29
31 QWidget *Tab;
32 QWidget *TabConf;
33 QWidget *TabConn;
34 QCheckBox *AuthCheckBox;
35 QCheckBox *CryptCheckBox;
36 QLabel *Test;
37 QPushButton *ScanButton;
38}; 30};
39 31
32
33
40#endif 34#endif
diff --git a/noncore/net/opietooth/manager/main.cpp b/noncore/net/opietooth/manager/main.cpp
index c7ccf23..d566419 100644
--- a/noncore/net/opietooth/manager/main.cpp
+++ b/noncore/net/opietooth/manager/main.cpp
@@ -17,20 +17,20 @@
17 * * 17 * *
18 ***************************************************************************/ 18 ***************************************************************************/
19 19
20#include "bluemanager.h" 20#include "bluebase.h"
21#include <qpe/qpeapplication.h> 21#include <qpe/qpeapplication.h>
22 22
23QPEApplication *BluetoothApp; 23QPEApplication *BluetoothApp;
24 24
25int main( int argc, char ** argv ) 25int main( int argc, char ** argv ) {
26{
27 QPEApplication a(argc, argv); 26 QPEApplication a(argc, argv);
28 BluetoothApp=&a; 27 BluetoothApp=&a;
29 28
30 BlueManager t; 29 BlueBase t;
31 30
32 t.setCaption( BlueManager::tr("Bluetooth Manager") ); 31 t.setCaption( BlueBase::tr("Bluetooth Manager") );
33 a.showMainWidget(&t); 32 a.showMainWidget(&t);
34 33
35 return a.exec(); 34 return a.exec();
36} 35}
36
diff --git a/noncore/net/opietooth/manager/manager.pro b/noncore/net/opietooth/manager/manager.pro
index 3cb308c..c369eba 100644
--- a/noncore/net/opietooth/manager/manager.pro
+++ b/noncore/net/opietooth/manager/manager.pro
@@ -1,12 +1,12 @@
1 TEMPLATE= app 1 TEMPLATE= app
2 #CONFIG = qt warn_on debug 2 #CONFIG = qt warn_on debug
3 CONFIG = qt warn_on release 3 CONFIG = qt warn_on release
4 HEADERS = bluemanager.h 4HEADERS = bluebase.h
5 SOURCES = main.cpp bluemanager.cpp 5SOURCES = main.cpp bluebase.cpp
6
7 INCLUDEPATH+= $(OPIEDIR)/include 6 INCLUDEPATH+= $(OPIEDIR)/include
7INCLUDEPATH += $(OPIEDIR)/noncore/opietooth/lib
8 DEPENDPATH+= $(OPIEDIR)/include 8 DEPENDPATH+= $(OPIEDIR)/include
9LIBS += -lqpe 9LIBS += -lqpe -lopietooth
10INTERFACES = bluetoothbase.ui devicedialog.ui scandialog.ui 10INTERFACES = bluetoothbase.ui devicedialog.ui scandialog.ui
11 TARGET = bluetooth-manager 11TARGET = $(OPIEDIR)/bin/bluetooth-manager
12 DESTDIR = $(OPIEDIR)/bin 12