summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp98
1 files changed, 98 insertions, 0 deletions
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 @@
1/*
2 * bluebase.cpp *
3 * ---------------------
4 *
5 * begin : Sun 10 17:20:00 CEST 2002
6 * copyright : (c) 2002 by Maximilian Reiß
7 * email : max.reiss@gmx.de
8 *
9 */
10/***************************************************************************
11 * *
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 *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19#include "bluebase.h"
20
21#include <qframe.h>
22#include <qlabel.h>
23#include <qpushbutton.h>
24#include <qlayout.h>
25#include <qvariant.h>
26#include <qwhatsthis.h>
27#include <qimage.h>
28#include <qpixmap.h>
29#include <qtabwidget.h>
30#include <qscrollview.h>
31#include <qvbox.h>
32#include <qapplication.h>
33#include <qcheckbox.h>
34
35#include <qpe/resource.h>
36
37BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl )
38 : QWidget( 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
85
86 QPalette pal = this->palette();
87 QColor col = pal.color(QPalette::Active, QColorGroup::Background);
88 pal.setColor(QPalette::Active, QColorGroup::Button, col);
89 pal.setColor(QPalette::Inactive, QColorGroup::Button, col);
90 pal.setColor(QPalette::Normal, QColorGroup::Button, col);
91 pal.setColor(QPalette::Disabled, QColorGroup::Button, col);
92 this->setPalette(pal);
93}
94
95
96BlueBase::~BlueBase(){
97}
98