Changeset 4111 in ntrip


Ignore:
Timestamp:
May 4, 2012, 5:43:29 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r4106 r4111  
    526526  // Upload Results
    527527  // -------------
    528   _uploadTable = new QTableWidget(0,9);
    529   _uploadTable->setHorizontalHeaderLabels(QString("Host, Port, Mount, Password, System, CoM, SP3 File, RNX File, bytes").split(","));
     528  _uploadTable = new QTableWidget(0,12);
     529  _uploadTable->setHorizontalHeaderLabels(QString("Host, Port, Mount, Password, System, CoM, SP3 File, RNX File, PID, SID, IOD, bytes").split(","));
    530530  _uploadTable->setSelectionMode(QAbstractItemView::ExtendedSelection);
    531531  _uploadTable->setSelectionBehavior(QAbstractItemView::SelectRows);
    532   _uploadTable->horizontalHeader()->resizeSection(0,13*ww);
    533   _uploadTable->horizontalHeader()->resizeSection(1,5*ww);
    534   _uploadTable->horizontalHeader()->resizeSection(2,6*ww);
    535   _uploadTable->horizontalHeader()->resizeSection(3,8*ww);
    536   _uploadTable->horizontalHeader()->resizeSection(4,11*ww);
    537   _uploadTable->horizontalHeader()->resizeSection(5,4*ww);
    538   _uploadTable->horizontalHeader()->resizeSection(6,15*ww);
    539   _uploadTable->horizontalHeader()->resizeSection(7,15*ww);
    540   _uploadTable->horizontalHeader()->resizeSection(8,10*ww);
     532  _uploadTable->horizontalHeader()->resizeSection( 0,13*ww);
     533  _uploadTable->horizontalHeader()->resizeSection( 1, 5*ww);
     534  _uploadTable->horizontalHeader()->resizeSection( 2, 6*ww);
     535  _uploadTable->horizontalHeader()->resizeSection( 3, 8*ww);
     536  _uploadTable->horizontalHeader()->resizeSection( 4,11*ww);
     537  _uploadTable->horizontalHeader()->resizeSection( 5, 4*ww);
     538  _uploadTable->horizontalHeader()->resizeSection( 6,15*ww);
     539  _uploadTable->horizontalHeader()->resizeSection( 7,15*ww);
     540  _uploadTable->horizontalHeader()->resizeSection( 8, 4*ww);
     541  _uploadTable->horizontalHeader()->resizeSection( 9, 4*ww);
     542  _uploadTable->horizontalHeader()->resizeSection(10, 4*ww);
     543  _uploadTable->horizontalHeader()->resizeSection(11,12*ww);
    541544  _uploadTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
    542   _uploadTable->horizontalHeader()->setStretchLastSection(true);
     545  ///  _uploadTable->horizontalHeader()->setStretchLastSection(true);
    543546  _uploadTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
    544547
     
    23922395      _uploadTable->setCellWidget(iRow, iCol, com);
    23932396    }
    2394     else if (iCol == 8) {
     2397    else if (iCol == 11) {
    23952398      bncTableItem* bncIt = new bncTableItem();
    23962399      bncIt->setFlags(bncIt->flags() & ~Qt::ItemIsEditable);
     
    24252428  for (int iRow = 0; iRow < _uploadTable->rowCount(); iRow++) {
    24262429    ((bncApp*)qApp)->_uploadTableItems[iRow] =
    2427                                 (bncTableItem*) _uploadTable->item(iRow, 8);
     2430                                (bncTableItem*) _uploadTable->item(iRow, 11);
    24282431  }
    24292432  nRows = _uploadTable->rowCount();
     
    24752478        _uploadTable->setCellWidget(iRow, iCol, com);
    24762479      }
    2477       else if (iCol == 8) {
     2480      else if (iCol == 11) {
    24782481        bncTableItem* bncIt = new bncTableItem();
    24792482        bncIt->setFlags(bncIt->flags() & ~Qt::ItemIsEditable);
  • trunk/BNC/upload/bncrtnetdecoder.cpp

    r3233 r4111  
    6060      int  outPort = hlp[1].toInt();
    6161      bool CoM     = (hlp[5].toInt() == Qt::Checked);
     62      int PID = 0;
     63      if (hlp.size() > 8) {
     64        PID = hlp[8].toInt();
     65      }
     66      int SID = 0;
     67      if (hlp.size() > 9) {
     68        SID = hlp[9].toInt();
     69      }
     70      int IOD = 0;
     71      if (hlp.size() > 10) {
     72        IOD = hlp[10].toInt();
     73      }
    6274      bncRtnetUploadCaster* newCaster = new bncRtnetUploadCaster(
    6375                                                       hlp[2], hlp[0], outPort,
    6476                                                       hlp[3], hlp[4], CoM,
    65                                                        hlp[6], hlp[7], "", iRow);
     77                                                       hlp[6], hlp[7], "",
     78                                                       PID, SID, IOD, iRow);
    6679      newCaster->start();
    6780      _casters.push_back(newCaster);
  • trunk/BNC/upload/bncrtnetuploadcaster.cpp

    r4110 r4111  
    3232                                 const QString& sp3FileName,
    3333                                 const QString& rnxFileName,
    34                                  const QString& outFileName, int iRow) :
     34                                 const QString& outFileName,
     35                                 int PID, int SID, int IOD, int iRow) :
    3536  bncUploadCaster(mountpoint, outHost, outPort, password, iRow, 0) {
    3637
    3738  _crdTrafo   = crdTrafo;
    3839  _CoM        = CoM;
     40  _PID        = PID;
     41  _SID        = SID;
     42  _IOD        = IOD;
    3943
    4044  // Member that receives the ephemeris
     
    256260  co.OrbitDataSupplied = 1;
    257261  co.SatRefDatum       = DATUM_ITRF;
    258   co.SSRIOD            =   0;
    259   co.SSRProviderID     = 256; // 256 .. BKG,  257 ... EUREF
    260   co.SSRSolutionID     =   1;
     262  co.SSRIOD            = _IOD;
     263  co.SSRProviderID     = _PID; // 256 .. BKG,  257 ... EUREF
     264  co.SSRSolutionID     = _SID;
    261265 
    262266  struct Bias bias;
  • trunk/BNC/upload/bncrtnetuploadcaster.h

    r3753 r4111  
    2424                  const QString& sp3FileName,
    2525                  const QString& rnxFileName,
    26                   const QString& outFileName, int iRow);
     26                  const QString& outFileName,
     27                  int PID, int SID, int IOD, int iRow);
    2728  void decodeRtnetStream(char* buffer, int bufLen);
    2829 protected:
     
    4041  QString        _crdTrafo;
    4142  bool           _CoM;
     43  int            _PID;
     44  int            _SID;
     45  int            _IOD;
    4246  double         _samplOrb;
    4347  double         _dx;
Note: See TracChangeset for help on using the changeset viewer.