Changeset 5066 in ntrip for trunk/BNC/src/bncwindow.cpp
- Timestamp:
- Mar 30, 2013, 11:31:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r5063 r5066 101 101 setWindowTitle(tr("BKG Ntrip Client (BNC) Version " BNCVERSION)); 102 102 103 connect( (bncApp*)qApp, SIGNAL(newMessage(QByteArray,bool)),104 103 connect(PGM_CORE, SIGNAL(newMessage(QByteArray,bool)), 104 this, SLOT(slotWindowMessage(QByteArray,bool))); 105 105 106 106 // Create Actions … … 1921 1921 //////////////////////////////////////////////////////////////////////////// 1922 1922 void bncWindow::slotGetThreadsFinished() { 1923 ((bncApp*)qApp)->slotMessage("All Get Threads Terminated", true);1923 PGM_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 ((bncApp*)qApp)->setPort(_outEphPortLineEdit->text().toInt());1960 ((bncApp*)qApp)->setPortCorr(_corrPortLineEdit->text().toInt());1961 ((bncApp*)qApp)->initCombination();1959 PGM_CORE->setPort(_outEphPortLineEdit->text().toInt()); 1960 PGM_CORE->setPortCorr(_corrPortLineEdit->text().toInt()); 1961 PGM_CORE->initCombination(); 1962 1962 1963 1963 connect(_caster, SIGNAL(getThreadsFinished()), … … 1967 1967 this, SLOT(slotMountPointsRead(QList<bncGetThread*>))); 1968 1968 1969 ((bncApp*)qApp)->slotMessage("========== Start BNC v" BNCVERSION " =========", true);1969 PGM_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()) ((bncApp*)qApp)->slotMessage("Cannot find RINEX Observations directory", true);1974 if (!rnxdir.exists()) PGM_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()) ((bncApp*)qApp)->slotMessage("Cannot find RINEX Observations script", true);1979 if (!rnxfile.exists()) PGM_CORE->slotMessage("Cannot find RINEX Observations script", true); 1980 1980 } 1981 1981 1982 1982 QDir ephdir(settings.value("ephPath").toString()); 1983 if (!ephdir.exists()) ((bncApp*)qApp)->slotMessage("Cannot find RINEX Ephemeris directory", true);1983 if (!ephdir.exists()) PGM_CORE->slotMessage("Cannot find RINEX Ephemeris directory", true); 1984 1984 1985 1985 QDir corrdir(settings.value("corrPath").toString()); 1986 if (!corrdir.exists()) ((bncApp*)qApp)->slotMessage("Cannot find Broadcast Corrections directory", true);1986 if (!corrdir.exists()) PGM_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()) ((bncApp*)qApp)->slotMessage("Cannot find Outages script", true);1991 if (!advisefile.exists()) PGM_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()) ((bncApp*)qApp)->slotMessage("Cannot find IGS ANTEX file", true);1997 if (!anxfile.exists()) PGM_CORE->slotMessage("Cannot find IGS ANTEX file", true); 1998 1998 } 1999 1999 … … 2012 2012 QMessageBox::NoButton); 2013 2013 if (iRet == QMessageBox::Yes) { 2014 ((bncApp*)qApp)->stopCombination();2014 PGM_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 ((bncApp*)qApp)->_uploadTableItems[iRow] = bncIt;2586 PGM_CORE->_uploadTableItems[iRow] = bncIt; 2587 2587 } 2588 2588 else { … … 2595 2595 //////////////////////////////////////////////////////////////////////////// 2596 2596 void bncWindow::slotDelUploadRow() { 2597 ((bncApp*)qApp)->_uploadTableItems.clear();2597 PGM_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 ((bncApp*)qApp)->_uploadTableItems[iRow] =2614 PGM_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 ((bncApp*)qApp)->_uploadTableItems[iRow] = bncIt;2670 PGM_CORE->_uploadTableItems[iRow] = bncIt; 2671 2671 } 2672 2672 else {
Note:
See TracChangeset
for help on using the changeset viewer.