Changeset 6537 in ntrip


Ignore:
Timestamp:
Jan 2, 2015, 3:40:09 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncmap_svg.cpp

    r4725 r6537  
    141141  QwtText text(name.left(4));
    142142  QFont   font = text.font();
    143   font.setPointSize(font.pointSize()*0.8);
     143  font.setPointSize(int(font.pointSize()*0.8));
    144144  text.setFont(font);
    145145  marker->setLabel(text);
  • trunk/BNC/src/bncutils.cpp

    r6168 r6537  
    589589////////////////////////////////////////////////////////////////////////////
    590590QString fortranFormat(double value, int width, int prec) {
    591   int    expo = value == 0.0 ? 0 : log10(fabs(value));
     591  int    expo = value == 0.0 ? 0 : int(log10(fabs(value)));
    592592  double mant = value == 0.0 ? 0 : value / pow(10, expo);
    593593  if (fabs(mant) >= 1.0) {
  • trunk/BNC/src/ephemeris.cpp

    r6536 r6537  
    14531453
    14541454  TOEw += 1356;  // BDT -> GPS week number
    1455   _TOE_bdt.set(TOEw, TOEs);
     1455  _TOE_bdt.set(int(TOEw), TOEs);
    14561456
    14571457  // GPS->BDT
     
    16481648  out << QString(fmt)
    16491649    .arg(_TOE_bdt.gpssec(), 19, 'e', 12)
    1650     .arg(double(_AODC),     19, QChar(' '));
     1650    .arg(double(_AODC),     19, 'e', 12);
    16511651
    16521652  return rnxStr;
  • trunk/BNC/src/pppRun.cpp

    r6510 r6537  
    375375    if (_speed < 100) {
    376376      double sleepTime = 2.0 / _speed;
    377       t_pppThread::msleep(sleepTime*1.e3);
     377      t_pppThread::msleep(int(sleepTime*1.e3));
    378378    }
    379379
  • trunk/BNC/src/rinex/availplot.cpp

    r6272 r6537  
    6363 public:
    6464  t_scaleDrawPrn() {}
    65   virtual QwtText label(double iPrn) const {
     65  virtual QwtText label(int iPrn) const {
    6666    return _yLabels[iPrn];
    6767  }
  • trunk/BNC/src/rinex/dopplot.cpp

    r6279 r6537  
    7777  QwtText textPDOP("PDOP");
    7878  QFont   fontPDOP = textPDOP.font();
    79   fontPDOP.setPointSize(fontPDOP.pointSize()*0.8);
     79  fontPDOP.setPointSize(int(fontPDOP.pointSize()*0.8));
    8080  textPDOP.setFont(fontPDOP);
    8181  textPDOP.setColor(Qt::red);
     
    8585  QwtText textNumSat("# Sat");
    8686  QFont   fontNumSat = textNumSat.font();
    87   fontNumSat.setPointSize(fontNumSat.pointSize()*0.8);
     87  fontNumSat.setPointSize(int(fontNumSat.pointSize()*0.8));
    8888  textNumSat.setFont(fontNumSat);
    8989  textNumSat.setColor(Qt::blue);
  • trunk/BNC/src/rinex/eleplot.cpp

    r6272 r6537  
    9696        const QVector<double>& xData = plotData._mjdX24;
    9797        const QVector<double>& yData = plotData._eleDeg;
    98         QColor color = QColor::fromHsv((iC-1)*(359.0/numCurves), 255, 255);
     98        QColor color = QColor::fromHsv(int((iC-1)*(359.0/numCurves)), 255, 255);
    9999        QwtSymbol symbol(QwtSymbol::Rect, QBrush(color), QPen(color), QSize(1,1));
    100100        addCurve(prn, symbol, xData, yData);
  • trunk/BNC/src/rinex/reqcedit.cpp

    r6402 r6537  
    254254    }
    255255    if (ii == 0) {
    256       outObsFile.setHeader(obsFile->header(), _rnxVersion, &useObsTypes);
     256      outObsFile.setHeader(obsFile->header(), int(_rnxVersion), &useObsTypes);
    257257      if (_begTime.valid() && _begTime > outObsFile.startTime()) {
    258258        outObsFile.setStartTime(_begTime);
Note: See TracChangeset for help on using the changeset viewer.