summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/gui.pro3
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp3
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiterbase.cpp4
3 files changed, 6 insertions, 4 deletions
diff --git a/noncore/net/wellenreiter/gui/gui.pro b/noncore/net/wellenreiter/gui/gui.pro
index 4ebac84..faedd1b 100644
--- a/noncore/net/wellenreiter/gui/gui.pro
+++ b/noncore/net/wellenreiter/gui/gui.pro
@@ -1,55 +1,58 @@
1DESTDIR = $(OPIEDIR)/bin 1DESTDIR = $(OPIEDIR)/bin
2TEMPLATE = app 2TEMPLATE = app
3CONFIG = qt warn_on 3CONFIG = qt warn_on
4 4
5HEADERS = wellenreiterbase.h \ 5HEADERS = wellenreiterbase.h \
6 mainwindow.h \ 6 mainwindow.h \
7 wellenreiter.h \ 7 wellenreiter.h \
8 scanlist.h \ 8 scanlist.h \
9 logwindow.h \ 9 logwindow.h \
10 hexwindow.h \ 10 hexwindow.h \
11 statwindow.h \ 11 statwindow.h \
12 configwindow.h \ 12 configwindow.h \
13 graphwindow.h \ 13 graphwindow.h \
14 packetview.h \ 14 packetview.h \
15 protolistview.h \ 15 protolistview.h \
16 gps.h 16 gps.h
17 17
18SOURCES = main.cpp \ 18SOURCES = main.cpp \
19 mainwindow.cpp \ 19 mainwindow.cpp \
20 wellenreiterbase.cpp \ 20 wellenreiterbase.cpp \
21 wellenreiter.cpp \ 21 wellenreiter.cpp \
22 scanlist.cpp \ 22 scanlist.cpp \
23 logwindow.cpp \ 23 logwindow.cpp \
24 hexwindow.cpp \ 24 hexwindow.cpp \
25 statwindow.cpp \ 25 statwindow.cpp \
26 configwindow.cpp \ 26 configwindow.cpp \
27 graphwindow.cpp \ 27 graphwindow.cpp \
28 packetview.cpp \ 28 packetview.cpp \
29 protolistview.cpp \ 29 protolistview.cpp \
30 gps.cpp 30 gps.cpp
31 31
32INCLUDEPATH += $(OPIEDIR)/include 32INCLUDEPATH += $(OPIEDIR)/include
33DEPENDPATH += $(OPIEDIR)/include 33DEPENDPATH += $(OPIEDIR)/include
34INTERFACES = configbase.ui 34INTERFACES = configbase.ui
35TARGET = wellenreiter 35TARGET = wellenreiter
36VERSION = 1.0.5
37
38DEFINES += WELLENREITER_VERSION='"$$VERSION (GPL) Opie"'
36 39
37!contains( platform, x11 ) { 40!contains( platform, x11 ) {
38 message( qws ) 41 message( qws )
39 include( $(OPIEDIR)/include.pro ) 42 include( $(OPIEDIR)/include.pro )
40 LIBS += -lqpe -lopiecore2 -lopieui2 -lopienet2 43 LIBS += -lqpe -lopiecore2 -lopieui2 -lopienet2
41} 44}
42 45
43contains( platform, x11 ) { 46contains( platform, x11 ) {
44 LIBS += -L$(OPIEDIR)/output/lib -Wl,-rpath,$(OPIEDIR)/output/lib -Wl,-rpath,/usr/local/lib -lwellenreiter 47 LIBS += -L$(OPIEDIR)/output/lib -Wl,-rpath,$(OPIEDIR)/output/lib -Wl,-rpath,/usr/local/lib -lwellenreiter
45 SOURCES += resource.cpp 48 SOURCES += resource.cpp
46 HEADERS += resource.h 49 HEADERS += resource.h
47 DESTDIR = $(OPIEDIR)/output/bin 50 DESTDIR = $(OPIEDIR)/output/bin
48} 51}
49 52
50!isEmpty( LIBPCAP_INC_DIR ) { 53!isEmpty( LIBPCAP_INC_DIR ) {
51 INCLUDEPATH = $$LIBPCAP_INC_DIR $$INCLUDEPATH 54 INCLUDEPATH = $$LIBPCAP_INC_DIR $$INCLUDEPATH
52} 55}
53!isEmpty( LIBPCAP_LIB_DIR ) { 56!isEmpty( LIBPCAP_LIB_DIR ) {
54 LIBS = -L$$LIBPCAP_LIB_DIR $$LIBS 57 LIBS = -L$$LIBPCAP_LIB_DIR $$LIBS
55} 58}
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 9fe463a..8cabf0d 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -524,97 +524,98 @@ void Wellenreiter::stopClicked()
524 524
525 updateStatistics(); 525 updateStatistics();
526} 526}
527 527
528 528
529void Wellenreiter::startClicked() 529void Wellenreiter::startClicked()
530{ 530{
531 // get configuration from config window 531 // get configuration from config window
532 532
533 const QString& interface = configwindow->interfaceName->currentText(); 533 const QString& interface = configwindow->interfaceName->currentText();
534 const int cardtype = configwindow->driverType(); 534 const int cardtype = configwindow->driverType();
535// const int interval = configwindow->hoppingInterval(); 535// const int interval = configwindow->hoppingInterval();
536 536
537 if ( ( interface == "" ) || ( cardtype == 0 ) ) 537 if ( ( interface == "" ) || ( cardtype == 0 ) )
538 { 538 {
539 QMessageBox::information( this, "Wellenreiter II", 539 QMessageBox::information( this, "Wellenreiter II",
540 tr( "No device configured.\nPlease reconfigure!" ) ); 540 tr( "No device configured.\nPlease reconfigure!" ) );
541 return; 541 return;
542 } 542 }
543 543
544 // configure device 544 // configure device
545 ONetwork* net = ONetwork::instance(); 545 ONetwork* net = ONetwork::instance();
546 546
547 // TODO: check if interface is wireless and support sniffing for non-wireless interfaces 547 // TODO: check if interface is wireless and support sniffing for non-wireless interfaces
548 548
549 if ( cardtype != DEVTYPE_FILE ) 549 if ( cardtype != DEVTYPE_FILE )
550 { 550 {
551 551
552 if ( !net->isPresent( interface ) ) 552 if ( !net->isPresent( interface ) )
553 { 553 {
554 QMessageBox::information( this, "Wellenreiter II", 554 QMessageBox::information( this, "Wellenreiter II",
555 tr( "The configured device (%1)\nis not available on this system\n. Please reconfigure!" ).arg( interface ) ); 555 tr( "The configured device (%1)\nis not available on this system\n. Please reconfigure!" ).arg( interface ) );
556 return; 556 return;
557 } 557 }
558 558
559 iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // fails if network is not wireless! 559 iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // fails if network is not wireless!
560 assert( iface ); 560 assert( iface );
561 561
562 // bring device UP 562 // bring device UP
563 iface->setUp( true ); 563 iface->setUp( true );
564 if ( !iface->isUp() ) 564 if ( !iface->isUp() )
565 { 565 {
566 QMessageBox::warning( this, "Wellenreiter II", 566 QMessageBox::warning( this, "Wellenreiter II",
567 tr( "Can't bring interface '%1' up:\n" ).arg( iface->name() ) + strerror( errno ) ); 567 tr( "Can't bring interface '%1' up:\n" ).arg( iface->name() ) + strerror( errno ) );
568 return; 568 return;
569 } 569 }
570 570
571 // check if wireless extension version matches 571 // check if wireless extension version matches
572 if ( ONetwork::wirelessExtensionCompileVersion() != iface->wirelessExtensionDriverVersion() ) 572 if ( ONetwork::wirelessExtensionCompileVersion() != iface->wirelessExtensionDriverVersion()
573 && ( ONetwork::wirelessExtensionCompileVersion() <= 15 || iface->wirelessExtensionDriverVersion() <= 15 ) )
573 { 574 {
574 QMessageBox::critical( this, "Wellenreiter II", tr( "<p>The Wireless Extension Versions<br>do not match!<p>" 575 QMessageBox::critical( this, "Wellenreiter II", tr( "<p>The Wireless Extension Versions<br>do not match!<p>"
575 " Wellenreiter II : WE V%1<br>Interface driver: WE V%2" ) 576 " Wellenreiter II : WE V%1<br>Interface driver: WE V%2" )
576 .arg( QString::number( ONetwork::wirelessExtensionCompileVersion() ) ) 577 .arg( QString::number( ONetwork::wirelessExtensionCompileVersion() ) )
577 .arg( QString::number( iface->wirelessExtensionDriverVersion() ) ) ); 578 .arg( QString::number( iface->wirelessExtensionDriverVersion() ) ) );
578 return; 579 return;
579 } 580 }
580 } 581 }
581 // set monitor mode 582 // set monitor mode
582 bool usePrism = configwindow->usePrismHeader(); 583 bool usePrism = configwindow->usePrismHeader();
583 584
584 switch ( cardtype ) 585 switch ( cardtype )
585 { 586 {
586 case DEVTYPE_CISCO: iface->setMonitoring( new OCiscoMonitoringInterface( iface, usePrism ) ); break; 587 case DEVTYPE_CISCO: iface->setMonitoring( new OCiscoMonitoringInterface( iface, usePrism ) ); break;
587 case DEVTYPE_WLAN_NG: iface->setMonitoring( new OWlanNGMonitoringInterface( iface, usePrism ) ); break; 588 case DEVTYPE_WLAN_NG: iface->setMonitoring( new OWlanNGMonitoringInterface( iface, usePrism ) ); break;
588 case DEVTYPE_HOSTAP: iface->setMonitoring( new OHostAPMonitoringInterface( iface, usePrism ) ); break; 589 case DEVTYPE_HOSTAP: iface->setMonitoring( new OHostAPMonitoringInterface( iface, usePrism ) ); break;
589 case DEVTYPE_ORINOCO: iface->setMonitoring( new OOrinocoMonitoringInterface( iface, usePrism ) ); break; 590 case DEVTYPE_ORINOCO: iface->setMonitoring( new OOrinocoMonitoringInterface( iface, usePrism ) ); break;
590 case DEVTYPE_MANUAL: QMessageBox::information( this, "Wellenreiter II", tr( "Bring your device into\nmonitor mode now." ) ); break; 591 case DEVTYPE_MANUAL: QMessageBox::information( this, "Wellenreiter II", tr( "Bring your device into\nmonitor mode now." ) ); break;
591 case DEVTYPE_FILE: odebug << "Wellenreiter: Capturing from file '" << interface << "'" << oendl; break; 592 case DEVTYPE_FILE: odebug << "Wellenreiter: Capturing from file '" << interface << "'" << oendl; break;
592 default: assert( 0 ); // shouldn't reach this 593 default: assert( 0 ); // shouldn't reach this
593 } 594 }
594 595
595 // switch device into monitor mode 596 // switch device into monitor mode
596 if ( cardtype < DEVTYPE_FILE ) 597 if ( cardtype < DEVTYPE_FILE )
597 { 598 {
598 if ( cardtype != DEVTYPE_MANUAL ) 599 if ( cardtype != DEVTYPE_MANUAL )
599 iface->setMode( "monitor" ); 600 iface->setMode( "monitor" );
600 if ( iface->mode() != "monitor" ) 601 if ( iface->mode() != "monitor" )
601 { 602 {
602 if ( QMessageBox::warning( this, "Wellenreiter II", 603 if ( QMessageBox::warning( this, "Wellenreiter II",
603 tr( "Can't set interface '%1'\ninto monitor mode:\n" ).arg( iface->name() ) + strerror( errno ) + 604 tr( "Can't set interface '%1'\ninto monitor mode:\n" ).arg( iface->name() ) + strerror( errno ) +
604 tr( "\nContinue with limited functionality?" ), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No ) 605 tr( "\nContinue with limited functionality?" ), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No )
605 return; 606 return;
606 } 607 }
607 } 608 }
608 609
609 // open GPS device 610 // open GPS device
610 if ( configwindow->enableGPS->isChecked() ) 611 if ( configwindow->enableGPS->isChecked() )
611 { 612 {
612 odebug << "Wellenreiter:GPS enabled @ " << configwindow->gpsdHost->currentText() << ":" << configwindow->gpsdPort->value() << "" << oendl; 613 odebug << "Wellenreiter:GPS enabled @ " << configwindow->gpsdHost->currentText() << ":" << configwindow->gpsdPort->value() << "" << oendl;
613 gps->open( configwindow->gpsdHost->currentText(), configwindow->gpsdPort->value() ); 614 gps->open( configwindow->gpsdHost->currentText(), configwindow->gpsdPort->value() );
614 } 615 }
615 616
616 // open pcap and start sniffing 617 // open pcap and start sniffing
617 618
618 if ( configwindow->writeCaptureFile->isChecked() ) // write to a user specified capture file? 619 if ( configwindow->writeCaptureFile->isChecked() ) // write to a user specified capture file?
619 { 620 {
620 dumpname = configwindow->captureFileName->text(); 621 dumpname = configwindow->captureFileName->text();
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp
index 0ca0bd7..1d5bd1b 100644
--- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp
@@ -1,162 +1,160 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. 2** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved.
3** 3**
4** This file is part of Wellenreiter II. 4** This file is part of Wellenreiter II.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14***********************************************************************/ 14***********************************************************************/
15 15
16#include "wellenreiterbase.h" 16#include "wellenreiterbase.h"
17 17
18#include <qlabel.h> 18#include <qlabel.h>
19#include <qlayout.h> 19#include <qlayout.h>
20 20
21#include "logwindow.h" 21#include "logwindow.h"
22#include "packetview.h" 22#include "packetview.h"
23#include "scanlist.h" 23#include "scanlist.h"
24#include "statwindow.h" 24#include "statwindow.h"
25#include "graphwindow.h" 25#include "graphwindow.h"
26 26
27#ifdef QWS 27#ifdef QWS
28#include <qpe/resource.h> 28#include <qpe/resource.h>
29#include <opie2/otabwidget.h> 29#include <opie2/otabwidget.h>
30using namespace Opie; 30using namespace Opie;
31#else 31#else
32#include "resource.h" 32#include "resource.h"
33#include <qtabwidget.h> 33#include <qtabwidget.h>
34#endif 34#endif
35 35
36#define WELLENREITER_VERSION "V1.0.3 (unofficial)"
37
38/* 36/*
39 * Constructs a WellenreiterBase which is a child of 'parent', with the 37 * Constructs a WellenreiterBase which is a child of 'parent', with the
40 * name 'name' and widget flags set to 'f' 38 * name 'name' and widget flags set to 'f'
41 */ 39 */
42using namespace Opie::Ui; 40using namespace Opie::Ui;
43using namespace Opie::Ui; 41using namespace Opie::Ui;
44using namespace Opie::Ui; 42using namespace Opie::Ui;
45WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl ) 43WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl )
46 : QWidget( parent, name, fl ) 44 : QWidget( parent, name, fl )
47{ 45{
48 //ani1 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot0" ) ); 46 //ani1 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot0" ) );
49 //ani2 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot90" ) ); 47 //ani2 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot90" ) );
50 //ani3 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot180" ) ); 48 //ani3 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot180" ) );
51 //ani4 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot270" ) ); 49 //ani4 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot270" ) );
52 50
53 if ( !name ) 51 if ( !name )
54 setName( "WellenreiterBase" ); 52 setName( "WellenreiterBase" );
55 resize( 191, 294 ); 53 resize( 191, 294 );
56#ifdef QWS 54#ifdef QWS
57 setCaption( tr( "Wellenreiter/Opie" ) ); 55 setCaption( tr( "Wellenreiter/Opie" ) );
58#else 56#else
59 setCaption( tr( "Wellenreiter/X11" ) ); 57 setCaption( tr( "Wellenreiter/X11" ) );
60#endif 58#endif
61 WellenreiterBaseLayout = new QVBoxLayout( this ); 59 WellenreiterBaseLayout = new QVBoxLayout( this );
62 WellenreiterBaseLayout->setSpacing( 2 ); 60 WellenreiterBaseLayout->setSpacing( 2 );
63 WellenreiterBaseLayout->setMargin( 0 ); 61 WellenreiterBaseLayout->setMargin( 0 );
64#ifdef QWS 62#ifdef QWS
65 TabWidget = new OTabWidget( this, "TabWidget", OTabWidget::Global ); 63 TabWidget = new OTabWidget( this, "TabWidget", OTabWidget::Global );
66#else 64#else
67 TabWidget = new QTabWidget( this, "TabWidget" ); 65 TabWidget = new QTabWidget( this, "TabWidget" );
68#endif 66#endif
69 ap = new QWidget( TabWidget, "ap" ); 67 ap = new QWidget( TabWidget, "ap" );
70 apLayout = new QVBoxLayout( ap ); 68 apLayout = new QVBoxLayout( ap );
71 apLayout->setSpacing( 2 ); 69 apLayout->setSpacing( 2 );
72 apLayout->setMargin( 2 ); 70 apLayout->setMargin( 2 );
73 71
74 //--------- NETVIEW TAB -------------- 72 //--------- NETVIEW TAB --------------
75 73
76 netview = new MScanListView( ap ); 74 netview = new MScanListView( ap );
77 apLayout->addWidget( netview ); 75 apLayout->addWidget( netview );
78 76
79 //--------- GRAPH TAB -------------- 77 //--------- GRAPH TAB --------------
80 78
81 graphwindow = new MGraphWindow( TabWidget, "Graph" ); 79 graphwindow = new MGraphWindow( TabWidget, "Graph" );
82 80
83 //--------- LOG TAB -------------- 81 //--------- LOG TAB --------------
84 82
85 logwindow = new MLogWindow( TabWidget, "Log" ); 83 logwindow = new MLogWindow( TabWidget, "Log" );
86 84
87 //--------- HEX TAB -------------- 85 //--------- HEX TAB --------------
88 86
89 hexwindow = new PacketView( TabWidget, "Hex" ); 87 hexwindow = new PacketView( TabWidget, "Hex" );
90 88
91 //--------- STAT TAB -------------- 89 //--------- STAT TAB --------------
92 90
93 statwindow = new MStatWindow( TabWidget, "Stat" ); 91 statwindow = new MStatWindow( TabWidget, "Stat" );
94 92
95 //--------- ABOUT TAB -------------- 93 //--------- ABOUT TAB --------------
96 94
97 about = new QWidget( TabWidget, "about" ); 95 about = new QWidget( TabWidget, "about" );
98 aboutLayout = new QGridLayout( about ); 96 aboutLayout = new QGridLayout( about );
99 aboutLayout->setSpacing( 6 ); 97 aboutLayout->setSpacing( 6 );
100 aboutLayout->setMargin( 11 ); 98 aboutLayout->setMargin( 11 );
101 99
102 PixmapLabel1_3_2 = new QLabel( about, "PixmapLabel1_3_2" ); 100 PixmapLabel1_3_2 = new QLabel( about, "PixmapLabel1_3_2" );
103 PixmapLabel1_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, PixmapLabel1_3_2->sizePolicy().hasHeightForWidth() ) ); 101 PixmapLabel1_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, PixmapLabel1_3_2->sizePolicy().hasHeightForWidth() ) );
104 PixmapLabel1_3_2->setFrameShape( QLabel::Panel ); 102 PixmapLabel1_3_2->setFrameShape( QLabel::Panel );
105 PixmapLabel1_3_2->setFrameShadow( QLabel::Sunken ); 103 PixmapLabel1_3_2->setFrameShadow( QLabel::Sunken );
106 PixmapLabel1_3_2->setLineWidth( 2 ); 104 PixmapLabel1_3_2->setLineWidth( 2 );
107 PixmapLabel1_3_2->setMargin( 0 ); 105 PixmapLabel1_3_2->setMargin( 0 );
108 PixmapLabel1_3_2->setMidLineWidth( 0 ); 106 PixmapLabel1_3_2->setMidLineWidth( 0 );
109 107
110 QPixmap logo = Resource::loadPixmap( "wellenreiter/logo" ); 108 QPixmap logo = Resource::loadPixmap( "wellenreiter/logo" );
111 QPainter draw( &logo ); 109 QPainter draw( &logo );
112 draw.setPen( Qt::black ); 110 draw.setPen( Qt::black );
113 draw.setFont( QFont( "Fixed", 8 ) ); 111 draw.setFont( QFont( "Fixed", 8 ) );
114 draw.drawText( 30, 10, WELLENREITER_VERSION ); 112 draw.drawText( 5, 10, WELLENREITER_VERSION );
115 113
116 PixmapLabel1_3_2->setPixmap( logo ); 114 PixmapLabel1_3_2->setPixmap( logo );
117 PixmapLabel1_3_2->setScaledContents( TRUE ); 115 PixmapLabel1_3_2->setScaledContents( TRUE );
118 PixmapLabel1_3_2->setAlignment( int( QLabel::AlignCenter ) ); 116 PixmapLabel1_3_2->setAlignment( int( QLabel::AlignCenter ) );
119 117
120 aboutLayout->addWidget( PixmapLabel1_3_2, 0, 0 ); 118 aboutLayout->addWidget( PixmapLabel1_3_2, 0, 0 );
121 119
122 TextLabel1_4_2 = new QLabel( about, "TextLabel1_4_2" ); 120 TextLabel1_4_2 = new QLabel( about, "TextLabel1_4_2" );
123 QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); 121 QFont TextLabel1_4_2_font( TextLabel1_4_2->font() );
124 TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); 122 TextLabel1_4_2_font.setFamily( "adobe-helvetica" );
125 TextLabel1_4_2_font.setPointSize( 10 ); 123 TextLabel1_4_2_font.setPointSize( 10 );
126 TextLabel1_4_2->setFont( TextLabel1_4_2_font ); 124 TextLabel1_4_2->setFont( TextLabel1_4_2_font );
127 TextLabel1_4_2->setText( 125 TextLabel1_4_2->setText(
128"<p align=center>" 126"<p align=center>"
129"<hr>" 127"<hr>"
130"<b>(C) Michael 'Mickey' Lauer</b><br>" 128"<b>(C) Michael 'Mickey' Lauer</b><br>"
131"<hr>" 129"<hr>"
132"mickey@Vanille.de<br>" 130"mickey@Vanille.de<br>"
133"www.Vanille.de/projects/wellenreiter.html<br>" 131"www.Vanille.de/projects/wellenreiter.html<br>"
134"www.wellenreiter.net" 132"www.wellenreiter.net"
135"</p>" ); 133"</p>" );
136 TextLabel1_4_2->setAlignment( int( QLabel::AlignCenter ) ); 134 TextLabel1_4_2->setAlignment( int( QLabel::AlignCenter ) );
137 135
138 aboutLayout->addWidget( TextLabel1_4_2, 1, 0 ); 136 aboutLayout->addWidget( TextLabel1_4_2, 1, 0 );
139 137
140#ifdef QWS 138#ifdef QWS
141 TabWidget->addTab( ap, "wellenreiter/networks", tr( "Nets" ) ); 139 TabWidget->addTab( ap, "wellenreiter/networks", tr( "Nets" ) );
142 TabWidget->addTab( graphwindow, "wellenreiter/graph", tr( "Graph" ) ); 140 TabWidget->addTab( graphwindow, "wellenreiter/graph", tr( "Graph" ) );
143 TabWidget->addTab( logwindow, "wellenreiter/log", tr( "Log" ) ); 141 TabWidget->addTab( logwindow, "wellenreiter/log", tr( "Log" ) );
144 TabWidget->addTab( hexwindow, "wellenreiter/hex", tr( "Hex" ) ); 142 TabWidget->addTab( hexwindow, "wellenreiter/hex", tr( "Hex" ) );
145 TabWidget->addTab( statwindow, "wellenreiter/stat", tr( "Stat" ) ); 143 TabWidget->addTab( statwindow, "wellenreiter/stat", tr( "Stat" ) );
146 TabWidget->addTab( about, "wellenreiter/about", tr( "About" ) ); 144 TabWidget->addTab( about, "wellenreiter/about", tr( "About" ) );
147#else 145#else
148 TabWidget->addTab( ap, /* "wellenreiter/networks", */ tr( "Networks" ) ); 146 TabWidget->addTab( ap, /* "wellenreiter/networks", */ tr( "Networks" ) );
149 TabWidget->addTab( graphwindow, /* "wellenreiter/graph", */ tr( "Graph" ) ); 147 TabWidget->addTab( graphwindow, /* "wellenreiter/graph", */ tr( "Graph" ) );
150 TabWidget->addTab( logwindow, /* "wellenreiter/log", */ tr( "Log" ) ); 148 TabWidget->addTab( logwindow, /* "wellenreiter/log", */ tr( "Log" ) );
151 TabWidget->addTab( hexwindow, /* "wellenreiter/hex", */ tr( "Hex" ) ); 149 TabWidget->addTab( hexwindow, /* "wellenreiter/hex", */ tr( "Hex" ) );
152 TabWidget->addTab( statwindow, /* "wellenreiter/hex", */ tr( "Stat" ) ); 150 TabWidget->addTab( statwindow, /* "wellenreiter/hex", */ tr( "Stat" ) );
153 TabWidget->addTab( about, /* "wellenreiter/about", */ tr( "About" ) ); 151 TabWidget->addTab( about, /* "wellenreiter/about", */ tr( "About" ) );
154#endif 152#endif
155 WellenreiterBaseLayout->addWidget( TabWidget ); 153 WellenreiterBaseLayout->addWidget( TabWidget );
156 154
157#ifdef QWS 155#ifdef QWS
158 TabWidget->setCurrentTab( tr( "Nets" ) ); 156 TabWidget->setCurrentTab( tr( "Nets" ) );
159#endif 157#endif
160 158
161 connect(TabWidget, SIGNAL(currentChanged(QWidget*)), 159 connect(TabWidget, SIGNAL(currentChanged(QWidget*)),
162 this, SLOT(slotTabChanged(QWidget*))); 160 this, SLOT(slotTabChanged(QWidget*)));