Changeset 5893 in ntrip for trunk/BNC/src/PPP


Ignore:
Timestamp:
Aug 8, 2014, 5:23:21 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
2 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(); 
Note: See TracChangeset for help on using the changeset viewer.