Changeset 5955 in ntrip for trunk/BNC/src/PPP/pppWidgets.cpp
- Timestamp:
- Aug 17, 2014, 9:08:26 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppWidgets.cpp
r5950 r5955 71 71 _addStaButton = new QPushButton("Add Station"); _widgets << _addStaButton; 72 72 _delStaButton = new QPushButton("Delete Station"); _widgets << _delStaButton; 73 _plotCoordinates = new QLineEdit; _plotCoordinates ->setObjectName("PPP/plotCoordinates");_widgets << _plotCoordinates;74 _mapWinButton = new QPushButton; _mapWinButton ->setObjectName("PPP/mapWinButton");_widgets << _mapWinButton;75 _ gmRadioButton = new QRadioButton; _gmRadioButton ->setObjectName("PPP/gmRadioButton"); _widgets << _gmRadioButton;76 _ osmRadioButton = new QRadioButton; _osmRadioButton ->setObjectName("PPP/osmRadioButton"); _widgets << _osmRadioButton;77 _mapWinDotSize LineEdit = new QLineEdit; _mapWinDotSizeLineEdit ->setObjectName("PPP/mapWinDotSizeLineEdit"); _widgets << _mapWinDotSizeLineEdit;78 _mapWinDotColor ComboBox = new QComboBox; _mapWinDotColorComboBox->setObjectName("PPP/mapWinDotColorComboBox"); _widgets << _mapWinDotColorComboBox;79 _mapSpeedSlider = new QSlider; _mapSpeedSlider ->setObjectName("PPP/mapSpeedSlider");_widgets << _mapSpeedSlider;73 _plotCoordinates = new QLineEdit; _plotCoordinates ->setObjectName("PPP/plotCoordinates"); _widgets << _plotCoordinates; 74 _mapWinButton = new QPushButton; _mapWinButton ->setObjectName("PPP/mapWinButton"); _widgets << _mapWinButton; 75 _useGoogleMap = new QRadioButton; _useGoogleMap ->setObjectName("PPP/useGoogleMap"); _widgets << _useGoogleMap; 76 _useOpenStreetMap = new QRadioButton; _useOpenStreetMap->setObjectName("PPP/useOpenStreetMap"); _widgets << _useOpenStreetMap; 77 _mapWinDotSize = new QLineEdit; _mapWinDotSize ->setObjectName("PPP/mapWinDotSize"); _widgets << _mapWinDotSize; 78 _mapWinDotColor = new QComboBox; _mapWinDotColor ->setObjectName("PPP/mapWinDotColor"); _widgets << _mapWinDotColor; 79 _mapSpeedSlider = new QSlider; _mapSpeedSlider ->setObjectName("PPP/mapSpeedSlider"); _widgets << _mapSpeedSlider; 80 80 81 81 _dataSource->setEditable(false); … … 113 113 _mapWinButton->setText("Open Map"); 114 114 115 _mapWinDotColor ComboBox->setEditable(false);116 _mapWinDotColor ComboBox->addItems(QString("red,yellow").split(","));115 _mapWinDotColor->setEditable(false); 116 _mapWinDotColor->addItems(QString("red,yellow").split(",")); 117 117 118 118 _mapSpeedSlider->setOrientation(Qt::Horizontal); … … 124 124 125 125 _mapWinButton->setWhatsThis(tr("<p>You make like to track your rover position using Google Maps or Open Street Map as a background map. Track plots can be produced with BNC in 'Realtime-PPP', 'Realtime-SPP' and 'Post-Processing' mode.</p><p>The 'Open Map' button opens a windows showing a map according to specified options.</p><p>When in 'Post-Processing' mode you should not forget to specify a proxy under the 'Network' tab if that is operated in front of BNC.")); 126 _ gmRadioButton->setWhatsThis(tr("<p>Specify Google Maps as the background for your rover positions."));127 _ osmRadioButton->setWhatsThis(tr("<p>Specify Open Street Map as the background for your rover positions."));128 _mapWinDotSize LineEdit->setWhatsThis(tr("<p>Specify the size of dots showing the rover positions.</p><p>A dot size of '3' may be appropriate. The maximum possible dot size is '10'. An empty option field or a size of '0' would mean that you don't want BNC to show the rover's track on the map.</p>"));129 _mapWinDotColor ComboBox->setWhatsThis(tr("<p>Specify the color of dots showing the rover track.</p>"));126 _useGoogleMap->setWhatsThis(tr("<p>Specify Google Maps as the background for your rover positions.")); 127 _useOpenStreetMap->setWhatsThis(tr("<p>Specify Open Street Map as the background for your rover positions.")); 128 _mapWinDotSize->setWhatsThis(tr("<p>Specify the size of dots showing the rover positions.</p><p>A dot size of '3' may be appropriate. The maximum possible dot size is '10'. An empty option field or a size of '0' would mean that you don't want BNC to show the rover's track on the map.</p>")); 129 _mapWinDotColor->setWhatsThis(tr("<p>Specify the color of dots showing the rover track.</p>")); 130 130 _mapSpeedSlider->setWhatsThis(tr("<p>With BNC in PPP post-processing mode you can specify the speed of computations as appropriate for visualization. Note that you can adjust 'Speed' on-the-fly while BNC is already processing your observations.")); 131 131 … … 197 197 // Plots and Maps 198 198 // -------------- 199 _plotCoordinates 200 _ gmRadioButton ->setChecked(!settings.value(_gmRadioButton->objectName()).toBool());201 _ osmRadioButton ->setChecked(settings.value(_osmRadioButton->objectName()).toBool());202 _mapWinDotSize LineEdit->setText(settings.value(_mapWinDotSizeLineEdit->objectName()).toString());203 204 ii = _mapWinDotColor ComboBox->findText(settings.value(_mapWinDotColorComboBox->objectName()).toString());205 if (ii != -1) { 206 _mapWinDotColor ComboBox->setCurrentIndex(ii);199 _plotCoordinates ->setText(settings.value(_plotCoordinates->objectName()).toString()); 200 _useGoogleMap ->setChecked(!settings.value(_useGoogleMap->objectName()).toBool()); 201 _useOpenStreetMap->setChecked(settings.value(_useOpenStreetMap->objectName()).toBool()); 202 _mapWinDotSize ->setText(settings.value(_mapWinDotSize->objectName()).toString()); 203 204 ii = _mapWinDotColor->findText(settings.value(_mapWinDotColor->objectName()).toString()); 205 if (ii != -1) { 206 _mapWinDotColor->setCurrentIndex(ii); 207 207 } 208 208 … … 249 249 settings.setValue(_staTable->objectName(), staList); 250 250 251 settings.setValue(_plotCoordinates ->objectName(), _plotCoordinates->text());252 settings.setValue(_ gmRadioButton ->objectName(), _gmRadioButton->isChecked());253 settings.setValue(_ osmRadioButton ->objectName(), _osmRadioButton->isChecked());254 settings.setValue(_mapWinDotSize LineEdit ->objectName(), _mapWinDotSizeLineEdit->text());255 settings.setValue(_mapWinDotColor ComboBox->objectName(), _mapWinDotColorComboBox->currentText());256 settings.setValue(_mapSpeedSlider ->objectName(), _mapSpeedSlider->value());251 settings.setValue(_plotCoordinates ->objectName(), _plotCoordinates ->text()); 252 settings.setValue(_useGoogleMap ->objectName(), _useGoogleMap ->isChecked()); 253 settings.setValue(_useOpenStreetMap->objectName(), _useOpenStreetMap->isChecked()); 254 settings.setValue(_mapWinDotSize ->objectName(), _mapWinDotSize ->text()); 255 settings.setValue(_mapWinDotColor ->objectName(), _mapWinDotColor ->currentText()); 256 settings.setValue(_mapSpeedSlider ->objectName(), _mapSpeedSlider ->value()); 257 257 } 258 258
Note:
See TracChangeset
for help on using the changeset viewer.