summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-02-23 17:13:49 (UTC)
committer mickeyl <mickeyl>2003-02-23 17:13:49 (UTC)
commit9f24ae5ae12aa1eb0f974b072d46868ba048e65d (patch) (side-by-side diff)
tree85d9e671fe060ebec2bf7f04ab69ca96d8029741
parent2f897267b4d3ec5b1c7dafdc0700a8e91cbb3321 (diff)
downloadopie-9f24ae5ae12aa1eb0f974b072d46868ba048e65d.zip
opie-9f24ae5ae12aa1eb0f974b072d46868ba048e65d.tar.gz
opie-9f24ae5ae12aa1eb0f974b072d46868ba048e65d.tar.bz2
insert demo menu - useful, if you don't have wireless stuff yet but want
to show this program to someone...
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.cpp25
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.h1
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.h1
3 files changed, 21 insertions, 6 deletions
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp
index b2d3a71..2d5ecd2 100644
--- a/noncore/net/wellenreiter/gui/mainwindow.cpp
+++ b/noncore/net/wellenreiter/gui/mainwindow.cpp
@@ -19,2 +19,4 @@
+#include "scanlist.h"
+
#include <qcombobox.h>
@@ -82,14 +84,16 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
QPopupMenu* file = new QPopupMenu( mb );
- file->insertItem( "&Load" );
- file->insertItem( "&Save" );
+ file->insertItem( "&Load..." );
+ file->insertItem( "&Save..." );
QPopupMenu* view = new QPopupMenu( mb );
- view->insertItem( "&Configure" );
+ view->insertItem( "&Configure..." );
QPopupMenu* sniffer = new QPopupMenu( mb );
- sniffer->insertItem( "&Configure" );
+ sniffer->insertItem( "&Configure..." );
sniffer->insertSeparator();
- int id;
+ QPopupMenu* demo = new QPopupMenu( mb );
+ demo->insertItem( "&Add something", this, SLOT( demoAddStations() ) );
+ int id;
id = mb->insertItem( "&File", file );
@@ -100,2 +104,4 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
mb->setItemEnabled( id, false );
+ id = mb->insertItem( "&Demo", demo );
+ mb->setItemEnabled( id, true );
@@ -159,3 +165,10 @@ WellenreiterMainWindow::~WellenreiterMainWindow()
-
+void WellenreiterMainWindow::demoAddStations()
+{
+ mw->netView()->addNewItem( "managed", "Vanille", "04:00:20:EF:A6:43", true, 6, 80 );
+ mw->netView()->addNewItem( "managed", "Vanille", "04:00:20:EF:A6:23", true, 11, 10 );
+ mw->netView()->addNewItem( "adhoc", "ELAN", "40:03:43:E7:16:22", false, 3, 10 );
+ mw->netView()->addNewItem( "adhoc", "ELAN", "40:03:53:E7:56:62", false, 3, 15 );
+ mw->netView()->addNewItem( "adhoc", "ELAN", "40:03:63:E7:56:E2", false, 3, 20 );
+}
diff --git a/noncore/net/wellenreiter/gui/mainwindow.h b/noncore/net/wellenreiter/gui/mainwindow.h
index c21841a..22c21e8 100644
--- a/noncore/net/wellenreiter/gui/mainwindow.h
+++ b/noncore/net/wellenreiter/gui/mainwindow.h
@@ -47,2 +47,3 @@ class WellenreiterMainWindow: public QMainWindow
void showConfigure();
+ void demoAddStations();
};
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h
index a55d6a1..61960d2 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.h
+++ b/noncore/net/wellenreiter/gui/wellenreiter.h
@@ -53,2 +53,3 @@ class Wellenreiter : public WellenreiterBase {
void setConfigWindow( WellenreiterConfigWindow* cw );
+ MScanListView* netView() const { return netview; };