Changeset 9025 in ntrip for trunk/BNC/src/bncwindow.cpp
- Timestamp:
- Aug 25, 2020, 11:02:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r8936 r9025 515 515 // Upload Results 516 516 // ------------- 517 _uploadTable = new QTableWidget(0,1 4);518 _uploadTable->setHorizontalHeaderLabels(QString("Host, Port, Mount, Ntrip, User, Password, System, CoM, SP3 File, RNX File, PID, SID, IOD, bytes").split(","));517 _uploadTable = new QTableWidget(0,15); 518 _uploadTable->setHorizontalHeaderLabels(QString("Host, Port, Mount, Ntrip, User, Password, System, Format, CoM, SP3 File, RNX File, PID, SID, IOD, bytes").split(",")); 519 519 _uploadTable->setSelectionMode(QAbstractItemView::ExtendedSelection); 520 520 _uploadTable->setSelectionBehavior(QAbstractItemView::SelectRows); … … 526 526 _uploadTable->horizontalHeader()->resizeSection( 5, 8*ww); 527 527 _uploadTable->horizontalHeader()->resizeSection( 6,11*ww); 528 _uploadTable->horizontalHeader()->resizeSection( 7, 4*ww);529 _uploadTable->horizontalHeader()->resizeSection( 8, 15*ww);528 _uploadTable->horizontalHeader()->resizeSection( 7,11*ww); 529 _uploadTable->horizontalHeader()->resizeSection( 8, 4*ww); 530 530 _uploadTable->horizontalHeader()->resizeSection( 9,15*ww); 531 _uploadTable->horizontalHeader()->resizeSection(10, 4*ww);531 _uploadTable->horizontalHeader()->resizeSection(10,15*ww); 532 532 _uploadTable->horizontalHeader()->resizeSection(11, 4*ww); 533 533 _uploadTable->horizontalHeader()->resizeSection(12, 4*ww); 534 _uploadTable->horizontalHeader()->resizeSection(13,12*ww); 534 _uploadTable->horizontalHeader()->resizeSection(13, 4*ww); 535 _uploadTable->horizontalHeader()->resizeSection(14,12*ww); 535 536 #if QT_VERSION < 0x050000 536 537 _uploadTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); … … 1878 1879 for (int iCol = 0; iCol < _uploadTable->columnCount(); iCol++) { 1879 1880 if (_uploadTable->cellWidget(iRow, iCol) && 1880 (iCol == 3 || iCol == 4 || iCol == 5 || iCol == 6 || iCol == 7 )) {1881 (iCol == 3 || iCol == 4 || iCol == 5 || iCol == 6 || iCol == 7 || iCol == 8)) { 1881 1882 if (iCol == 3) { 1882 1883 QComboBox* ntripversion = (QComboBox*)(_uploadTable->cellWidget(iRow, iCol)); … … 1896 1897 } 1897 1898 else if (iCol == 7) { 1899 QComboBox* system = (QComboBox*)(_uploadTable->cellWidget(iRow, iCol)); 1900 hlp += system->currentText() + ","; 1901 } 1902 else if (iCol == 8) { 1898 1903 QCheckBox* com = (QCheckBox*)(_uploadTable->cellWidget(iRow, iCol)); 1899 1904 QString state; state.setNum(com->checkState()); … … 2709 2714 } 2710 2715 else if (iCol == 7) { 2716 QComboBox* format = new QComboBox(); 2717 format->setEditable(false); 2718 format->addItems(QString("IGS-SSR,RTCM-SSR").split(",")); 2719 format->setFrame(false); 2720 _uploadTable->setCellWidget(iRow, iCol, format); 2721 } 2722 else if (iCol == 8) { 2711 2723 QCheckBox* com = new QCheckBox(); 2712 2724 _uploadTable->setCellWidget(iRow, iCol, com); 2713 2725 } 2714 else if (iCol == 1 3) {2726 else if (iCol == 14) { 2715 2727 bncTableItem* bncIt = new bncTableItem(); 2716 2728 bncIt->setFlags(bncIt->flags() & ~Qt::ItemIsEditable); … … 2745 2757 for (int iRow = 0; iRow < _uploadTable->rowCount(); iRow++) { 2746 2758 BNC_CORE->_uploadTableItems[iRow] = 2747 (bncTableItem*) _uploadTable->item(iRow, 1 3);2759 (bncTableItem*) _uploadTable->item(iRow, 14); 2748 2760 } 2749 2761 nRows = _uploadTable->rowCount(); … … 2806 2818 } 2807 2819 else if (iCol == 7) { 2820 QComboBox* format = new QComboBox(); 2821 format->setEditable(false); 2822 format->addItems(QString("IGS-SSR,RTCM-SSR").split(",")); 2823 format->setFrame(false); 2824 format->setCurrentIndex(format->findText(hlp[iCol])); 2825 _uploadTable->setCellWidget(iRow, iCol, format); 2826 } 2827 else if (iCol == 8) { 2808 2828 QCheckBox* com = new QCheckBox(); 2809 2829 if (hlp[iCol].toInt() == Qt::Checked) { … … 2812 2832 _uploadTable->setCellWidget(iRow, iCol, com); 2813 2833 } 2814 else if (iCol == 1 3) {2834 else if (iCol == 14) { 2815 2835 bncTableItem* bncIt = new bncTableItem(); 2816 2836 bncIt->setFlags(bncIt->flags() & ~Qt::ItemIsEditable);
Note:
See TracChangeset
for help on using the changeset viewer.