Changeset 3159 in ntrip for trunk/BNC


Ignore:
Timestamp:
Mar 27, 2011, 7:01:22 PM (14 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3158 r3159  
    22642264  QListIterator<QString> it(settings.value("rtnetUploadMountpoints").toStringList());
    22652265  while (it.hasNext()) {
    2266     QStringList hlp = it.next().split(" ");
    2267     if (hlp.size() > 2) {
     2266    QStringList hlp = it.next().split(",");
     2267    if (hlp.size() > 6) {
    22682268      ++iRow;
    22692269      _rtnetTable->insertRow(iRow);
    22702270    }
    22712271    for (int iCol = 0; iCol < hlp.size(); iCol++) {
    2272       _rtnetTable->setItem(iRow, iCol, new QTableWidgetItem(hlp[iCol]));
     2272      if      (iCol == 3) {
     2273        QLineEdit* passwd = new QLineEdit();
     2274        passwd->setFrame(false);
     2275        passwd->setEchoMode(QLineEdit::PasswordEchoOnEdit);
     2276        passwd->setText(hlp[iCol]);
     2277        _rtnetTable->setCellWidget(iRow, iCol, passwd);
     2278      }
     2279      else if (iCol == 4) {
     2280        QComboBox* system = new QComboBox();
     2281        system->setEditable(false);
     2282        system->addItems(QString("IGS05,ETRF2000,NAD83,GDA94,SIRGAS95,SIRGAS2000,Custom").split(","));
     2283        system->setFrame(false);
     2284        system->setCurrentIndex(system->findText(hlp[iCol]));
     2285        _rtnetTable->setCellWidget(iRow, iCol, system);
     2286      }
     2287      else if (iCol == 5) {
     2288        QCheckBox* com = new QCheckBox();
     2289        if (hlp[iCol].toInt() == Qt::Checked) {
     2290          com->setCheckState(Qt::Checked);
     2291        }
     2292        _rtnetTable->setCellWidget(iRow, iCol, com);
     2293      }
     2294      else {
     2295        _rtnetTable->setItem(iRow, iCol, new QTableWidgetItem(hlp[iCol]));
     2296      }
    22732297    }
    22742298  }
Note: See TracChangeset for help on using the changeset viewer.