Index: trunk/BNS/.cvsignore
===================================================================
--- trunk/BNS/.cvsignore	(revision 748)
+++ trunk/BNS/.cvsignore	(revision 748)
@@ -0,0 +1,6 @@
+.cvsignore
+.obj
+.moc
+Makefile
+bns
+qrc_bns.cpp
Index: trunk/BNS/bns.pro
===================================================================
--- trunk/BNS/bns.pro	(revision 747)
+++ trunk/BNS/bns.pro	(revision 748)
@@ -2,6 +2,6 @@
 # Switch to debug configuration
 # -----------------------------
-CONFIG = release
-###CONFIG = debug
+###CONFIG += release
+###CONFIG -= debug
 
 RESOURCES += bns.qrc
@@ -21,7 +21,7 @@
 release:MOC_DIR=.moc/release
 
-HEADERS = 
+HEADERS =             bnsapp.h   bnswindow.h
 
-SOURCES = bnsmain.cpp
+SOURCES = bnsmain.cpp bnsapp.cpp bnswindow.cpp
 
 RC_FILE = bns.rc
Index: trunk/BNS/bnsmain.cpp
===================================================================
--- trunk/BNS/bnsmain.cpp	(revision 747)
+++ trunk/BNS/bnsmain.cpp	(revision 748)
@@ -15,5 +15,11 @@
  * -----------------------------------------------------------------------*/
 
+#include <unistd.h>
+#include <signal.h>
 #include <QApplication>
+#include <iostream>
+
+#include "bnsapp.h"
+#include "bnswindow.h"
 
 using namespace std;
@@ -21,5 +27,5 @@
 void catch_signal(int) {
   cout << "Program Interrupted by Ctrl-C" << endl;
-  ((bncApp*)qApp)->slotQuit();
+  ((bnsApp*)qApp)->slotQuit();
 }
 
@@ -48,5 +54,5 @@
   }
 
-  bncApp app(argc, argv, GUIenabled);
+  bnsApp app(argc, argv, GUIenabled);
 
   // Interactive Mode - open the main window
@@ -64,6 +70,6 @@
     app.setWindowIcon(QPixmap(":ntrip-logo.png"));
 
-    bncWindow* bncWin = new bncWindow();
-    bncWin->show();
+    bnsWindow* bnsWin = new bnsWindow();
+    bnsWin->show();
   }
 
Index: trunk/BNS/bnswindow.cpp
===================================================================
--- trunk/BNS/bnswindow.cpp	(revision 748)
+++ trunk/BNS/bnswindow.cpp	(revision 748)
@@ -0,0 +1,38 @@
+
+/* -------------------------------------------------------------------------
+ * BKG NTRIP Client
+ * -------------------------------------------------------------------------
+ *
+ * Class:      bnsWindow
+ *
+ * Purpose:    This class implements the main application window.
+ *
+ * Author:     L. Mervart
+ *
+ * Created:    29-Mar-2008
+ *
+ * Changes:    
+ *
+ * -----------------------------------------------------------------------*/
+
+#include "bnswindow.h" 
+
+using namespace std;
+
+// Constructor
+////////////////////////////////////////////////////////////////////////////
+bnsWindow::bnsWindow() {
+}
+
+// Destructor
+////////////////////////////////////////////////////////////////////////////
+bnsWindow::~bnsWindow() {
+}
+
+// Close Application gracefully
+////////////////////////////////////////////////////////////////////////////
+void bnsWindow::closeEvent(QCloseEvent* event) {
+  QMainWindow::closeEvent(event);
+  delete this;
+}
+
Index: trunk/BNS/bnswindow.h
===================================================================
--- trunk/BNS/bnswindow.h	(revision 748)
+++ trunk/BNS/bnswindow.h	(revision 748)
@@ -0,0 +1,23 @@
+#ifndef BNSWINDOW_H
+#define BNSWINDOW_H
+
+#include <QtGui>
+
+class bnsWindow : public QMainWindow {
+Q_OBJECT
+
+ public:
+  bnsWindow();
+  ~bnsWindow();
+
+ public slots:  
+
+ private slots:
+
+ protected:
+   virtual void closeEvent(QCloseEvent *);
+
+ private:
+
+};
+#endif
