Index: /trunk/GnssCenter/inpedit/inpedit.cpp
===================================================================
--- /trunk/GnssCenter/inpedit/inpedit.cpp	(revision 5087)
+++ /trunk/GnssCenter/inpedit/inpedit.cpp	(revision 5088)
@@ -27,5 +27,8 @@
 // Constructor
 ////////////////////////////////////////////////////////////////////////////
-t_inpEdit::t_inpEdit() : QTabWidget() {
+t_inpEdit::t_inpEdit() : QMainWindow() {
+  _tabWidget = new t_tabWidget();
+  setCentralWidget(_tabWidget);
+  _tabWidget->setVisible(true);
 }
 
@@ -33,70 +36,3 @@
 ////////////////////////////////////////////////////////////////////////////
 t_inpEdit::~t_inpEdit() {
-  QMapIterator<QString, t_keyword*> it(_keywords); 
-  while (it.hasNext()) {
-    it.next();
-    delete it.value();
-  }
 }
-
-// 
-////////////////////////////////////////////////////////////////////////////
-void t_inpEdit::setVisible(bool visible) {
-  if (visible) {
-    setInputFile("RTNET.INP");
-  }
-  QTabWidget::setVisible(visible);
-}
-
-// 
-////////////////////////////////////////////////////////////////////////////
-void t_inpEdit::setInputFile(const QString& fileName) {
-  _fileName = fileName;
-  readFile();
-}
-
-// 
-////////////////////////////////////////////////////////////////////////////
-void t_inpEdit::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/inpedit.h
===================================================================
--- /trunk/GnssCenter/inpedit/inpedit.h	(revision 5087)
+++ /trunk/GnssCenter/inpedit/inpedit.h	(revision 5088)
@@ -4,4 +4,5 @@
 #include <QtGui>
 #include "plugininterface.h"
+#include "tabwidget.h"
 
 namespace GnssCenter {
@@ -10,14 +11,10 @@
 class t_panel;
 
-class t_inpEdit : public QTabWidget {
+class t_inpEdit : public QMainWindow {
  public:
   t_inpEdit();
   ~t_inpEdit();
-  void setInputFile(const QString&);
-  virtual void setVisible(bool visible);
  private:
-  void readFile();
-  QString                   _fileName;
-  QMap<QString, t_keyword*> _keywords;
+  t_tabWidget* _tabWidget;
 };
 
