Changeset 3193 in ntrip for trunk


Ignore:
Timestamp:
Mar 30, 2011, 12:37:39 PM (14 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3164 r3193  
    473473  // Upload Results
    474474  // -------------
    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(","));
    477477  _uploadTable->setSelectionMode(QAbstractItemView::ExtendedSelection);
    478478  _uploadTable->setSelectionBehavior(QAbstractItemView::SelectRows);
    479   _uploadTable->setMaximumWidth(70*ww);
    480479  _uploadTable->horizontalHeader()->resizeSection(0,13*ww);
    481480  _uploadTable->horizontalHeader()->resizeSection(1,5*ww);
     
    484483  _uploadTable->horizontalHeader()->resizeSection(4,11*ww);
    485484  _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);
    487488  _uploadTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
    488   ///  _uploadTable->horizontalHeader()->setStretchLastSection(true);
     489  _uploadTable->horizontalHeader()->setStretchLastSection(true);
    489490  _uploadTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
    490491
    491492  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");
    495495
    496496  connect(_uploadTable, SIGNAL(itemSelectionChanged()),
     
    956956  // Upload Layout
    957957  // ------------
    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);
    960971  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);
    983974
    984975  uploadgroup->setLayout(uploadLayout);
     
    14091400    settings.setValue("uploadMountpointsOut", "");
    14101401  }
    1411   settings.setValue("uploadMountpointIn", _uploadMountpointIn->text());
    14121402
    14131403  if (_caster) {
  • trunk/BNC/bncwindow.h

    r3164 r3193  
    204204
    205205    QTableWidget* _uploadTable;
    206     QLineEdit*    _uploadMountpointIn;
    207206
    208207    bncCaster* _caster;
Note: See TracChangeset for help on using the changeset viewer.