Changeset 5066 in ntrip for trunk/BNC/src/rinex


Ignore:
Timestamp:
Mar 30, 2013, 11:31:00 AM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/bncpostprocess.cpp

    r4619 r5066  
    9898  }
    9999  else {
    100     ((bncApp*) qApp)->slotMessage(msg, false);
     100    PGM_CORE->slotMessage(msg, false);
    101101  }
    102102}
     
    222222  }
    223223
    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);
    227226  }
    228227  else {
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4718 r5066  
    101101  delete _log;     _log     = 0;
    102102  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);
    106105  }
    107106}
     
    117116                                   double maxValue) {
    118117
    119   bncApp* app = dynamic_cast<bncApp*>(qApp);
    120   if (app->GUIenabled()) {
     118  if (PGM_CORE->GUIenabled()) {
    121119
    122120    if (maxValue == 0.0) {
     
    144142    if (data1) {
    145143      t_polarPlot* plot1 = new t_polarPlot(QwtText(title1), scaleInterval,
    146                                           app->mainWindow());
     144                                          PGM_CORE->mainWindow());
    147145      plot1->addCurve(data1);
    148146      plots << plot1;
     
    150148    if (data2) {
    151149      t_polarPlot* plot2 = new t_polarPlot(QwtText(title2), scaleInterval,
    152                                            app->mainWindow());
     150                                           PGM_CORE->mainWindow());
    153151      plot2->addCurve(data2);
    154152      plots << plot2;
     
    298296  // Show the plots
    299297  // --------------
    300   if (dynamic_cast<bncApp*>(qApp)->GUIenabled()) {
     298  if (PGM_CORE->GUIenabled()) {
    301299    QFileInfo  fileInfo(obsFile->fileName());
    302300    QByteArray title = fileInfo.fileName().toAscii();
     
    653651                                     const QByteArray& title) {
    654652
    655   if (dynamic_cast<bncApp*>(qApp)->GUIenabled()) {
     653  if (PGM_CORE->GUIenabled()) {
    656654    t_availPlot* plotA = new t_availPlot(0, &_availDataMap);
    657655    plotA->setTitle(title);
  • trunk/BNC/src/rinex/reqcedit.cpp

    r4541 r5066  
    103103  // ---------------
    104104  if (_log) {
    105     bncApp* app = (bncApp*) qApp;
    106 
    107105    *_log << QByteArray(78, '-') << endl;
    108106    *_log << "Concatenation of RINEX Observation and/or Navigation Files\n";
     
    110108
    111109    *_log << QByteArray("Program").leftJustified(15) << ": "
    112           << app->pgmName() << endl;
     110          << PGM_CORE->pgmName() << endl;
    113111    *_log << QByteArray("Run by").leftJustified(15) << ": "
    114           << app->userName() << endl;
     112          << PGM_CORE->userName() << endl;
    115113    *_log << QByteArray("Date").leftJustified(15) << ": "
    116114          << QDateTime::currentDateTime().toUTC().toString("yyyy-MM-dd hh:mm:ss") << endl;
     
    148146  // Exit (thread)
    149147  // -------------
    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);
    153150  }
    154151  else {
  • trunk/BNC/src/rinex/rnxnavfile.cpp

    r4232 r5066  
    241241void t_rnxNavFile::writeHeader(const QMap<QString, QString>* txtMap) {
    242242
    243   bncApp* app = (bncApp*) qApp;
    244 
    245   QString     runBy = app->userName();
     243  QString     runBy = PGM_CORE->userName();
    246244  QStringList comments;
    247245
     
    277275                                            : "yyyyMMdd hhmmss UTC";
    278276  *_stream << QString("%1%2%3")
    279     .arg(app->pgmName(), -20)
     277    .arg(PGM_CORE->pgmName(), -20)
    280278    .arg(runBy.trimmed().left(20), -20)
    281279    .arg(QDateTime::currentDateTime().toUTC().toString(fmtDate), -20)
  • trunk/BNC/src/rinex/rnxobsfile.cpp

    r4748 r5066  
    212212                           const QMap<QString, QString>* txtMap) const {
    213213
    214   bncApp* app = (bncApp*) qApp;
    215 
    216214  QStringList newComments;
    217   QString     runBy = app->userName();
     215  QString     runBy = PGM_CORE->userName();
    218216
    219217  if (txtMap) {
     
    238236                                                  : "yyyyMMdd hhmmss UTC";
    239237  *stream << QString("%1%2%3")
    240     .arg(app->pgmName(), -20)
     238    .arg(PGM_CORE->pgmName(), -20)
    241239    .arg(runBy.trimmed().left(20), -20)
    242240    .arg(QDateTime::currentDateTime().toUTC().toString(fmtDate), -20)
Note: See TracChangeset for help on using the changeset viewer.