Changeset 5955 in ntrip
- Timestamp:
- Aug 17, 2014, 9:08:26 AM (11 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 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 74 _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 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 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 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 -
trunk/BNC/src/PPP/pppWidgets.h
r5893 r5955 59 59 QLineEdit* _plotCoordinates; 60 60 QPushButton* _mapWinButton; 61 QRadioButton* _ gmRadioButton;62 QRadioButton* _ osmRadioButton;63 QLineEdit* _mapWinDotSize LineEdit;64 QComboBox* _mapWinDotColor ComboBox;61 QRadioButton* _useGoogleMap; 62 QRadioButton* _useOpenStreetMap; 63 QLineEdit* _mapWinDotSize; 64 QComboBox* _mapWinDotColor; 65 65 QSlider* _mapSpeedSlider; 66 66 -
trunk/BNC/src/bncwindow.cpp
r5954 r5955 904 904 905 905 pppLayout4Hlp2->addWidget(new QLabel("Google")); 906 pppLayout4Hlp2->addWidget(_pppWidgets._ gmRadioButton);906 pppLayout4Hlp2->addWidget(_pppWidgets._useGoogleMap); 907 907 908 908 pppLayout4Hlp2->addWidget(new QLabel("OSM")); 909 pppLayout4Hlp2->addWidget(_pppWidgets._ osmRadioButton);909 pppLayout4Hlp2->addWidget(_pppWidgets._useOpenStreetMap); 910 910 911 911 pppLayout4Hlp2->addSpacing(3*ww); 912 912 913 _pppWidgets._mapWinDotSize LineEdit->setMaximumWidth(5*ww);914 pppLayout4Hlp2->addWidget(_pppWidgets._mapWinDotSize LineEdit);913 _pppWidgets._mapWinDotSize->setMaximumWidth(5*ww); 914 pppLayout4Hlp2->addWidget(_pppWidgets._mapWinDotSize); 915 915 916 916 pppLayout4Hlp2->addSpacing(3*ww); 917 917 918 pppLayout4Hlp2->addWidget(_pppWidgets._mapWinDotColor ComboBox);918 pppLayout4Hlp2->addWidget(_pppWidgets._mapWinDotColor); 919 919 920 920 pppLayout4Hlp2->addSpacing(3*ww); … … 2428 2428 saveOptions(); 2429 2429 enableWidget(false, _pppWidgets._mapWinButton); 2430 enableWidget(false, _pppWidgets._ gmRadioButton);2431 enableWidget(false, _pppWidgets._ osmRadioButton);2432 enableWidget(false, _pppWidgets._mapWinDotSize LineEdit);2433 enableWidget(false, _pppWidgets._mapWinDotColor ComboBox);2430 enableWidget(false, _pppWidgets._useGoogleMap); 2431 enableWidget(false, _pppWidgets._useOpenStreetMap); 2432 enableWidget(false, _pppWidgets._mapWinDotSize); 2433 enableWidget(false, _pppWidgets._mapWinDotColor); 2434 2434 2435 2435 if (!_mapWin) { … … 2451 2451 #ifdef QT_WEBKIT 2452 2452 enableWidget(true, _pppWidgets._mapWinButton); 2453 enableWidget(true, _pppWidgets._ gmRadioButton);2454 enableWidget(true, _pppWidgets._ osmRadioButton);2455 enableWidget(true, _pppWidgets._mapWinDotSize LineEdit);2456 enableWidget(true, _pppWidgets._mapWinDotColor ComboBox);2453 enableWidget(true, _pppWidgets._useGoogleMap); 2454 enableWidget(true, _pppWidgets._useOpenStreetMap); 2455 enableWidget(true, _pppWidgets._mapWinDotSize); 2456 enableWidget(true, _pppWidgets._mapWinDotColor); 2457 2457 if (_mapWin) { 2458 2458 QListIterator<bncGetThread*> it(_threads);
Note:
See TracChangeset
for help on using the changeset viewer.