author | mickeyl <mickeyl> | 2003-03-30 02:08:00 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-03-30 02:08:00 (UTC) |
commit | 21a9eae2190754c6a807ae47f6aad80aa4f53728 (patch) (side-by-side diff) | |
tree | d56760049ee7f48b7aa7ee8c7ea3eaf0b7e5d803 /noncore/net/wellenreiter/gui/mainwindow.cpp | |
parent | d11a0154e2d9732854c9a3d598857bc20f359849 (diff) | |
download | opie-21a9eae2190754c6a807ae47f6aad80aa4f53728.zip opie-21a9eae2190754c6a807ae47f6aad80aa4f53728.tar.gz opie-21a9eae2190754c6a807ae47f6aad80aa4f53728.tar.bz2 |
- add file->new
Diffstat (limited to 'noncore/net/wellenreiter/gui/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/mainwindow.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp index d4988af..8e0164f 100644 --- a/noncore/net/wellenreiter/gui/mainwindow.cpp +++ b/noncore/net/wellenreiter/gui/mainwindow.cpp @@ -14,11 +14,11 @@ **********************************************************************/ #include "configwindow.h" #include "logwindow.h" +#include "hexwindow.h" #include "mainwindow.h" #include "wellenreiter.h" - #include "scanlist.h" #include <qcombobox.h> #include <qdatastream.h> @@ -113,8 +113,9 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n fileLoad->insertItem( "&Session...", this, SLOT( fileLoadSession() ) ); //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) ); QPopupMenu* file = new QPopupMenu( mb ); + file->insertItem( "&New", this, SLOT( fileNew() ) ); id = file->insertItem( "&Load", fileLoad ); file->insertItem( "&Save", fileSave ); file->insertSeparator(); file->insertItem( "&Exit", qApp, SLOT( quit() ) ); @@ -298,8 +299,15 @@ void WellenreiterMainWindow::fileLoadSession() } } } +void WellenreiterMainWindow::fileNew() +{ + mw->netView()->clear(); + mw->logWindow()->clear(); + mw->hexWindow()->clear(); +} + void WellenreiterMainWindow::closeEvent( QCloseEvent* e ) { if ( mw->isDaemonRunning() ) { |