Changeset 5097 in ntrip for trunk/GnssCenter/inpedit/tabwidget.cpp
- Timestamp:
- Apr 12, 2013, 4:01:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/inpedit/tabwidget.cpp
r5090 r5097 16 16 * -----------------------------------------------------------------------*/ 17 17 18 #include <iostream> 18 19 #include "tabwidget.h" 19 20 #include "keyword.h" … … 49 50 void t_tabWidget::readFile() { 50 51 52 _staticLines.clear(); 53 51 54 QFile file(_fileName); 52 55 file.open(QIODevice::ReadOnly | QIODevice::Text); … … 61 64 // ----------------------------- 62 65 if (line.isEmpty() || line[0] == '!') { 66 _staticLines << line; 63 67 continue; 64 68 } … … 67 71 // ----------- 68 72 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); 70 74 if (panel->ok()) { 71 75 ++iPanel; … … 80 84 // ------------- 81 85 else { 82 t_keyword* keyword = new t_keyword(line, inStream );86 t_keyword* keyword = new t_keyword(line, inStream, _staticLines); 83 87 if (keyword->ok()) { 84 88 _keywords[keyword->name()] = keyword; … … 89 93 } 90 94 } 95 96 //// beg test 97 for (int ii = 0; ii < _staticLines.size(); ii++) { 98 cout << _staticLines[ii].toAscii().data() << endl; 99 } 100 //// end test 91 101 }
Note:
See TracChangeset
for help on using the changeset viewer.