Ignore:
Timestamp:
Apr 12, 2013, 4:01:55 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/inpedit/tabwidget.cpp

    r5090 r5097  
    1616 * -----------------------------------------------------------------------*/
    1717
     18#include <iostream>
    1819#include "tabwidget.h"
    1920#include "keyword.h"
     
    4950void t_tabWidget::readFile() {
    5051
     52  _staticLines.clear();
     53
    5154  QFile file(_fileName);
    5255  file.open(QIODevice::ReadOnly | QIODevice::Text);
     
    6164    // -----------------------------
    6265    if      (line.isEmpty() || line[0] == '!') {
     66      _staticLines << line;
    6367      continue;
    6468    }
     
    6771    // -----------
    6872    else if (line[0] == '#' && line.indexOf("BEGIN_PANEL") != -1) {
    69       t_panel* panel = new t_panel(line, inStream, &_keywords);
     73      t_panel* panel = new t_panel(line, inStream, &_keywords, _staticLines);
    7074      if (panel->ok()) {
    7175        ++iPanel;
     
    8084    // -------------
    8185    else {
    82       t_keyword* keyword = new t_keyword(line, inStream);
     86      t_keyword* keyword = new t_keyword(line, inStream, _staticLines);
    8387      if (keyword->ok()) {
    8488        _keywords[keyword->name()] = keyword;
     
    8993    }
    9094  }
     95
     96  //// beg test
     97  for (int ii = 0; ii < _staticLines.size(); ii++) {
     98    cout << _staticLines[ii].toAscii().data() << endl;
     99  }
     100  //// end test
    91101}
Note: See TracChangeset for help on using the changeset viewer.