Changeset 5068 in ntrip
- Timestamp:
- Mar 30, 2013, 11:39:46 AM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/GPSS/gpssDecoder.cpp
r5066 r5068 51 51 gpssDecoder::gpssDecoder() : GPSDecoder() { 52 52 connect(this, SIGNAL(newGPSEph(gpsephemeris*)), 53 PGM_CORE, SLOT(slotNewGPSEph(gpsephemeris*)));53 BNC_CORE, SLOT(slotNewGPSEph(gpsephemeris*))); 54 54 } 55 55 -
trunk/BNC/src/GPSS/hassDecoder.cpp
r5066 r5068 47 47 48 48 connect(this, SIGNAL(newCorrLine(QString, QString, long)), 49 PGM_CORE, SLOT(slotNewCorrLine(QString, QString, long)));49 BNC_CORE, SLOT(slotNewCorrLine(QString, QString, long))); 50 50 } 51 51 -
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r5066 r5068 75 75 76 76 connect(this, SIGNAL(newGPSEph(gpsephemeris*)), 77 PGM_CORE, SLOT(slotNewGPSEph(gpsephemeris*)));77 BNC_CORE, SLOT(slotNewGPSEph(gpsephemeris*))); 78 78 connect(this, SIGNAL(newGlonassEph(glonassephemeris*)), 79 PGM_CORE, SLOT(slotNewGlonassEph(glonassephemeris*)));79 BNC_CORE, SLOT(slotNewGlonassEph(glonassephemeris*))); 80 80 connect(this, SIGNAL(newGalileoEph(galileoephemeris*)), 81 PGM_CORE, SLOT(slotNewGalileoEph(galileoephemeris*)));81 BNC_CORE, SLOT(slotNewGalileoEph(galileoephemeris*))); 82 82 83 83 // Mode can be either observations or corrections … … 149 149 // Get Glonass Slot Numbers from Global Array 150 150 // ------------------------------------------ 151 PGM_CORE->getGlonassSlotNums(parser.GLOFreq);151 BNC_CORE->getGlonassSlotNums(parser.GLOFreq); 152 152 153 153 // Remaining part decodes the Observations … … 377 377 378 378 if (decoded) { 379 PGM_CORE->storeGlonassSlotNums(parser.GLOFreq);379 BNC_CORE->storeGlonassSlotNums(parser.GLOFreq); 380 380 return success; 381 381 } -
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
r5066 r5068 73 73 74 74 connect(this, SIGNAL(newCorrLine(QString, QString, long)), 75 PGM_CORE, SLOT(slotNewCorrLine(QString, QString, long)));75 BNC_CORE, SLOT(slotNewCorrLine(QString, QString, long))); 76 76 77 77 connect(this, SIGNAL(newMessage(QByteArray,bool)), 78 PGM_CORE, SLOT(slotMessage(const QByteArray,bool)));78 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 79 79 80 80 memset(&_co, 0, sizeof(_co)); -
trunk/BNC/src/RTCM3/ephemeris.cpp
r5066 r5068 416 416 } 417 417 418 if (timeChanged && PGM_CORE->mode() == t_pgmCore::batchPostProcessing) {418 if (timeChanged && BNC_CORE->mode() == t_pgmCore::batchPostProcessing) { 419 419 bncTime newHTime(ww, (double) tow); 420 420 cout << "GLONASS " << ee->almanac_number << " Time Changed at " -
trunk/BNC/src/RTRover/bncrtrover.cpp
r5066 r5068 5 5 6 6 #include "bncrtrover.h" 7 #include "bnc app.h"7 #include "bnccore.h" 8 8 #include "bncsettings.h" 9 9 #include "bnctime.h" … … 93 93 // Connect to BNC Signals 94 94 // ---------------------- 95 connect( PGM_CORE, SIGNAL(newCorrections(QList<QString>)),95 connect(BNC_CORE, SIGNAL(newCorrections(QList<QString>)), 96 96 this, SLOT(slotNewCorrections(QList<QString>))); 97 97 98 connect( PGM_CORE, SIGNAL(newEphGPS(gpsephemeris)),98 connect(BNC_CORE, SIGNAL(newEphGPS(gpsephemeris)), 99 99 this, SLOT(slotNewEphGPS(gpsephemeris))); 100 100 101 connect( PGM_CORE, SIGNAL(newEphGlonass(glonassephemeris)),101 connect(BNC_CORE, SIGNAL(newEphGlonass(glonassephemeris)), 102 102 this, SLOT(slotNewEphGlonass(glonassephemeris))); 103 103 104 connect( PGM_CORE, SIGNAL(newEphGalileo(galileoephemeris)),104 connect(BNC_CORE, SIGNAL(newEphGalileo(galileoephemeris)), 105 105 this, SLOT(slotNewEphGalileo(galileoephemeris))); 106 106 -
trunk/BNC/src/app.cpp
r5067 r5068 22 22 // Global Variable 23 23 //////////////////////////////////////////////////////////////////////////// 24 t_pgmCore* PGM_CORE = 0;24 t_pgmCore* BNC_CORE = 0; 25 25 26 26 // Constructor … … 28 28 t_app::t_app(int& argc, char* argv[], bool GUIenabled) : 29 29 QApplication(argc, argv, GUIenabled) { 30 PGM_CORE = new t_pgmCore(argc, argv, GUIenabled);30 BNC_CORE = new t_pgmCore(argc, argv, GUIenabled); 31 31 } 32 32 … … 43 43 if (ev->type() == QEvent::FileOpen) { // currently happens on Mac only 44 44 QString fileName = static_cast<QFileOpenEvent*>(ev)->file(); 45 PGM_CORE->setConfFileName(fileName);45 BNC_CORE->setConfFileName(fileName); 46 46 return true; 47 47 } -
trunk/BNC/src/app.h
r5067 r5068 17 17 }; 18 18 19 extern t_pgmCore* PGM_CORE;19 extern t_pgmCore* BNC_CORE; 20 20 21 21 #endif -
trunk/BNC/src/bncapp.h
r5066 r5068 142 142 }; 143 143 144 extern t_pgmCore* PGM_CORE;144 extern t_pgmCore* BNC_CORE; 145 145 146 146 #endif -
trunk/BNC/src/bnccaster.cpp
r5066 r5068 65 65 66 66 connect(this, SIGNAL(newMessage(QByteArray,bool)), 67 PGM_CORE, SLOT(slotMessage(const QByteArray,bool)));67 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 68 68 69 69 if ( !outFileName.isEmpty() ) { … … 483 483 emit mountPointsRead(_threads); 484 484 emit( newMessage(QString("Configuration read: " 485 + PGM_CORE->confFileName()485 + BNC_CORE->confFileName() 486 486 + ", %1 stream(s)") 487 487 .arg(_threads.count()).toAscii(), true) ); -
trunk/BNC/src/bncephuser.cpp
r5066 r5068 51 51 52 52 if (connectSlots) { 53 connect( PGM_CORE, SIGNAL(newEphGPS(gpsephemeris)),53 connect(BNC_CORE, SIGNAL(newEphGPS(gpsephemeris)), 54 54 this, SLOT(slotNewEphGPS(gpsephemeris)), Qt::DirectConnection); 55 55 56 connect( PGM_CORE, SIGNAL(newEphGlonass(glonassephemeris)),56 connect(BNC_CORE, SIGNAL(newEphGlonass(glonassephemeris)), 57 57 this, SLOT(slotNewEphGlonass(glonassephemeris)), Qt::DirectConnection); 58 58 59 connect( PGM_CORE, SIGNAL(newEphGalileo(galileoephemeris)),59 connect(BNC_CORE, SIGNAL(newEphGalileo(galileoephemeris)), 60 60 this, SLOT(slotNewEphGalileo(galileoephemeris)), Qt::DirectConnection); 61 61 } -
trunk/BNC/src/bncgetthread.cpp
r5066 r5068 122 122 123 123 connect(this, SIGNAL(newMessage(QByteArray,bool)), 124 PGM_CORE, SLOT(slotMessage(const QByteArray,bool)));124 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 125 125 126 126 _isToBeDeleted = false; … … 331 331 settings.value("pppMount").toString() == _staID) { 332 332 _PPPclient = new bncPPPclient(_staID); 333 PGM_CORE->_bncPPPclient = _PPPclient;333 BNC_CORE->_bncPPPclient = _PPPclient; 334 334 qRegisterMetaType<bncTime>("bncTime"); 335 335 connect(_PPPclient, SIGNAL(newPosition(bncTime, double, double, double)), … … 440 440 if (data.isEmpty()) { 441 441 cout << "no more data" << endl; 442 PGM_CORE->stopCombination();442 BNC_CORE->stopCombination(); 443 443 QThread::exit(0); 444 444 delete this; … … 465 465 // ----------- 466 466 if (_rawOutput) { 467 PGM_CORE->writeRawData(data, _staID, _format);467 BNC_CORE->writeRawData(data, _staID, _format); 468 468 } 469 469 -
trunk/BNC/src/bncmain.cpp
r5066 r5068 122 122 app.setOrganizationName("BKG"); 123 123 app.setOrganizationDomain("www.bkg.bund.de"); 124 PGM_CORE->setConfFileName( confFileName );124 BNC_CORE->setConfFileName( confFileName ); 125 125 126 126 bncSettings settings; … … 138 138 if (interactive) { 139 139 140 PGM_CORE->setMode(t_pgmCore::interactive);140 BNC_CORE->setMode(t_pgmCore::interactive); 141 141 142 142 QString fontString = settings.value("font").toString(); … … 151 151 152 152 bncWindow* bncWin = new bncWindow(); 153 PGM_CORE->setMainWindow(bncWin);153 BNC_CORE->setMainWindow(bncWin); 154 154 bncWin->show(); 155 155 } … … 160 160 // ------------------- 161 161 else if (settings.value("pppSPP").toString() == "Post-Processing") { 162 PGM_CORE->setMode(t_pgmCore::batchPostProcessing);162 BNC_CORE->setMode(t_pgmCore::batchPostProcessing); 163 163 t_postProcessing* postProcessing = new t_postProcessing(0); 164 164 postProcessing->start(); … … 168 168 // ------------------------- 169 169 else if (settings.value("reqcAction").toString() == "Edit/Concatenate") { 170 PGM_CORE->setMode(t_pgmCore::batchPostProcessing);170 BNC_CORE->setMode(t_pgmCore::batchPostProcessing); 171 171 t_reqcEdit* reqcEdit = new t_reqcEdit(0); 172 172 reqcEdit->start(); … … 176 176 // ---------------------------- 177 177 else if (settings.value("reqcAction").toString() == "Analyze") { 178 PGM_CORE->setMode(t_pgmCore::batchPostProcessing);178 BNC_CORE->setMode(t_pgmCore::batchPostProcessing); 179 179 t_reqcAnalyze* reqcAnalyze = new t_reqcAnalyze(0); 180 180 reqcAnalyze->start(); … … 194 194 settings.value("outPort").toInt()); 195 195 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);196 BNC_CORE->setCaster(caster); 197 BNC_CORE->setPort(settings.value("outEphPort").toInt()); 198 BNC_CORE->setPortCorr(settings.value("corrPort").toInt()); 199 BNC_CORE->initCombination(); 200 201 BNC_CORE->connect(caster, SIGNAL(getThreadsFinished()), &app, SLOT(quit())); 202 203 BNC_CORE->slotMessage("========== Start BNC v" BNCVERSION " =========", true); 204 204 205 205 // Normal case - data from Internet 206 206 // -------------------------------- 207 207 if ( rawFileName.isEmpty() ) { 208 PGM_CORE->setMode(t_pgmCore::nonInteractive);208 BNC_CORE->setMode(t_pgmCore::nonInteractive); 209 209 caster->readMountPoints(); 210 210 if (caster->numStations() == 0) { … … 216 216 // ----------------------------- 217 217 else { 218 PGM_CORE->setMode(t_pgmCore::batchPostProcessing);218 BNC_CORE->setMode(t_pgmCore::batchPostProcessing); 219 219 bncRawFile* rawFile = new bncRawFile(rawFileName, "", 220 220 bncRawFile::input); -
trunk/BNC/src/bncnetquery.h
r5066 r5068 14 14 bncNetQuery() { 15 15 connect(this, SIGNAL(newMessage(QByteArray,bool)), 16 PGM_CORE, SLOT(slotMessage(const QByteArray,bool)));16 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 17 17 } 18 18 virtual ~bncNetQuery() {} -
trunk/BNC/src/bncnetqueryv2.cpp
r5066 r5068 42 42 43 43 if (_secure && !QSslSocket::supportsSsl()) { 44 PGM_CORE->slotMessage("No SSL support, install OpenSSL run-time libraries", true);44 BNC_CORE->slotMessage("No SSL support, install OpenSSL run-time libraries", true); 45 45 stop(); 46 46 } … … 219 219 } 220 220 221 PGM_CORE->slotMessage(msg.toAscii(), true);221 BNC_CORE->slotMessage(msg.toAscii(), true); 222 222 223 223 if (_ignoreSslErrors) { -
trunk/BNC/src/bncpppclient.cpp
r5066 r5068 72 72 if (connectSlots) { 73 73 connect(this, SIGNAL(newMessage(QByteArray,bool)), 74 PGM_CORE, SLOT(slotMessage(const QByteArray,bool)));75 76 connect( PGM_CORE, SIGNAL(newCorrections(QList<QString>)),74 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 75 76 connect(BNC_CORE, SIGNAL(newCorrections(QList<QString>)), 77 77 this, SLOT(slotNewCorrections(QList<QString>))); 78 78 } -
trunk/BNC/src/bncrawfile.cpp
r5066 r5068 136 136 QStringList lst = line.split(' '); 137 137 138 delete PGM_CORE->_currentDateAndTimeGPS;139 PGM_CORE->_currentDateAndTimeGPS =138 delete BNC_CORE->_currentDateAndTimeGPS; 139 BNC_CORE->_currentDateAndTimeGPS = 140 140 new QDateTime(QDateTime::fromString(lst.value(0), Qt::ISODate)); 141 141 -
trunk/BNC/src/bncsettings.cpp
r5066 r5068 29 29 // First fill the options 30 30 // ---------------------- 31 if ( PGM_CORE->_settings.size() == 0) {31 if (BNC_CORE->_settings.size() == 0) { 32 32 reRead(); 33 33 } … … 43 43 void bncSettings::reRead() { 44 44 45 PGM_CORE->_settings.clear();46 47 QSettings settings( PGM_CORE->confFileName(), QSettings::IniFormat);45 BNC_CORE->_settings.clear(); 46 47 QSettings settings(BNC_CORE->confFileName(), QSettings::IniFormat); 48 48 49 49 // Read from File … … 53 53 while (it.hasNext()) { 54 54 QString key = it.next(); 55 PGM_CORE->_settings[key] = settings.value(key);55 BNC_CORE->_settings[key] = settings.value(key); 56 56 } 57 57 } … … 218 218 QMutexLocker locker(&_mutex); 219 219 220 if ( PGM_CORE->_settings.contains(key)) {221 return PGM_CORE->_settings[key];220 if (BNC_CORE->_settings.contains(key)) { 221 return BNC_CORE->_settings[key]; 222 222 } 223 223 else { … … 236 236 //////////////////////////////////////////////////////////////////////////// 237 237 void bncSettings::setValue_p(const QString &key, const QVariant& value) { 238 PGM_CORE->_settings[key] = value;238 BNC_CORE->_settings[key] = value; 239 239 } 240 240 … … 243 243 void bncSettings::remove(const QString& key ) { 244 244 QMutexLocker locker(&_mutex); 245 PGM_CORE->_settings.remove(key);245 BNC_CORE->_settings.remove(key); 246 246 } 247 247 … … 250 250 void bncSettings::sync() { 251 251 QMutexLocker locker(&_mutex); 252 QSettings settings( PGM_CORE->confFileName(), QSettings::IniFormat);252 QSettings settings(BNC_CORE->confFileName(), QSettings::IniFormat); 253 253 settings.clear(); 254 QMapIterator<QString, QVariant> it( PGM_CORE->_settings);254 QMapIterator<QString, QVariant> it(BNC_CORE->_settings); 255 255 while (it.hasNext()) { 256 256 it.next(); -
trunk/BNC/src/bncutils.cpp
r5066 r5068 91 91 QDateTime currDateTimeGPS; 92 92 93 if ( PGM_CORE->_currentDateAndTimeGPS ) {94 currDateTimeGPS = *( PGM_CORE->_currentDateAndTimeGPS);93 if ( BNC_CORE->_currentDateAndTimeGPS ) { 94 currDateTimeGPS = *(BNC_CORE->_currentDateAndTimeGPS); 95 95 } 96 96 else { … … 116 116 //////////////////////////////////////////////////////////////////////////// 117 117 QDateTime currentDateAndTimeGPS() { 118 if ( PGM_CORE->_currentDateAndTimeGPS ) {119 return *( PGM_CORE->_currentDateAndTimeGPS);118 if ( BNC_CORE->_currentDateAndTimeGPS ) { 119 return *(BNC_CORE->_currentDateAndTimeGPS); 120 120 } 121 121 else { -
trunk/BNC/src/bncwindow.cpp
r5066 r5068 101 101 setWindowTitle(tr("BKG Ntrip Client (BNC) Version " BNCVERSION)); 102 102 103 connect( PGM_CORE, SIGNAL(newMessage(QByteArray,bool)),103 connect(BNC_CORE, SIGNAL(newMessage(QByteArray,bool)), 104 104 this, SLOT(slotWindowMessage(QByteArray,bool))); 105 105 … … 1921 1921 //////////////////////////////////////////////////////////////////////////// 1922 1922 void bncWindow::slotGetThreadsFinished() { 1923 PGM_CORE->slotMessage("All Get Threads Terminated", true);1923 BNC_CORE->slotMessage("All Get Threads Terminated", true); 1924 1924 delete _caster; _caster = 0; 1925 1925 delete _casterEph; _casterEph = 0; … … 1957 1957 _outPortLineEdit->text().toInt()); 1958 1958 1959 PGM_CORE->setPort(_outEphPortLineEdit->text().toInt());1960 PGM_CORE->setPortCorr(_corrPortLineEdit->text().toInt());1961 PGM_CORE->initCombination();1959 BNC_CORE->setPort(_outEphPortLineEdit->text().toInt()); 1960 BNC_CORE->setPortCorr(_corrPortLineEdit->text().toInt()); 1961 BNC_CORE->initCombination(); 1962 1962 1963 1963 connect(_caster, SIGNAL(getThreadsFinished()), … … 1967 1967 this, SLOT(slotMountPointsRead(QList<bncGetThread*>))); 1968 1968 1969 PGM_CORE->slotMessage("========== Start BNC v" BNCVERSION " =========", true);1969 BNC_CORE->slotMessage("========== Start BNC v" BNCVERSION " =========", true); 1970 1970 1971 1971 bncSettings settings; 1972 1972 1973 1973 QDir rnxdir(settings.value("rnxPath").toString()); 1974 if (!rnxdir.exists()) PGM_CORE->slotMessage("Cannot find RINEX Observations directory", true);1974 if (!rnxdir.exists()) BNC_CORE->slotMessage("Cannot find RINEX Observations directory", true); 1975 1975 1976 1976 QString rnx_file = settings.value("rnxScript").toString(); 1977 1977 if ( !rnx_file.isEmpty() ) { 1978 1978 QFile rnxfile(settings.value("rnxScript").toString()); 1979 if (!rnxfile.exists()) PGM_CORE->slotMessage("Cannot find RINEX Observations script", true);1979 if (!rnxfile.exists()) BNC_CORE->slotMessage("Cannot find RINEX Observations script", true); 1980 1980 } 1981 1981 1982 1982 QDir ephdir(settings.value("ephPath").toString()); 1983 if (!ephdir.exists()) PGM_CORE->slotMessage("Cannot find RINEX Ephemeris directory", true);1983 if (!ephdir.exists()) BNC_CORE->slotMessage("Cannot find RINEX Ephemeris directory", true); 1984 1984 1985 1985 QDir corrdir(settings.value("corrPath").toString()); 1986 if (!corrdir.exists()) PGM_CORE->slotMessage("Cannot find Broadcast Corrections directory", true);1986 if (!corrdir.exists()) BNC_CORE->slotMessage("Cannot find Broadcast Corrections directory", true); 1987 1987 1988 1988 QString advise_file = settings.value("adviseScript").toString(); 1989 1989 if ( !advise_file.isEmpty() ) { 1990 1990 QFile advisefile(settings.value("adviseScript").toString()); 1991 if (!advisefile.exists()) PGM_CORE->slotMessage("Cannot find Outages script", true);1991 if (!advisefile.exists()) BNC_CORE->slotMessage("Cannot find Outages script", true); 1992 1992 } 1993 1993 … … 1995 1995 if ( !ant_file.isEmpty() ) { 1996 1996 QFile anxfile(settings.value("pppAntex").toString()); 1997 if (!anxfile.exists()) PGM_CORE->slotMessage("Cannot find IGS ANTEX file", true);1997 if (!anxfile.exists()) BNC_CORE->slotMessage("Cannot find IGS ANTEX file", true); 1998 1998 } 1999 1999 … … 2012 2012 QMessageBox::NoButton); 2013 2013 if (iRet == QMessageBox::Yes) { 2014 PGM_CORE->stopCombination();2014 BNC_CORE->stopCombination(); 2015 2015 delete _caster; _caster = 0; 2016 2016 delete _casterEph; _casterEph = 0; … … 2584 2584 bncIt->setFlags(bncIt->flags() & ~Qt::ItemIsEditable); 2585 2585 _uploadTable->setItem(iRow, iCol, bncIt); 2586 PGM_CORE->_uploadTableItems[iRow] = bncIt;2586 BNC_CORE->_uploadTableItems[iRow] = bncIt; 2587 2587 } 2588 2588 else { … … 2595 2595 //////////////////////////////////////////////////////////////////////////// 2596 2596 void bncWindow::slotDelUploadRow() { 2597 PGM_CORE->_uploadTableItems.clear();2597 BNC_CORE->_uploadTableItems.clear(); 2598 2598 int nRows = _uploadTable->rowCount(); 2599 2599 bool flg[nRows]; … … 2612 2612 } 2613 2613 for (int iRow = 0; iRow < _uploadTable->rowCount(); iRow++) { 2614 PGM_CORE->_uploadTableItems[iRow] =2614 BNC_CORE->_uploadTableItems[iRow] = 2615 2615 (bncTableItem*) _uploadTable->item(iRow, 11); 2616 2616 } … … 2668 2668 bncIt->setFlags(bncIt->flags() & ~Qt::ItemIsEditable); 2669 2669 _uploadTable->setItem(iRow, iCol, bncIt); 2670 PGM_CORE->_uploadTableItems[iRow] = bncIt;2670 BNC_CORE->_uploadTableItems[iRow] = bncIt; 2671 2671 } 2672 2672 else { -
trunk/BNC/src/combination/bnccomb.cpp
r5066 r5068 163 163 164 164 connect(this, SIGNAL(newMessage(QByteArray,bool)), 165 PGM_CORE, SLOT(slotMessage(const QByteArray,bool)));165 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 166 166 167 167 // Combination Method … … 750 750 // Optionally send new Corrections to PPP 751 751 // -------------------------------------- 752 if ( PGM_CORE->_bncPPPclient) {753 PGM_CORE->_bncPPPclient->slotNewCorrections(corrLines);752 if (BNC_CORE->_bncPPPclient) { 753 BNC_CORE->_bncPPPclient->slotNewCorrections(corrLines); 754 754 } 755 755 } -
trunk/BNC/src/latencychecker.cpp
r5066 r5068 61 61 62 62 connect(this, SIGNAL(newMessage(QByteArray,bool)), 63 PGM_CORE, SLOT(slotMessage(const QByteArray,bool)));63 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 64 64 65 65 bncSettings settings; -
trunk/BNC/src/rinex/bncpostprocess.cpp
r5066 r5068 98 98 } 99 99 else { 100 PGM_CORE->slotMessage(msg, false);100 BNC_CORE->slotMessage(msg, false); 101 101 } 102 102 } … … 222 222 } 223 223 224 if ( PGM_CORE->mode() != t_pgmCore::interactive) {224 if (BNC_CORE->mode() != t_pgmCore::interactive) { 225 225 qApp->exit(0); 226 226 } -
trunk/BNC/src/rinex/reqcanalyze.cpp
r5066 r5068 101 101 delete _log; _log = 0; 102 102 delete _logFile; _logFile = 0; 103 if ( PGM_CORE->mode() != t_pgmCore::interactive) {103 if (BNC_CORE->mode() != t_pgmCore::interactive) { 104 104 qApp->exit(0); 105 105 } … … 116 116 double maxValue) { 117 117 118 if ( PGM_CORE->GUIenabled()) {118 if (BNC_CORE->GUIenabled()) { 119 119 120 120 if (maxValue == 0.0) { … … 142 142 if (data1) { 143 143 t_polarPlot* plot1 = new t_polarPlot(QwtText(title1), scaleInterval, 144 PGM_CORE->mainWindow());144 BNC_CORE->mainWindow()); 145 145 plot1->addCurve(data1); 146 146 plots << plot1; … … 148 148 if (data2) { 149 149 t_polarPlot* plot2 = new t_polarPlot(QwtText(title2), scaleInterval, 150 PGM_CORE->mainWindow());150 BNC_CORE->mainWindow()); 151 151 plot2->addCurve(data2); 152 152 plots << plot2; … … 296 296 // Show the plots 297 297 // -------------- 298 if ( PGM_CORE->GUIenabled()) {298 if (BNC_CORE->GUIenabled()) { 299 299 QFileInfo fileInfo(obsFile->fileName()); 300 300 QByteArray title = fileInfo.fileName().toAscii(); … … 651 651 const QByteArray& title) { 652 652 653 if ( PGM_CORE->GUIenabled()) {653 if (BNC_CORE->GUIenabled()) { 654 654 t_availPlot* plotA = new t_availPlot(0, &_availDataMap); 655 655 plotA->setTitle(title); -
trunk/BNC/src/rinex/reqcedit.cpp
r5066 r5068 108 108 109 109 *_log << QByteArray("Program").leftJustified(15) << ": " 110 << PGM_CORE->pgmName() << endl;110 << BNC_CORE->pgmName() << endl; 111 111 *_log << QByteArray("Run by").leftJustified(15) << ": " 112 << PGM_CORE->userName() << endl;112 << BNC_CORE->userName() << endl; 113 113 *_log << QByteArray("Date").leftJustified(15) << ": " 114 114 << QDateTime::currentDateTime().toUTC().toString("yyyy-MM-dd hh:mm:ss") << endl; … … 146 146 // Exit (thread) 147 147 // ------------- 148 if ( PGM_CORE->mode() != t_pgmCore::interactive) {148 if (BNC_CORE->mode() != t_pgmCore::interactive) { 149 149 qApp->exit(0); 150 150 } -
trunk/BNC/src/rinex/rnxnavfile.cpp
r5066 r5068 241 241 void t_rnxNavFile::writeHeader(const QMap<QString, QString>* txtMap) { 242 242 243 QString runBy = PGM_CORE->userName();243 QString runBy = BNC_CORE->userName(); 244 244 QStringList comments; 245 245 … … 275 275 : "yyyyMMdd hhmmss UTC"; 276 276 *_stream << QString("%1%2%3") 277 .arg( PGM_CORE->pgmName(), -20)277 .arg(BNC_CORE->pgmName(), -20) 278 278 .arg(runBy.trimmed().left(20), -20) 279 279 .arg(QDateTime::currentDateTime().toUTC().toString(fmtDate), -20) -
trunk/BNC/src/rinex/rnxobsfile.cpp
r5066 r5068 213 213 214 214 QStringList newComments; 215 QString runBy = PGM_CORE->userName();215 QString runBy = BNC_CORE->userName(); 216 216 217 217 if (txtMap) { … … 236 236 : "yyyyMMdd hhmmss UTC"; 237 237 *stream << QString("%1%2%3") 238 .arg( PGM_CORE->pgmName(), -20)238 .arg(BNC_CORE->pgmName(), -20) 239 239 .arg(runBy.trimmed().left(20), -20) 240 240 .arg(QDateTime::currentDateTime().toUTC().toString(fmtDate), -20) -
trunk/BNC/src/upload/bncuploadcaster.cpp
r5066 r5068 46 46 47 47 connect(this, SIGNAL(newMessage(QByteArray,bool)), 48 PGM_CORE, SLOT(slotMessage(const QByteArray,bool)));48 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 49 49 50 if ( PGM_CORE->_uploadTableItems.find(_iRow) != PGM_CORE->_uploadTableItems.end()){50 if (BNC_CORE->_uploadTableItems.find(_iRow) != BNC_CORE->_uploadTableItems.end()){ 51 51 connect(this, SIGNAL(newBytes(QByteArray,double)), 52 PGM_CORE->_uploadTableItems.value(iRow),52 BNC_CORE->_uploadTableItems.value(iRow), 53 53 SLOT(slotNewBytes(const QByteArray,double))); 54 54 }
Note:
See TracChangeset
for help on using the changeset viewer.