- Timestamp:
- Mar 30, 2008, 5:03:08 PM (17 years ago)
- Location:
- trunk/BNS
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.pro
r749 r756 21 21 release:MOC_DIR=.moc/release 22 22 23 HEADERS = bns app.h bnswindow.h bnshlpdlg.h bnshtml.h23 HEADERS = bns.h bnswindow.h bnshlpdlg.h bnshtml.h 24 24 25 SOURCES = bnsmain.cpp bns app.cpp bnswindow.cpp bnshlpdlg.cpp bnshtml.cpp25 SOURCES = bnsmain.cpp bns.cpp bnswindow.cpp bnshlpdlg.cpp bnshtml.cpp 26 26 27 27 RC_FILE = bns.rc -
trunk/BNS/bnsmain.cpp
r752 r756 15 15 * -----------------------------------------------------------------------*/ 16 16 17 #include <unistd.h>18 #include <signal.h>19 17 #include <iostream> 20 18 21 #include "bns app.h"19 #include "bns.h" 22 20 #include "bnswindow.h" 23 21 24 22 using namespace std; 25 26 void catch_signal(int) {27 cout << "Program Interrupted by Ctrl-C" << endl;28 ((bnsApp*)qApp)->slotQuit();29 }30 23 31 24 // Main Program … … 41 34 } 42 35 43 QCoreApplication::setOrganizationName("BKG"); 44 QCoreApplication::setOrganizationDomain("www.bkg.bund.de"); 45 QCoreApplication::setApplicationName("BKG_NTRIP_Server"); 36 QApplication app(argc, argv, GUIenabled); 46 37 47 // Default Settings 48 // ---------------- 49 QSettings settings; 50 if (settings.allKeys().size() == 0) { 51 } 52 53 bnsApp app(argc, argv, GUIenabled); 38 app.setOrganizationName("BKG"); 39 app.setOrganizationDomain("www.bkg.bund.de"); 40 app.setApplicationName("BKG_NTRIP_Server"); 54 41 55 42 // Interactive Mode - open the main window … … 63 50 // ---------------------------- 64 51 else { 65 cerr << "non-interactive mode not yet implemented" << endl; 66 exit(0); 52 67 53 } 68 54 69 // Start the application70 // ---------------------71 55 return app.exec(); 72 56 } -
trunk/BNS/bnswindow.cpp
r755 r756 19 19 20 20 #include "bnswindow.h" 21 #include "bnsapp.h"22 21 #include "bnshlpdlg.h" 23 22 … … 271 270 void bnsWindow::slotMessage(const QByteArray msg) { 272 271 273 ((bnsApp*)qApp)->slotMessage(msg);274 275 272 const int maxBufferSize = 10000; 276 273 … … 290 287 _actStart->setEnabled(true); 291 288 _actStop->setEnabled(false); 292 ((bnsApp*)qApp)->stop();293 289 } 294 290 } … … 304 300 slotMessage("============ Start BNS ============"); 305 301 306 ((bnsApp*)qApp)->start(); 307 } 302 }
Note:
See TracChangeset
for help on using the changeset viewer.