Changeset 5097 in ntrip for trunk/GnssCenter/inpedit/panel.cpp


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/panel.cpp

    r5000 r5097  
    2626////////////////////////////////////////////////////////////////////////////
    2727t_panel::t_panel(const QString& line, QTextStream& inStream,
    28           QMap<QString, t_keyword*>* keywords) : QScrollArea(0) {
     28                 QMap<QString, t_keyword*>* keywords,
     29                 QStringList& staticLines) : QScrollArea(0) {
    2930
    3031  _keywords = keywords;
     
    4445  this->setWidget(_page);
    4546
    46   read(line, inStream);
     47  read(line, inStream, staticLines);
    4748
    4849  setWidgetResizable(true);
     
    5657// Read Panel
    5758////////////////////////////////////////////////////////////////////////////
    58 void t_panel::read(QString line, QTextStream& inStream) {
     59void t_panel::read(QString line, QTextStream& inStream, QStringList& staticLines) {
     60  staticLines << line;
    5961  int iRow = -1;
    6062  while (inStream.status() == QTextStream::Ok && !inStream.atEnd()) {
    6163    line = inStream.readLine().trimmed();
     64    staticLines << line;
    6265    if  (line.isEmpty() || line.indexOf("END_PANEL") != -1) {
    6366      break;
Note: See TracChangeset for help on using the changeset viewer.