From 9deb3a3784c638abd44bb0a263ebec29b6a20d9a Mon Sep 17 00:00:00 2001 From: harlekin Date: Thu, 30 May 2002 18:32:39 +0000 Subject: gui stuff - not doing anything --- diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp new file mode 100644 index 0000000..8ba5e0e --- a/dev/null +++ b/noncore/net/opietooth/manager/bluebase.cpp @@ -0,0 +1,98 @@ +/* + * bluebase.cpp * + * --------------------- + * + * begin : Sun 10 17:20:00 CEST 2002 + * copyright : (c) 2002 by Maximilian Reiß + * email : max.reiss@gmx.de + * + */ +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include "bluebase.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) + : QWidget( parent, name, fl ) { + + QWidget *d = QApplication::desktop(); + int w=d->width(); + int h=d->height(); + resize( w , h ); + + + QVBoxLayout * TopLayout = new QVBoxLayout(this); + TabWidget = new QTabWidget( this, "TabWidget" ); + TopLayout->addWidget(TabWidget); + TabWidget->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, TabWidget->sizePolicy().hasHeightForWidth() ) ); + TabWidget->setAutoMask( FALSE ); + TabWidget->setTabShape( QTabWidget::Rounded ); + + Tab = new QWidget( TabWidget, "tab" ); + + QVBoxLayout * Layout = new QVBoxLayout(Tab); + + Test = new QLabel( Tab, "test"); + ScanButton = new QPushButton(Tab, "scanbutton"); + + Layout->addWidget(Test); + Layout->addWidget(ScanButton); + + + TabWidget->insertTab( Tab, tr( "Geräte" ) ); + + + TabConn = new QWidget( TabWidget, "tab3" ); + + TabWidget->insertTab( TabConn, tr("Connections") ); + + TabConf = new QWidget( TabWidget, "tab2" ); + + AuthCheckBox = new QCheckBox (TabConf, "auth" ); + QLabel *AuthLabel = new QLabel( TabConf, "authlabel" ); + AuthLabel->setText( tr("enable authentification")); + + CryptCheckBox = new QCheckBox (TabConf, "crypt"); + QLabel *CryptLabel = new QLabel ( TabConf, "cryptlabel"); + CryptLabel->setText(tr("enable encryption")); + + + TabWidget->insertTab( TabConf, tr("Configuration")); + + + + QPalette pal = this->palette(); + QColor col = pal.color(QPalette::Active, QColorGroup::Background); + pal.setColor(QPalette::Active, QColorGroup::Button, col); + pal.setColor(QPalette::Inactive, QColorGroup::Button, col); + pal.setColor(QPalette::Normal, QColorGroup::Button, col); + pal.setColor(QPalette::Disabled, QColorGroup::Button, col); + this->setPalette(pal); +} + + +BlueBase::~BlueBase(){ +} + diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h new file mode 100644 index 0000000..e2b013e --- a/dev/null +++ b/noncore/net/opietooth/manager/bluebase.h @@ -0,0 +1,40 @@ + +#ifndef BLUEBASE_H +#define BLUEBASE_H + +#include +#include +#include +#include + +class QVBox; +class QHBoxLayout; +class QGridLayout; +class QFrame; +class QLabel; +class QPushButton; +class QTabWidget; +class QCheckBox; + +class BlueBase : public QWidget +{ + Q_OBJECT + +public: + BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + ~BlueBase(); + + + +protected: + QTabWidget *TabWidget; + QWidget *Tab; + QWidget *TabConf; + QWidget *TabConn; + QCheckBox *AuthCheckBox; + QCheckBox *CryptCheckBox; + QLabel *Test; + QPushButton *ScanButton; +}; + +#endif diff --git a/noncore/net/opietooth/manager/bluebase.o b/noncore/net/opietooth/manager/bluebase.o new file mode 100644 index 0000000..4a30d6e --- a/dev/null +++ b/noncore/net/opietooth/manager/bluebase.o Binary files differ diff --git a/noncore/net/opietooth/manager/bluemanager.cpp b/noncore/net/opietooth/manager/bluemanager.cpp new file mode 100644 index 0000000..ede510f --- a/dev/null +++ b/noncore/net/opietooth/manager/bluemanager.cpp @@ -0,0 +1,81 @@ +/* + * today.cpp : main class + * + * --------------------- + * + * begin : Sun 10 17:20:00 CEST 2002 + * copyright : (c) 2002 by Maximilian Reiß + * email : max.reiss@gmx.de + * + */ +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include "bluemanager.h" + +#include +#include +#include +//#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +//#include +#include +#include + + +//#include +#include +#include + + +/* + * Constructs a Example which is a child of 'parent', with the + * name 'name' and widget flags set to 'f' + */ +BlueManager::BlueManager( QWidget* parent, const char* name, WFlags fl ) + : BluetoothBase( parent, name, fl ) { + + + draw(); +} + + +/* + * Repaint method. Reread all fields. + */ +void BlueManager::draw() { + + QTimer::singleShot( 20*1000, this, SLOT(draw() ) ); +} + + +void BlueManager::init() { + +} + +BlueManager::~BlueManager() { +} + + + + diff --git a/noncore/net/opietooth/manager/bluemanager.h b/noncore/net/opietooth/manager/bluemanager.h new file mode 100644 index 0000000..bec6d59 --- a/dev/null +++ b/noncore/net/opietooth/manager/bluemanager.h @@ -0,0 +1,41 @@ +/* + * bluemanager.h + * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + + +#ifndef BLUEMANAGER_H +#define BLUEMANAGER_H + +#include +#include + +#include "bluetoothbase.h" + +class QVBoxLayout; + +class BlueManager : public BluetoothBase { + Q_OBJECT + + public: + BlueManager( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + ~BlueManager(); + + private slots: + void draw(); + private: + void init(); + private slots: + // void channelReceived(const QCString &msg, const QByteArray & data); + + private: +}; + + +#endif diff --git a/noncore/net/opietooth/manager/bluetoothbase.ui b/noncore/net/opietooth/manager/bluetoothbase.ui new file mode 100644 index 0000000..61cb95f --- a/dev/null +++ b/noncore/net/opietooth/manager/bluetoothbase.ui @@ -0,0 +1,416 @@ + +BluetoothBase + + QWidget + + name + BluetoothBase + + + geometry + + 0 + 0 + 596 + 480 + + + + caption + Form1 + + + QTabWidget + + name + Status + + + geometry + + 0 + 0 + 260 + 350 + + + + QWidget + + name + tab + + + title + Devices + + + QPushButton + + name + PushButton2 + + + geometry + + 50 + 260 + 154 + 31 + + + + sizePolicy + + 0 + 0 + + + + text + Scan for Devices + + + + + name + Spacer3 + + + orientation + Vertical + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + + name + Spacer1 + + + orientation + Vertical + + + sizeType + Fixed + + + sizeHint + + 20 + 20 + + + + + QListView + + + text + Active + + + clickable + true + + + resizeable + true + + + + + text + Device Name + + + clickable + true + + + resizeable + true + + + + + text + Type + + + clickable + true + + + resizeable + true + + + + name + ListView2 + + + geometry + + 8 + 3 + 240 + 140 + + + + + + QWidget + + name + tab + + + title + Connections + + + QListView + + + text + Device Name + + + clickable + true + + + resizeable + true + + + + + text + Connection type + + + clickable + true + + + resizeable + true + + + + name + ListView4 + + + geometry + + 8 + 3 + 241 + 301 + + + + + + QWidget + + name + tab + + + title + Config + + + QLabel + + name + TextLabel6 + + + geometry + + 10 + 20 + 121 + 20 + + + + text + Device Name + + + + QLabel + + name + TextLabel7 + + + geometry + + 10 + 50 + 120 + 20 + + + + text + Default Passkey + + + + QLineEdit + + name + LineEdit4 + + + geometry + + 128 + 53 + 120 + 22 + + + + + QLineEdit + + name + LineEdit5 + + + geometry + + 128 + 13 + 120 + 22 + + + + + QLayoutWidget + + name + Layout5 + + + geometry + + 10 + 100 + 188 + 104 + + + + + margin + 0 + + + spacing + 6 + + + QCheckBox + + name + CheckBox1 + + + text + enable authentification + + + + QCheckBox + + name + CheckBox2 + + + text + enable encryption + + + + QCheckBox + + name + CheckBox5 + + + text + Enable Page scan + + + + QCheckBox + + name + CheckBox6 + + + text + Enable Inquiry scan + + + + + + + QWidget + + name + tab + + + title + Status + + + QLabel + + name + StutusLabel + + + geometry + + 10 + 10 + 240 + 300 + + + + text + Status Label + + + + + + diff --git a/noncore/net/opietooth/manager/devicedialog.ui b/noncore/net/opietooth/manager/devicedialog.ui new file mode 100644 index 0000000..121fdf0 --- a/dev/null +++ b/noncore/net/opietooth/manager/devicedialog.ui @@ -0,0 +1,250 @@ + +Form2 + + QDialog + + name + Form2 + + + geometry + + 0 + 0 + 592 + 480 + + + + caption + Form2 + + + QLabel + + name + TextLabel4 + + + geometry + + 0 + 0 + 170 + 20 + + + + text + Devicename + + + + QTabWidget + + name + TabWidget7 + + + geometry + + 0 + 20 + 240 + 290 + + + + QWidget + + name + tab + + + title + Services + + + QPushButton + + name + PushButton5 + + + geometry + + 50 + 200 + 129 + 31 + + + + text + change settings + + + + QListView + + + text + active + + + clickable + true + + + resizeable + true + + + + + text + service name + + + clickable + true + + + resizeable + true + + + + name + ListView1 + + + geometry + + 10 + 10 + 220 + 180 + + + + + + QWidget + + name + tab + + + title + Settings + + + QLabel + + name + TextLabel5 + + + geometry + + 10 + 0 + 110 + 50 + + + + text + Change device +name + + + + QLabel + + name + TextLabel8 + + + geometry + + 8 + 53 + 100 + 40 + + + + text + Default PIN +Code + + + + QLineEdit + + name + LineEdit1 + + + geometry + + 120 + 10 + 110 + 22 + + + + + QLineEdit + + name + LineEdit6 + + + geometry + + 120 + 50 + 110 + 22 + + + + + + QWidget + + name + tab + + + title + Information + + + QLabel + + name + DeviceInfoLabel + + + geometry + + 18 + 13 + 210 + 230 + + + + text + TextLabel9 + + + + + + diff --git a/noncore/net/opietooth/manager/main.cpp b/noncore/net/opietooth/manager/main.cpp new file mode 100644 index 0000000..c7ccf23 --- a/dev/null +++ b/noncore/net/opietooth/manager/main.cpp @@ -0,0 +1,36 @@ +/* + * main.cpp + * + * --------------------- + * + * begin : Sun 10 17:20:00 CEST 2002 + * copyright : (c) 2002 by Maximilian Reiß + * email : max.reiss@gmx.de + * + */ +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include "bluemanager.h" +#include + +QPEApplication *BluetoothApp; + +int main( int argc, char ** argv ) +{ + QPEApplication a(argc, argv); + BluetoothApp=&a; + + BlueManager t; + + t.setCaption( BlueManager::tr("Bluetooth Manager") ); + a.showMainWidget(&t); + + return a.exec(); +} diff --git a/noncore/net/opietooth/manager/manager.pro b/noncore/net/opietooth/manager/manager.pro new file mode 100644 index 0000000..3cb308c --- a/dev/null +++ b/noncore/net/opietooth/manager/manager.pro @@ -0,0 +1,12 @@ +TEMPLATE = app +#CONFIG = qt warn_on debug +CONFIG = qt warn_on release +HEADERS = bluemanager.h +SOURCES = main.cpp bluemanager.cpp + +INCLUDEPATH += $(OPIEDIR)/include +DEPENDPATH += $(OPIEDIR)/include +LIBS += -lqpe +INTERFACES = bluetoothbase.ui devicedialog.ui scandialog.ui +TARGET = bluetooth-manager +DESTDIR = $(OPIEDIR)/bin diff --git a/noncore/net/opietooth/manager/opie-toothmanager.control b/noncore/net/opietooth/manager/opie-toothmanager.control new file mode 100644 index 0000000..75dcfc9 --- a/dev/null +++ b/noncore/net/opietooth/manager/opie-toothmanager.control @@ -0,0 +1,10 @@ +Files: bin/bluetooth-manager apps/Settings/bluetooth-manager.desktop pics/bluetooth/* +Priority: optional +Section: opie/applications +Maintainer: Maximilian Reiß +Architecture: arm +Version: 0.3.4-$SUB_VERSION +Depends: opie-base ($QPE_VERSION) +License: GPL +Description: Bluetooth Manager application + diff --git a/noncore/net/opietooth/manager/scandialog.ui b/noncore/net/opietooth/manager/scandialog.ui new file mode 100644 index 0000000..c8d018f --- a/dev/null +++ b/noncore/net/opietooth/manager/scandialog.ui @@ -0,0 +1,155 @@ + +Form3 + + QDialog + + name + Form3 + + + geometry + + 0 + 0 + 368 + 392 + + + + caption + Form3 + + + QFrame + + name + Frame7 + + + geometry + + 0 + 0 + 240 + 331 + + + + frameShape + StyledPanel + + + frameShadow + Raised + + + QLayoutWidget + + name + Layout11 + + + geometry + + 10 + 9 + 221 + 310 + + + + + margin + 0 + + + spacing + 6 + + + QLabel + + name + TextLabel10 + + + text + ersetzen durch qprogressbar + + + + QPushButton + + name + PushButton13 + + + text + Start + + + + QPushButton + + name + PushButton6 + + + text + Stop + + + + QListView + + + text + In List + + + clickable + true + + + resizeable + true + + + + + text + Device Name + + + clickable + true + + + resizeable + true + + + + + text + Type + + + clickable + true + + + resizeable + true + + + + name + ListView1 + + + + + + + -- cgit v0.9.0.2