- Timestamp:
- Nov 3, 2007, 11:11:37 AM (17 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r559 r563 238 238 if (!_ephPath.isEmpty()) { 239 239 240 QDate date = QDate::currentDate();240 QDateTime datTim = QDateTime::currentDateTime(); 241 241 242 242 QString hlp = (_rinexVers == 3) ? "MIX_" : "GPS_"; 243 QString ephFileNameGPS = _ephPath + hlp + 244 QString("%1").arg(date.dayOfYear(), 3, 10, QChar('0')) + 245 date.toString("0.yyN"); 243 QString ephFileNameGPS = _ephPath + hlp + 244 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')); 245 246 QString hlpStr; 247 QString intStr = settings.value("ephIntr").toString(); 248 if (intStr == "1 day") { 249 hlpStr = "0"; 250 } 251 else if (intStr == "1 hour") { 252 char ch = 'A' + datTim.time().hour(); 253 hlpStr = ch; 254 } 255 else { 256 char ch = 'A' + datTim.time().hour(); 257 hlpStr = ch; 258 if (datTim.time().minute() < 15) { 259 hlpStr += "00"; 260 } 261 else if (datTim.time().minute() < 30) { 262 hlpStr += "15"; 263 } 264 else if (datTim.time().minute() < 45) { 265 hlpStr += "30"; 266 } 267 else { 268 hlpStr += "45"; 269 } 270 } 271 ephFileNameGPS += hlpStr + datTim.toString(".yyN"); 246 272 247 273 if (_ephFileNameGPS == ephFileNameGPS) { … … 274 300 else if (_rinexVers == 2) { 275 301 QString ephFileNameGlonass = _ephPath + "GLO_" + 276 QString("%1").arg(dat e.dayOfYear(), 3, 10, QChar('0')) +277 date.toString("0.yyN");302 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) + 303 hlpStr + datTim.toString(".yyN"); 278 304 279 305 delete _ephStreamGlonass; -
trunk/BNC/bncwindow.cpp
r562 r563 179 179 _ephIntrComboBox->setMaximumWidth(9*ww); 180 180 _ephIntrComboBox->setEditable(false); 181 _ephIntrComboBox->addItems(QString("15 min, 30 min,1 hour,1 day").split(","));181 _ephIntrComboBox->addItems(QString("15 min,1 hour,1 day").split(",")); 182 182 int jj = _ephIntrComboBox->findText(settings.value("ephIntr").toString()); 183 183 if (jj != -1) {
Note:
See TracChangeset
for help on using the changeset viewer.