- Timestamp:
- Nov 8, 2006, 11:08:37 AM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncrinex.cpp
r267 r276 39 39 _mountPoint = mountPoint; 40 40 _headerWritten = false; 41 readSkeleton();42 41 43 42 QSettings settings; … … 61 60 void bncRinex::readSkeleton() { 62 61 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(); 72 63 73 64 // Read the File 74 65 // ------------- 75 QFile skl( sklName);66 QFile skl(_sklName); 76 67 if ( skl.exists() && skl.open(QIODevice::ReadOnly) ) { 77 68 QTextStream in(&skl); … … 167 158 } 168 159 160 QString sklExt = settings.value("rnxSkel").toString(); 161 if (!sklExt.isEmpty()) { 162 _sklName = path + ID4 + distStr + "." + sklExt; 163 } 164 169 165 path += ID4 + 170 166 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) + 171 hlpStr + distStr + 172 datTim.toString(".yyO"); 167 hlpStr + distStr + datTim.toString(".yyO"); 173 168 174 169 _fName = path.toAscii(); … … 201 196 // Copy Skeleton Header 202 197 // -------------------- 198 readSkeleton(); 203 199 if (_headerLines.size() > 0) { 204 200 QStringListIterator it(_headerLines); -
trunk/BNC/bncrinex.h
r267 r276 37 37 QString _pgmName; 38 38 QString _userName; 39 QString _sklName; 39 40 }; 40 41 -
trunk/BNC/bncwindow.cpp
r274 r276 178 178 179 179 bncTableItem* bncIt = new bncTableItem(); 180 bncIt->setFlags(bncIt->flags() & ~Qt::ItemIsEditable); 180 181 _mountPointsTable->setItem(iRow, 3, bncIt); 181 182
Note:
See TracChangeset
for help on using the changeset viewer.