summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/mainwindow.cpp
authormickeyl <mickeyl>2003-03-30 02:08:00 (UTC)
committer mickeyl <mickeyl>2003-03-30 02:08:00 (UTC)
commit21a9eae2190754c6a807ae47f6aad80aa4f53728 (patch) (side-by-side diff)
treed56760049ee7f48b7aa7ee8c7ea3eaf0b7e5d803 /noncore/net/wellenreiter/gui/mainwindow.cpp
parentd11a0154e2d9732854c9a3d598857bc20f359849 (diff)
downloadopie-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) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.cpp10
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
@@ -15,9 +15,9 @@
#include "configwindow.h"
#include "logwindow.h"
+#include "hexwindow.h"
#include "mainwindow.h"
#include "wellenreiter.h"
-
#include "scanlist.h"
#include <qcombobox.h>
@@ -114,6 +114,7 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
//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();
@@ -299,6 +300,13 @@ void WellenreiterMainWindow::fileLoadSession()
}
}
+void WellenreiterMainWindow::fileNew()
+{
+ mw->netView()->clear();
+ mw->logWindow()->clear();
+ mw->hexWindow()->clear();
+}
+
void WellenreiterMainWindow::closeEvent( QCloseEvent* e )
{
if ( mw->isDaemonRunning() )