Changeset 5066 in ntrip for trunk/BNC/src/bncmain.cpp
- Timestamp:
- Mar 30, 2013, 11:31:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncmain.cpp
r4716 r5066 45 45 #include <iostream> 46 46 47 #include "app.h" 47 48 #include "bncapp.h" 48 49 #include "bncwindow.h" … … 116 117 117 118 bool GUIenabled = interactive || displaySet; 118 bncApp app(argc, argv, GUIenabled);119 t_app app(argc, argv, GUIenabled); 119 120 120 121 app.setApplicationName("BNC"); 121 122 app.setOrganizationName("BKG"); 122 123 app.setOrganizationDomain("www.bkg.bund.de"); 123 app.setConfFileName( confFileName );124 PGM_CORE->setConfFileName( confFileName ); 124 125 125 126 bncSettings settings; … … 137 138 if (interactive) { 138 139 139 app.setMode(bncApp::interactive);140 PGM_CORE->setMode(t_pgmCore::interactive); 140 141 141 142 QString fontString = settings.value("font").toString(); … … 150 151 151 152 bncWindow* bncWin = new bncWindow(); 152 app.setMainWindow(bncWin);153 PGM_CORE->setMainWindow(bncWin); 153 154 bncWin->show(); 154 155 } … … 159 160 // ------------------- 160 161 else if (settings.value("pppSPP").toString() == "Post-Processing") { 161 app.setMode(bncApp::batchPostProcessing);162 PGM_CORE->setMode(t_pgmCore::batchPostProcessing); 162 163 t_postProcessing* postProcessing = new t_postProcessing(0); 163 164 postProcessing->start(); … … 167 168 // ------------------------- 168 169 else if (settings.value("reqcAction").toString() == "Edit/Concatenate") { 169 app.setMode(bncApp::batchPostProcessing);170 PGM_CORE->setMode(t_pgmCore::batchPostProcessing); 170 171 t_reqcEdit* reqcEdit = new t_reqcEdit(0); 171 172 reqcEdit->start(); … … 175 176 // ---------------------------- 176 177 else if (settings.value("reqcAction").toString() == "Analyze") { 177 app.setMode(bncApp::batchPostProcessing);178 PGM_CORE->setMode(t_pgmCore::batchPostProcessing); 178 179 t_reqcAnalyze* reqcAnalyze = new t_reqcAnalyze(0); 179 180 reqcAnalyze->start(); … … 193 194 settings.value("outPort").toInt()); 194 195 195 app.setCaster(caster);196 app.setPort(settings.value("outEphPort").toInt());197 app.setPortCorr(settings.value("corrPort").toInt());198 app.initCombination();199 200 app.connect(caster, SIGNAL(getThreadsFinished()), &app, SLOT(quit()));201 202 ((bncApp*)qApp)->slotMessage("========== Start BNC v" BNCVERSION " =========", true);196 PGM_CORE->setCaster(caster); 197 PGM_CORE->setPort(settings.value("outEphPort").toInt()); 198 PGM_CORE->setPortCorr(settings.value("corrPort").toInt()); 199 PGM_CORE->initCombination(); 200 201 PGM_CORE->connect(caster, SIGNAL(getThreadsFinished()), &app, SLOT(quit())); 202 203 PGM_CORE->slotMessage("========== Start BNC v" BNCVERSION " =========", true); 203 204 204 205 // Normal case - data from Internet 205 206 // -------------------------------- 206 207 if ( rawFileName.isEmpty() ) { 207 app.setMode(bncApp::nonInteractive);208 PGM_CORE->setMode(t_pgmCore::nonInteractive); 208 209 caster->readMountPoints(); 209 210 if (caster->numStations() == 0) { … … 215 216 // ----------------------------- 216 217 else { 217 app.setMode(bncApp::batchPostProcessing);218 PGM_CORE->setMode(t_pgmCore::batchPostProcessing); 218 219 bncRawFile* rawFile = new bncRawFile(rawFileName, "", 219 220 bncRawFile::input);
Note:
See TracChangeset
for help on using the changeset viewer.