Changeset 9036 in ntrip for branches/BNC_2.12/src/bncwindow.cpp
- Timestamp:
- Aug 27, 2020, 9:36:18 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncwindow.cpp
r8663 r9036 486 486 // Upload Results 487 487 // ------------- 488 _uploadTable = new QTableWidget(0,1 2);489 _uploadTable->setHorizontalHeaderLabels(QString("Host, Port, Mount, Password, System, CoM, SP3 File, RNX File, PID, SID, IOD, bytes").split(","));488 _uploadTable = new QTableWidget(0,13); 489 _uploadTable->setHorizontalHeaderLabels(QString("Host, Port, Mount, Password, System, Format, CoM, SP3 File, RNX File, PID, SID, IOD, bytes").split(",")); 490 490 _uploadTable->setSelectionMode(QAbstractItemView::ExtendedSelection); 491 491 _uploadTable->setSelectionBehavior(QAbstractItemView::SelectRows); … … 495 495 _uploadTable->horizontalHeader()->resizeSection( 3, 8*ww); 496 496 _uploadTable->horizontalHeader()->resizeSection( 4,11*ww); 497 _uploadTable->horizontalHeader()->resizeSection( 5, 4*ww);498 _uploadTable->horizontalHeader()->resizeSection( 6, 15*ww);497 _uploadTable->horizontalHeader()->resizeSection( 5,11*ww); 498 _uploadTable->horizontalHeader()->resizeSection( 6, 4*ww); 499 499 _uploadTable->horizontalHeader()->resizeSection( 7,15*ww); 500 _uploadTable->horizontalHeader()->resizeSection( 8, 4*ww);500 _uploadTable->horizontalHeader()->resizeSection( 8,15*ww); 501 501 _uploadTable->horizontalHeader()->resizeSection( 9, 4*ww); 502 502 _uploadTable->horizontalHeader()->resizeSection(10, 4*ww); 503 _uploadTable->horizontalHeader()->resizeSection(11,12*ww); 503 _uploadTable->horizontalHeader()->resizeSection(11, 4*ww); 504 _uploadTable->horizontalHeader()->resizeSection(12,12*ww); 504 505 _uploadTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); 505 506 _uploadTable->horizontalHeader()->setStretchLastSection(true); … … 1820 1821 for (int iCol = 0; iCol < _uploadTable->columnCount(); iCol++) { 1821 1822 if (_uploadTable->cellWidget(iRow, iCol) && 1822 (iCol == 3 || iCol == 4 || iCol == 5 )) {1823 (iCol == 3 || iCol == 4 || iCol == 5 || iCol == 6)) { 1823 1824 if (iCol == 3) { 1824 1825 QLineEdit* passwd = (QLineEdit*)(_uploadTable->cellWidget(iRow, iCol)); … … 1830 1831 } 1831 1832 else if (iCol == 5) { 1833 QComboBox* format = (QComboBox*)(_uploadTable->cellWidget(iRow, iCol)); 1834 hlp += format->currentText() + ","; 1835 } 1836 else if (iCol == 6) { 1832 1837 QCheckBox* com = (QCheckBox*)(_uploadTable->cellWidget(iRow, iCol)); 1833 1838 QString state; state.setNum(com->checkState()); … … 2599 2604 } 2600 2605 else if (iCol == 5) { 2606 QComboBox* format = new QComboBox(); 2607 format->setEditable(false); 2608 format->addItems(QString("IGS-SSR,RTCM-SSR").split(",")); 2609 format->setFrame(false); 2610 _uploadTable->setCellWidget(iRow, iCol, format); 2611 } 2612 else if (iCol == 6) { 2601 2613 QCheckBox* com = new QCheckBox(); 2602 2614 _uploadTable->setCellWidget(iRow, iCol, com); 2603 2615 } 2604 else if (iCol == 1 1) {2616 else if (iCol == 12) { 2605 2617 bncTableItem* bncIt = new bncTableItem(); 2606 2618 bncIt->setFlags(bncIt->flags() & ~Qt::ItemIsEditable); … … 2635 2647 for (int iRow = 0; iRow < _uploadTable->rowCount(); iRow++) { 2636 2648 BNC_CORE->_uploadTableItems[iRow] = 2637 (bncTableItem*) _uploadTable->item(iRow, 1 1);2649 (bncTableItem*) _uploadTable->item(iRow, 12); 2638 2650 } 2639 2651 nRows = _uploadTable->rowCount(); … … 2681 2693 } 2682 2694 else if (iCol == 5) { 2695 QComboBox* format = new QComboBox(); 2696 format->setEditable(false); 2697 format->addItems(QString("IGS-SSR,RTCM-SSR").split(",")); 2698 format->setFrame(false); 2699 format->setCurrentIndex(format->findText(hlp[iCol])); 2700 _uploadTable->setCellWidget(iRow, iCol, format); 2701 } 2702 else if (iCol == 6) { 2683 2703 QCheckBox* com = new QCheckBox(); 2684 2704 if (hlp[iCol].toInt() == Qt::Checked) { … … 2687 2707 _uploadTable->setCellWidget(iRow, iCol, com); 2688 2708 } 2689 else if (iCol == 1 1) {2709 else if (iCol == 12) { 2690 2710 bncTableItem* bncIt = new bncTableItem(); 2691 2711 bncIt->setFlags(bncIt->flags() & ~Qt::ItemIsEditable);
Note:
See TracChangeset
for help on using the changeset viewer.