Changeset 5893 in ntrip


Ignore:
Timestamp:
Aug 8, 2014, 5:23:21 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppWidgets.cpp

    r5810 r5893  
    7070  _addStaButton = new QPushButton("Add Station");                                        _widgets << _addStaButton;
    7171  _delStaButton = new QPushButton("Delete Station");                                     _widgets << _delStaButton;
    72  
     72  _plotCoordinates        = new QLineEdit;    _plotCoordinates       ->setObjectName("PPP/plotCoordinates");        _widgets << _plotCoordinates;
     73  _mapWinButton           = new QPushButton;  _mapWinButton          ->setObjectName("PPP/mapWinButton");           _widgets << _mapWinButton;
     74  _gmRadioButton          = new QRadioButton; _gmRadioButton         ->setObjectName("PPP/gmRadioButton");          _widgets << _gmRadioButton;
     75  _osmRadioButton         = new QRadioButton; _osmRadioButton        ->setObjectName("PPP/osmRadioButton");         _widgets << _osmRadioButton;
     76  _mapWinDotSizeLineEdit  = new QLineEdit;    _mapWinDotSizeLineEdit ->setObjectName("PPP/mapWinDotSizeLineEdit");  _widgets << _mapWinDotSizeLineEdit;
     77  _mapWinDotColorComboBox = new QComboBox;    _mapWinDotColorComboBox->setObjectName("PPP/mapWinDotColorComboBox"); _widgets << _mapWinDotColorComboBox;
     78  _mapSpeedSlider         = new QSlider;      _mapSpeedSlider        ->setObjectName("PPP/mapSpeedSlider");         _widgets << _mapSpeedSlider;
     79
    7380  _dataSource->setEditable(false);
    7481  _dataSource->addItems(QString("no,Real-Time Streams,RINEX Files").split(","));
     
    103110  connect(_delStaButton, SIGNAL(clicked()), this, SLOT(slotDelStation()));
    104111
     112  _mapWinButton->setText("Open Map");
     113
     114  _mapWinDotColorComboBox->setEditable(false);
     115  _mapWinDotColorComboBox->addItems(QString("red,yellow").split(","));
     116
     117  _mapSpeedSlider->setOrientation(Qt::Horizontal);
     118  _mapSpeedSlider->setRange(1, 100);
     119  _mapSpeedSlider->setTickPosition(QSlider::TicksBelow);
     120  _mapSpeedSlider->setTickInterval(10);
     121 
    105122  readOptions();
    106123}
     
    167184    }
    168185  }
     186
     187  // Plots and Maps
     188  // --------------
     189  _plotCoordinates      ->setText(settings.value(_plotCoordinates->objectName()).toString());
     190  _gmRadioButton        ->setChecked(!settings.value(_gmRadioButton->objectName()).toBool());
     191  _osmRadioButton       ->setChecked(settings.value(_osmRadioButton->objectName()).toBool());
     192  _mapWinDotSizeLineEdit->setText(settings.value(_mapWinDotSizeLineEdit->objectName()).toString());
     193
     194  ii = _mapWinDotColorComboBox->findText(settings.value(_mapWinDotColorComboBox->objectName()).toString());
     195  if (ii != -1) {
     196    _mapWinDotColorComboBox->setCurrentIndex(ii);
     197  }
     198
     199  int speed = settings.value(_mapSpeedSlider->objectName()).toInt();
     200  if (speed == 0) speed = _mapSpeedSlider->maximum();
     201  _mapSpeedSlider->setSliderPosition(speed);
    169202}
    170203
  • trunk/BNC/src/PPP/pppWidgets.h

    r5809 r5893  
    5757  QPushButton*   _delStaButton;
    5858
     59  QLineEdit*     _plotCoordinates;
     60  QPushButton*   _mapWinButton;
     61  QRadioButton*  _gmRadioButton;
     62  QRadioButton*  _osmRadioButton;
     63  QLineEdit*     _mapWinDotSizeLineEdit;
     64  QComboBox*     _mapWinDotColorComboBox;
     65  QSlider*       _mapSpeedSlider;
     66
    5967 private slots:
    6068  void slotEnableWidgets(); 
  • trunk/BNC/src/bncwindow.cpp

    r5887 r5893  
    880880  // ------------------------
    881881  QVBoxLayout* pppLayout4 = new QVBoxLayout;
    882   pppLayout4->addWidget(new QLabel("Precise Point Positioning, Panel 3."));
     882  pppLayout4->addWidget(new QLabel("<b>Precise Point Positioning (Plots)</b>"));
    883883  pppLayout4->addSpacing(ww);
    884884
  • trunk/BNC/src/bncwindow.h

    r5863 r5893  
    132132    QLineEdit* _proxyHostLineEdit;
    133133    QLineEdit* _proxyPortLineEdit;
    134     QLineEdit* _mapWinDotSizeLineEdit;
    135134    QLineEdit* _sslCaCertPathLineEdit;
    136135    QCheckBox* _ignoreSslErrorsCheckBox;
     
    230229    bool _runningPostProcessingReqc;
    231230
    232     QPushButton*         _mapWinButton;
    233     QRadioButton*        _gmRadioButton;
    234     QCheckBox*           _pppPlotCoordinates;
    235     QRadioButton*        _osmRadioButton;
    236     QComboBox*           _mapWinDotColorComboBox;
    237     QSlider*             _mapSpeedSlider;
    238231    bncMapWin*           _mapWin;
    239232
Note: See TracChangeset for help on using the changeset viewer.