- Timestamp:
- Mar 30, 2011, 12:37:39 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r3164 r3193 473 473 // Upload Results 474 474 // ------------- 475 _uploadTable = new QTableWidget(0, 7);476 _uploadTable->setHorizontalHeaderLabels(QString("Host, Port, Mount, Password, System, CoM, File").split(","));475 _uploadTable = new QTableWidget(0,9); 476 _uploadTable->setHorizontalHeaderLabels(QString("Host, Port, Mount, Password, System, CoM, SP3 File, RNX File, bytes").split(",")); 477 477 _uploadTable->setSelectionMode(QAbstractItemView::ExtendedSelection); 478 478 _uploadTable->setSelectionBehavior(QAbstractItemView::SelectRows); 479 _uploadTable->setMaximumWidth(70*ww);480 479 _uploadTable->horizontalHeader()->resizeSection(0,13*ww); 481 480 _uploadTable->horizontalHeader()->resizeSection(1,5*ww); … … 484 483 _uploadTable->horizontalHeader()->resizeSection(4,11*ww); 485 484 _uploadTable->horizontalHeader()->resizeSection(5,4*ww); 486 _uploadTable->horizontalHeader()->resizeSection(6,20*ww); 485 _uploadTable->horizontalHeader()->resizeSection(6,15*ww); 486 _uploadTable->horizontalHeader()->resizeSection(7,15*ww); 487 _uploadTable->horizontalHeader()->resizeSection(8,10*ww); 487 488 _uploadTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); 488 ///_uploadTable->horizontalHeader()->setStretchLastSection(true);489 _uploadTable->horizontalHeader()->setStretchLastSection(true); 489 490 _uploadTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); 490 491 491 492 QPushButton* addUploadRowButton = new QPushButton("Add Row"); 492 QPushButton* delUploadRowButton = new QPushButton("Delete"); 493 QPushButton* setUploadTrafoButton = new QPushButton("Set"); 494 _uploadMountpointIn = new QLineEdit(settings.value("uploadMountpointIn").toString()); 493 QPushButton* delUploadRowButton = new QPushButton("Del Row"); 494 QPushButton* setUploadTrafoButton = new QPushButton("Custom Trafo"); 495 495 496 496 connect(_uploadTable, SIGNAL(itemSelectionChanged()), … … 956 956 // Upload Layout 957 957 // ------------ 958 QGridLayout* uploadLayout = new QGridLayout; 959 958 959 QGridLayout* uploadHlpLayout = new QGridLayout(); 960 961 uploadHlpLayout->addWidget(new QLabel("Upload RTNet results to NTRIP caster"),0,0); 962 963 uploadHlpLayout->addWidget(addUploadRowButton,0,1); 964 connect(addUploadRowButton, SIGNAL(clicked()), this, SLOT(slotAddUploadRow())); 965 uploadHlpLayout->addWidget(delUploadRowButton,0,2); 966 connect(delUploadRowButton, SIGNAL(clicked()), this, SLOT(slotDelUploadRow())); 967 uploadHlpLayout->addWidget(setUploadTrafoButton,0,3); 968 connect(setUploadTrafoButton, SIGNAL(clicked()), this, SLOT(slotSetUploadTrafo())); 969 970 QBoxLayout* uploadLayout = new QBoxLayout(QBoxLayout::TopToBottom); 960 971 populateUploadTable(); 961 uploadLayout->addWidget(_uploadTable,0,0,6,7); 962 uploadLayout->setColumnStretch(0,1); 963 uploadLayout->setColumnStretch(1,1); 964 uploadLayout->setColumnStretch(2,1); 965 uploadLayout->setColumnStretch(3,1); 966 uploadLayout->setColumnStretch(4,1); 967 uploadLayout->setColumnStretch(5,1); 968 uploadLayout->setColumnStretch(7,1); 969 970 uploadLayout->addWidget(addUploadRowButton,0,8); 971 connect(addUploadRowButton, SIGNAL(clicked()), this, SLOT(slotAddUploadRow())); 972 uploadLayout->addWidget(delUploadRowButton,1,8); 973 connect(delUploadRowButton, SIGNAL(clicked()), this, SLOT(slotDelUploadRow())); 974 975 uploadLayout->addWidget(new QLabel("Mountpoint"),3,8); 976 uploadLayout->addWidget(_uploadMountpointIn,3,9,1,2); 977 978 uploadLayout->addWidget(new QLabel("Custom Trafo"),4,8); 979 uploadLayout->addWidget(setUploadTrafoButton,4,9); 980 connect(setUploadTrafoButton, SIGNAL(clicked()), this, SLOT(slotSetUploadTrafo())); 981 982 uploadLayout->addWidget(new QLabel("Upload RTNet results to NTRIP caster"),5,8,1,5); 972 uploadLayout->addWidget(_uploadTable); 973 uploadLayout->addLayout(uploadHlpLayout); 983 974 984 975 uploadgroup->setLayout(uploadLayout); … … 1409 1400 settings.setValue("uploadMountpointsOut", ""); 1410 1401 } 1411 settings.setValue("uploadMountpointIn", _uploadMountpointIn->text());1412 1402 1413 1403 if (_caster) { -
trunk/BNC/bncwindow.h
r3164 r3193 204 204 205 205 QTableWidget* _uploadTable; 206 QLineEdit* _uploadMountpointIn;207 206 208 207 bncCaster* _caster;
Note:
See TracChangeset
for help on using the changeset viewer.