Changeset 5066 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Mar 30, 2013, 11:31:00 AM (12 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/bncpostprocess.cpp
r4619 r5066 98 98 } 99 99 else { 100 ((bncApp*) qApp)->slotMessage(msg, false);100 PGM_CORE->slotMessage(msg, false); 101 101 } 102 102 } … … 222 222 } 223 223 224 bncApp* app = (bncApp*) qApp; 225 if ( app->mode() != bncApp::interactive) { 226 app->exit(0); 224 if (PGM_CORE->mode() != t_pgmCore::interactive) { 225 qApp->exit(0); 227 226 } 228 227 else { -
trunk/BNC/src/rinex/reqcanalyze.cpp
r4718 r5066 101 101 delete _log; _log = 0; 102 102 delete _logFile; _logFile = 0; 103 bncApp* app = (bncApp*) qApp; 104 if ( app->mode() != bncApp::interactive) { 105 app->exit(0); 103 if (PGM_CORE->mode() != t_pgmCore::interactive) { 104 qApp->exit(0); 106 105 } 107 106 } … … 117 116 double maxValue) { 118 117 119 bncApp* app = dynamic_cast<bncApp*>(qApp); 120 if (app->GUIenabled()) { 118 if (PGM_CORE->GUIenabled()) { 121 119 122 120 if (maxValue == 0.0) { … … 144 142 if (data1) { 145 143 t_polarPlot* plot1 = new t_polarPlot(QwtText(title1), scaleInterval, 146 app->mainWindow());144 PGM_CORE->mainWindow()); 147 145 plot1->addCurve(data1); 148 146 plots << plot1; … … 150 148 if (data2) { 151 149 t_polarPlot* plot2 = new t_polarPlot(QwtText(title2), scaleInterval, 152 app->mainWindow());150 PGM_CORE->mainWindow()); 153 151 plot2->addCurve(data2); 154 152 plots << plot2; … … 298 296 // Show the plots 299 297 // -------------- 300 if ( dynamic_cast<bncApp*>(qApp)->GUIenabled()) {298 if (PGM_CORE->GUIenabled()) { 301 299 QFileInfo fileInfo(obsFile->fileName()); 302 300 QByteArray title = fileInfo.fileName().toAscii(); … … 653 651 const QByteArray& title) { 654 652 655 if ( dynamic_cast<bncApp*>(qApp)->GUIenabled()) {653 if (PGM_CORE->GUIenabled()) { 656 654 t_availPlot* plotA = new t_availPlot(0, &_availDataMap); 657 655 plotA->setTitle(title); -
trunk/BNC/src/rinex/reqcedit.cpp
r4541 r5066 103 103 // --------------- 104 104 if (_log) { 105 bncApp* app = (bncApp*) qApp;106 107 105 *_log << QByteArray(78, '-') << endl; 108 106 *_log << "Concatenation of RINEX Observation and/or Navigation Files\n"; … … 110 108 111 109 *_log << QByteArray("Program").leftJustified(15) << ": " 112 << app->pgmName() << endl;110 << PGM_CORE->pgmName() << endl; 113 111 *_log << QByteArray("Run by").leftJustified(15) << ": " 114 << app->userName() << endl;112 << PGM_CORE->userName() << endl; 115 113 *_log << QByteArray("Date").leftJustified(15) << ": " 116 114 << QDateTime::currentDateTime().toUTC().toString("yyyy-MM-dd hh:mm:ss") << endl; … … 148 146 // Exit (thread) 149 147 // ------------- 150 bncApp* app = (bncApp*) qApp; 151 if ( app->mode() != bncApp::interactive) { 152 app->exit(0); 148 if (PGM_CORE->mode() != t_pgmCore::interactive) { 149 qApp->exit(0); 153 150 } 154 151 else { -
trunk/BNC/src/rinex/rnxnavfile.cpp
r4232 r5066 241 241 void t_rnxNavFile::writeHeader(const QMap<QString, QString>* txtMap) { 242 242 243 bncApp* app = (bncApp*) qApp; 244 245 QString runBy = app->userName(); 243 QString runBy = PGM_CORE->userName(); 246 244 QStringList comments; 247 245 … … 277 275 : "yyyyMMdd hhmmss UTC"; 278 276 *_stream << QString("%1%2%3") 279 .arg( app->pgmName(), -20)277 .arg(PGM_CORE->pgmName(), -20) 280 278 .arg(runBy.trimmed().left(20), -20) 281 279 .arg(QDateTime::currentDateTime().toUTC().toString(fmtDate), -20) -
trunk/BNC/src/rinex/rnxobsfile.cpp
r4748 r5066 212 212 const QMap<QString, QString>* txtMap) const { 213 213 214 bncApp* app = (bncApp*) qApp;215 216 214 QStringList newComments; 217 QString runBy = app->userName();215 QString runBy = PGM_CORE->userName(); 218 216 219 217 if (txtMap) { … … 238 236 : "yyyyMMdd hhmmss UTC"; 239 237 *stream << QString("%1%2%3") 240 .arg( app->pgmName(), -20)238 .arg(PGM_CORE->pgmName(), -20) 241 239 .arg(runBy.trimmed().left(20), -20) 242 240 .arg(QDateTime::currentDateTime().toUTC().toString(fmtDate), -20)
Note:
See TracChangeset
for help on using the changeset viewer.