Index: /trunk/GnssCenter/inpedit/inpedit.pro
===================================================================
--- /trunk/GnssCenter/inpedit/inpedit.pro	(revision 5086)
+++ /trunk/GnssCenter/inpedit/inpedit.pro	(revision 5087)
@@ -11,7 +11,9 @@
 release:MOC_DIR     = .moc/release
 
-HEADERS = keyword.h   panel.h      inpedit.h   \
-          selwin.h    lineedit.h   uniline.h
+HEADERS = keyword.h     panel.h      inpedit.h   \
+          selwin.h      lineedit.h   uniline.h   \
+          tabwidget.h
 
-SOURCES = keyword.cpp panel.cpp    inpedit.cpp \
-          selwin.cpp  lineedit.cpp uniline.cpp
+SOURCES = keyword.cpp   panel.cpp    inpedit.cpp \
+          selwin.cpp    lineedit.cpp uniline.cpp \
+          tabwidget.cpp
Index: /trunk/GnssCenter/inpedit/tabwidget.cpp
===================================================================
--- /trunk/GnssCenter/inpedit/tabwidget.cpp	(revision 5087)
+++ /trunk/GnssCenter/inpedit/tabwidget.cpp	(revision 5087)
@@ -0,0 +1,100 @@
+
+/* -------------------------------------------------------------------------
+ * RTNet GUI
+ * -------------------------------------------------------------------------
+ *
+ * Class:      t_tabWidget
+ *
+ * Purpose:    RTNet Input File
+ *
+ * Author:     L. Mervart
+ *
+ * Created:    05-Jan-2013
+ *
+ * Changes:    
+ *
+ * -----------------------------------------------------------------------*/
+
+#include "tabwidget.h" 
+#include "keyword.h" 
+#include "panel.h" 
+
+using namespace std;
+using namespace GnssCenter;
+
+// Constructor
+////////////////////////////////////////////////////////////////////////////
+t_tabWidget::t_tabWidget() : QTabWidget() {
+}
+
+// Destructor
+////////////////////////////////////////////////////////////////////////////
+t_tabWidget::~t_tabWidget() {
+  QMapIterator<QString, t_keyword*> it(_keywords); 
+  while (it.hasNext()) {
+    it.next();
+    delete it.value();
+  }
+}
+
+// 
+////////////////////////////////////////////////////////////////////////////
+void t_tabWidget::setVisible(bool visible) {
+  if (visible) {
+    setInputFile("RTNET.INP");
+  }
+  QTabWidget::setVisible(visible);
+}
+
+// 
+////////////////////////////////////////////////////////////////////////////
+void t_tabWidget::setInputFile(const QString& fileName) {
+  _fileName = fileName;
+  readFile();
+}
+
+// 
+////////////////////////////////////////////////////////////////////////////
+void t_tabWidget::readFile() {
+
+  QFile file(_fileName);
+  file.open(QIODevice::ReadOnly | QIODevice::Text);
+  QTextStream inStream(&file);
+
+  int iPanel = 0;
+
+  while (inStream.status() == QTextStream::Ok && !inStream.atEnd()) {
+    QString line = inStream.readLine().trimmed();
+
+    // Skip Comments and empty Lines
+    // -----------------------------
+    if      (line.isEmpty() || line[0] == '!') {
+      continue;
+    }
+
+    // Read Panels
+    // -----------
+    else if (line[0] == '#' && line.indexOf("BEGIN_PANEL") != -1) {
+      t_panel* panel = new t_panel(line, inStream, &_keywords);
+      if (panel->ok()) {
+        ++iPanel;
+        addTab(panel, QString("Panel %1").arg(iPanel));
+      }
+      else {
+        delete panel;
+      }
+    }
+
+    // Read Keywords
+    // -------------
+    else {
+      t_keyword* keyword = new t_keyword(line, inStream);
+      if (keyword->ok()) {
+        _keywords[keyword->name()] = keyword;
+      }
+      else {
+        delete keyword;
+      }
+    }
+  }
+}
Index: /trunk/GnssCenter/inpedit/tabwidget.h
===================================================================
--- /trunk/GnssCenter/inpedit/tabwidget.h	(revision 5087)
+++ /trunk/GnssCenter/inpedit/tabwidget.h	(revision 5087)
@@ -0,0 +1,26 @@
+#ifndef GnssCenter_TABWIDGET_H
+#define GnssCenter_TABWIDGET_H
+
+#include <QtGui>
+
+namespace GnssCenter {
+
+class t_keyword;
+class t_panel;
+
+class t_tabWidget : public QTabWidget {
+ public:
+  t_tabWidget();
+  ~t_tabWidget();
+  void setInputFile(const QString&);
+  virtual void setVisible(bool visible);
+ private:
+  void readFile();
+  QString                   _fileName;
+  QMap<QString, t_keyword*> _keywords;
+};
+
+} // namespace GnssCenter
+
+#endif
+
