Index: trunk/BNS/bnswindow.cpp
===================================================================
--- trunk/BNS/bnswindow.cpp	(revision 752)
+++ trunk/BNS/bnswindow.cpp	(revision 753)
@@ -19,4 +19,5 @@
 
 #include "bnswindow.h" 
+#include "bnsapp.h" 
 #include "bnshlpdlg.h" 
 
@@ -59,6 +60,13 @@
   connect(_actQuit, SIGNAL(triggered()), SLOT(close()));
 
-  _actwhatsthis= new QAction(tr("Help=Shift+F1"),this);
-  connect(_actwhatsthis, SIGNAL(triggered()), SLOT(slotWhatsThis()));
+  _actWhatsThis= new QAction(tr("Help=Shift+F1"),this);
+  connect(_actWhatsThis, SIGNAL(triggered()), SLOT(slotWhatsThis()));
+
+  _actStart = new QAction(tr("Sta&rt"),this);
+  connect(_actStart, SIGNAL(triggered()), SLOT(slotStart()));
+
+  _actStop = new QAction(tr("Sto&p"),this);
+  connect(_actStop, SIGNAL(triggered()), SLOT(slotStop()));
+  _actStop->setEnabled(false);
 
   CreateMenu();
@@ -210,6 +218,8 @@
   addToolBar(Qt::BottomToolBarArea, toolBar); 
   toolBar->setMovable(false);
+  toolBar->addAction(_actStart);
+  toolBar->addAction(_actStop);
   toolBar->addWidget(new QLabel("                                   "));
-  toolBar->addAction(_actwhatsthis);
+  toolBar->addAction(_actWhatsThis);
 }
 
@@ -268,2 +278,28 @@
   _log->append(txt.right(maxBufferSize));
 }  
+
+// Stop 
+////////////////////////////////////////////////////////////////////////////
+void bnsWindow::slotStop() {
+  int iRet = QMessageBox::question(this, "Stop", "Do you want to stop?", 
+                                   QMessageBox::Yes, QMessageBox::No,
+                                   QMessageBox::NoButton);
+  if (iRet == QMessageBox::Yes) {
+    _actStart->setEnabled(true);
+    _actStop->setEnabled(false);
+  }
+}
+
+// Start
+////////////////////////////////////////////////////////////////////////////
+void bnsWindow::slotStart() {
+  slotSaveOptions();
+
+  _actStart->setEnabled(false);
+  _actStop->setEnabled(true);
+
+
+  slotMessage("============ Start BNS ============");
+  ((bnsApp*)qApp)->slotMessage("============ Start BNS ============");
+
+}
