Changeset 5066 in ntrip for trunk/BNC/src/bncmain.cpp


Ignore:
Timestamp:
Mar 30, 2013, 11:31:00 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncmain.cpp

    r4716 r5066  
    4545#include <iostream>
    4646
     47#include "app.h"
    4748#include "bncapp.h"
    4849#include "bncwindow.h"
     
    116117
    117118  bool GUIenabled = interactive || displaySet;
    118   bncApp app(argc, argv, GUIenabled);
     119  t_app app(argc, argv, GUIenabled);
    119120
    120121  app.setApplicationName("BNC");
    121122  app.setOrganizationName("BKG");
    122123  app.setOrganizationDomain("www.bkg.bund.de");
    123   app.setConfFileName( confFileName );
     124  PGM_CORE->setConfFileName( confFileName );
    124125
    125126  bncSettings settings;
     
    137138  if (interactive) {
    138139
    139     app.setMode(bncApp::interactive);
     140    PGM_CORE->setMode(t_pgmCore::interactive);
    140141
    141142    QString fontString = settings.value("font").toString();
     
    150151
    151152    bncWindow* bncWin = new bncWindow();
    152     app.setMainWindow(bncWin);
     153    PGM_CORE->setMainWindow(bncWin);
    153154    bncWin->show();
    154155  }
     
    159160  // -------------------
    160161  else if (settings.value("pppSPP").toString() == "Post-Processing") {
    161     app.setMode(bncApp::batchPostProcessing);
     162    PGM_CORE->setMode(t_pgmCore::batchPostProcessing);
    162163    t_postProcessing* postProcessing = new t_postProcessing(0);
    163164    postProcessing->start();
     
    167168  // -------------------------
    168169  else if (settings.value("reqcAction").toString() == "Edit/Concatenate") {
    169     app.setMode(bncApp::batchPostProcessing);
     170    PGM_CORE->setMode(t_pgmCore::batchPostProcessing);
    170171    t_reqcEdit* reqcEdit = new t_reqcEdit(0);
    171172    reqcEdit->start();
     
    175176  // ----------------------------
    176177  else if (settings.value("reqcAction").toString() == "Analyze") {
    177     app.setMode(bncApp::batchPostProcessing);
     178    PGM_CORE->setMode(t_pgmCore::batchPostProcessing);
    178179    t_reqcAnalyze* reqcAnalyze = new t_reqcAnalyze(0);
    179180    reqcAnalyze->start();
     
    193194                                      settings.value("outPort").toInt());
    194195   
    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);
    203204   
    204205    // Normal case - data from Internet
    205206    // --------------------------------
    206207    if ( rawFileName.isEmpty() ) {
    207       app.setMode(bncApp::nonInteractive);
     208      PGM_CORE->setMode(t_pgmCore::nonInteractive);
    208209      caster->readMountPoints();
    209210      if (caster->numStations() == 0) {
     
    215216    // -----------------------------
    216217    else {
    217       app.setMode(bncApp::batchPostProcessing);
     218      PGM_CORE->setMode(t_pgmCore::batchPostProcessing);
    218219      bncRawFile*   rawFile   = new bncRawFile(rawFileName, "",
    219220                                               bncRawFile::input);
Note: See TracChangeset for help on using the changeset viewer.