summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/gui.pro2
-rw-r--r--noncore/net/wellenreiter/gui/hexwindow.cpp4
-rw-r--r--noncore/net/wellenreiter/gui/hexwindow.h1
-rw-r--r--noncore/net/wellenreiter/gui/logwindow.cpp5
-rw-r--r--noncore/net/wellenreiter/gui/logwindow.h1
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.cpp10
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.h1
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.h4
8 files changed, 26 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/gui/gui.pro b/noncore/net/wellenreiter/gui/gui.pro
index 200bfc1..505d376 100644
--- a/noncore/net/wellenreiter/gui/gui.pro
+++ b/noncore/net/wellenreiter/gui/gui.pro
@@ -27,3 +27,3 @@ INCLUDEPATH += $(OPIEDIR)/include
27DEPENDPATH += $(OPIEDIR)/include 27DEPENDPATH += $(OPIEDIR)/include
28LIBS += -L. -lwellenreiter -lopiecore2 -lopieui2 -lopienet2 28LIBS += -lopiecore2 -lopieui2 -lopienet2
29INTERFACES = configbase.ui 29INTERFACES = configbase.ui
diff --git a/noncore/net/wellenreiter/gui/hexwindow.cpp b/noncore/net/wellenreiter/gui/hexwindow.cpp
index 91aa6f7..a3022f4 100644
--- a/noncore/net/wellenreiter/gui/hexwindow.cpp
+++ b/noncore/net/wellenreiter/gui/hexwindow.cpp
@@ -34,2 +34,6 @@ void MHexWindow::log( QString text )
34 34
35void MHexWindow::clear()
36{
37 ledit->clear();
38}
35 39
diff --git a/noncore/net/wellenreiter/gui/hexwindow.h b/noncore/net/wellenreiter/gui/hexwindow.h
index eec1be0..2618b8c 100644
--- a/noncore/net/wellenreiter/gui/hexwindow.h
+++ b/noncore/net/wellenreiter/gui/hexwindow.h
@@ -30,2 +30,3 @@ class MHexWindow: public QVBox
30 void log( QString text ); 30 void log( QString text );
31 void clear();
31 32
diff --git a/noncore/net/wellenreiter/gui/logwindow.cpp b/noncore/net/wellenreiter/gui/logwindow.cpp
index f132f56..55e2ccb 100644
--- a/noncore/net/wellenreiter/gui/logwindow.cpp
+++ b/noncore/net/wellenreiter/gui/logwindow.cpp
@@ -38,2 +38,7 @@ void MLogWindow::log( QString text )
38 38
39void MLogWindow::clear()
40{
41 ledit->clear();
42}
43
39const QString MLogWindow::getLog() const 44const QString MLogWindow::getLog() const
diff --git a/noncore/net/wellenreiter/gui/logwindow.h b/noncore/net/wellenreiter/gui/logwindow.h
index 253defa..6e0fe50 100644
--- a/noncore/net/wellenreiter/gui/logwindow.h
+++ b/noncore/net/wellenreiter/gui/logwindow.h
@@ -31,2 +31,3 @@ class MLogWindow: public QVBox
31 const QString getLog() const; 31 const QString getLog() const;
32 void clear();
32 33
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
@@ -17,5 +17,5 @@
17#include "logwindow.h" 17#include "logwindow.h"
18#include "hexwindow.h"
18#include "mainwindow.h" 19#include "mainwindow.h"
19#include "wellenreiter.h" 20#include "wellenreiter.h"
20
21#include "scanlist.h" 21#include "scanlist.h"
@@ -116,2 +116,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
116 QPopupMenu* file = new QPopupMenu( mb ); 116 QPopupMenu* file = new QPopupMenu( mb );
117 file->insertItem( "&New", this, SLOT( fileNew() ) );
117 id = file->insertItem( "&Load", fileLoad ); 118 id = file->insertItem( "&Load", fileLoad );
@@ -301,2 +302,9 @@ void WellenreiterMainWindow::fileLoadSession()
301 302
303void WellenreiterMainWindow::fileNew()
304{
305 mw->netView()->clear();
306 mw->logWindow()->clear();
307 mw->hexWindow()->clear();
308}
309
302void WellenreiterMainWindow::closeEvent( QCloseEvent* e ) 310void WellenreiterMainWindow::closeEvent( QCloseEvent* e )
diff --git a/noncore/net/wellenreiter/gui/mainwindow.h b/noncore/net/wellenreiter/gui/mainwindow.h
index 850a343..e06a60c 100644
--- a/noncore/net/wellenreiter/gui/mainwindow.h
+++ b/noncore/net/wellenreiter/gui/mainwindow.h
@@ -57,2 +57,3 @@ class WellenreiterMainWindow: public QMainWindow
57 void fileLoadSession(); 57 void fileLoadSession();
58 void fileNew();
58}; 59};
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h
index 3ec4021..ff73dd4 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.h
+++ b/noncore/net/wellenreiter/gui/wellenreiter.h
@@ -30,4 +30,7 @@ class OPacketCapturer;
30class OWirelessNetworkInterface; 30class OWirelessNetworkInterface;
31
31class ManufacturerDB; 32class ManufacturerDB;
32class WellenreiterConfigWindow; 33class WellenreiterConfigWindow;
34class MLogWindow;
35class MHexWindow;
33 36
@@ -43,2 +46,3 @@ class Wellenreiter : public WellenreiterBase {
43 MLogWindow* logWindow() const { return logwindow; }; 46 MLogWindow* logWindow() const { return logwindow; };
47 MHexWindow* hexWindow() const { return hexwindow; };
44 bool isDaemonRunning() const { return sniffing; }; 48 bool isDaemonRunning() const { return sniffing; };