Index: trunk/BNC/rinex/rnxobsfile.cpp
===================================================================
--- trunk/BNC/rinex/rnxobsfile.cpp	(revision 3836)
+++ trunk/BNC/rinex/rnxobsfile.cpp	(revision 3837)
@@ -169,4 +169,11 @@
       delete in;
     }
+    else if (key == "TIME OF FIRST OBS") {
+      QTextStream in(value.toAscii(), QIODevice::ReadOnly);
+      int year, month, day, hour, min;
+      double sec;
+      in >> year >> month >> day >> hour >> min >> sec;
+      _startTime.set(year, month, day, hour, min, sec);
+    }
     if (maxLines > 0 && numLines == maxLines) {
       break;
@@ -248,4 +255,16 @@
       ttPrev = rnxEpo->tt;
     }
+    _stream->seek(0);
+    _header.read(_stream);
+  }
+
+  // Time of first observation
+  // -------------------------
+  if (!_header._startTime.valid()) {
+    const t_rnxEpo* rnxEpo = nextEpoch();
+    if (!rnxEpo) {
+      throw QString("t_rnxObsFile: not enough epochs");
+    }
+    _header._startTime = rnxEpo->tt;
     _stream->seek(0);
     _header.read(_stream);
Index: trunk/BNC/rinex/rnxobsfile.h
===================================================================
--- trunk/BNC/rinex/rnxobsfile.h	(revision 3836)
+++ trunk/BNC/rinex/rnxobsfile.h	(revision 3837)
@@ -109,4 +109,5 @@
     int                                   _wlFactorsL1[MAXPRN_GPS+1];
     int                                   _wlFactorsL2[MAXPRN_GPS+1];
+    bncTime                               _startTime;
   };
 
Index: trunk/BNC/rinex/teqcedit.cpp
===================================================================
--- trunk/BNC/rinex/teqcedit.cpp	(revision 3836)
+++ trunk/BNC/rinex/teqcedit.cpp	(revision 3837)
@@ -50,4 +50,6 @@
 
   bncSettings settings;
+
+  _obsFileNames = settings.value("teqcObsFile").toString().split("'", QString::SkipEmptyParts);
 }
 
@@ -63,4 +65,9 @@
   cout << "Teqc Edit Running ..." << endl;
 
+  QStringListIterator it(_obsFileNames);
+  while (it.hasNext()) {
+    t_rnxObsFile* rnxObsFile = new t_rnxObsFile(it.next());
+  }
+
   emit finished();
   deleteLater();
Index: trunk/BNC/rinex/teqcedit.h
===================================================================
--- trunk/BNC/rinex/teqcedit.h	(revision 3836)
+++ trunk/BNC/rinex/teqcedit.h	(revision 3837)
@@ -27,4 +27,5 @@
 
 #include <QtCore>
+#include "rnxobsfile.h"
 
 class t_teqcEdit : public QThread {
@@ -46,4 +47,6 @@
  
  private:
+  QStringList            _obsFileNames;
+  QVector<t_rnxObsFile*> _rnxObsFiles;
 };
 
