author | mickeyl <mickeyl> | 2004-03-05 21:39:40 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-03-05 21:39:40 (UTC) |
commit | a12943ccab6b39dda5cf8561efb10eeec856f13e (patch) (side-by-side diff) | |
tree | b22cd5c74bd4daad201eea5e485ea9856471d1f2 /noncore/net/wellenreiter/gui/mainwindow.cpp | |
parent | 8851dc992ab535bde6cb417cafc44658953f495d (diff) | |
download | opie-a12943ccab6b39dda5cf8561efb10eeec856f13e.zip opie-a12943ccab6b39dda5cf8561efb10eeec856f13e.tar.gz opie-a12943ccab6b39dda5cf8561efb10eeec856f13e.tar.bz2 |
change copyright notice
Diffstat (limited to 'noncore/net/wellenreiter/gui/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/mainwindow.cpp | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp index 95a8294..6f57a7f 100644 --- a/noncore/net/wellenreiter/gui/mainwindow.cpp +++ b/noncore/net/wellenreiter/gui/mainwindow.cpp @@ -1,5 +1,5 @@ /********************************************************************** -** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. +** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. ** -** This file is part of Opie Environment. +** This file is part of Wellenreiter II. ** @@ -39,2 +39,3 @@ #include <qtoolbutton.h> +#include <qwhatsthis.h> @@ -62,4 +63,4 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n - #ifndef QWS setIcon( Resource::loadPixmap( "wellenreiter/appicon-trans" ) ); + #ifndef QWS setIconText( "Wellenreiter/X11" ); @@ -70,2 +71,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n startButton = new QToolButton( 0 ); + QWhatsThis::add( startButton, tr( "Click here to start scanning." ) ); #ifdef QWS @@ -78,2 +80,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n stopButton = new QToolButton( 0 ); + QWhatsThis::add( stopButton, tr( "Click here to stop scanning." ) ); #ifdef QWS @@ -86,2 +89,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n QToolButton* d = new QToolButton( 0 ); + QWhatsThis::add( d, tr( "Click here to open the configure dialog." ) ), #ifdef QWS @@ -93,2 +97,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n uploadButton = new QToolButton( 0 ); + QWhatsThis::add( uploadButton, tr( "Click here to upload a capture session." ) ); #ifdef QWS @@ -125,5 +130,2 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n - QPopupMenu* view = new QPopupMenu( mb ); - view->insertItem( tr( "&Configure..." ) ); - QPopupMenu* sniffer = new QPopupMenu( mb ); @@ -136,2 +138,6 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n + QPopupMenu* view = new QPopupMenu( mb ); + view->insertItem( tr( "&Expand All" ), this, SLOT( viewExpandAll() ) ); + view->insertItem( tr( "&Collapse All" ), this, SLOT( viewCollapseAll() ) ); + QPopupMenu* demo = new QPopupMenu( mb ); @@ -141,4 +147,6 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n id = mb->insertItem( tr( "&File" ), file ); - //id = mb->insertItem( tr( "&View" ), view ); + + id = mb->insertItem( tr( "&View" ), view ); //mb->setItemEnabled( id, false ); + id = mb->insertItem( tr( "&Sniffer" ), sniffer ); @@ -555 +563,11 @@ void WellenreiterMainWindow::uploadSession() + +void WellenreiterMainWindow::viewExpandAll() +{ + mw->netView()->expand(); +} + +void WellenreiterMainWindow::viewCollapseAll() +{ + mw->netView()->collapse(); +} |