Changeset 276 in ntrip for trunk/BNC


Ignore:
Timestamp:
Nov 8, 2006, 11:08:37 AM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncrinex.cpp

    r267 r276  
    3939  _mountPoint = mountPoint;
    4040  _headerWritten = false;
    41   readSkeleton();
    4241
    4342  QSettings settings;
     
    6160void bncRinex::readSkeleton() {
    6261
    63   // Resolve Skeleton File Name
    64   // --------------------------
    65   QSettings settings;
    66   QString sklName = settings.value("rnxPath").toString();
    67   expandEnvVar(sklName);
    68   if ( sklName[sklName.length()-1] != QDir::separator() ) {
    69     sklName += QDir::separator();
    70   }
    71   sklName += _statID.left(4) + "." + settings.value("rnxSkel").toString();
     62  _headerLines.clear();
    7263
    7364  // Read the File
    7465  // -------------
    75   QFile skl(sklName);
     66  QFile skl(_sklName);
    7667  if ( skl.exists() && skl.open(QIODevice::ReadOnly) ) {
    7768    QTextStream in(&skl);
     
    167158  }
    168159
     160  QString sklExt = settings.value("rnxSkel").toString();
     161  if (!sklExt.isEmpty()) {
     162    _sklName = path + ID4 + distStr + "." + sklExt;
     163  }
     164
    169165  path += ID4 +
    170166          QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
    171           hlpStr + distStr +
    172           datTim.toString(".yyO");
     167          hlpStr + distStr + datTim.toString(".yyO");
    173168
    174169  _fName = path.toAscii();
     
    201196  // Copy Skeleton Header
    202197  // --------------------
     198  readSkeleton();
    203199  if (_headerLines.size() > 0) {
    204200    QStringListIterator it(_headerLines);
  • trunk/BNC/bncrinex.h

    r267 r276  
    3737   QString             _pgmName;
    3838   QString             _userName;
     39   QString             _sklName;
    3940};
    4041
  • trunk/BNC/bncwindow.cpp

    r274 r276  
    178178
    179179    bncTableItem* bncIt = new bncTableItem();
     180    bncIt->setFlags(bncIt->flags() & ~Qt::ItemIsEditable);
    180181    _mountPointsTable->setItem(iRow, 3, bncIt);
    181182
Note: See TracChangeset for help on using the changeset viewer.