Changeset 9237 in ntrip for trunk/BNC/src
- Timestamp:
- Nov 10, 2020, 11:53:58 AM (4 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnc.qrc
r8242 r9237 54 54 </qresource> 55 55 <qresource> 56 <file>map/map_gm.html</file>57 56 <file>map/map_osm.html</file> 58 57 <file>map/crosshair.png</file> -
trunk/BNC/src/bncmain.cpp
r9191 r9237 245 245 " PPP/plotCoordinates {Mountpoint for time series plot [character string]}\n" 246 246 " PPP/audioResponse {Audio response threshold in meters [floating-point number]}\n" 247 " PPP/useOpenStreetMap {OSM track map [character string: true|false]}\n"248 " PPP/useGoogleMap {Google track map [character string: true|false]}\n"249 247 " PPP/mapWinDotSize {Size of dots on map [integer number: 0-10]}\n" 250 248 " PPP/mapWinDotColor {Color of dots and cross hair on map [character string: red|yellow]}\n" -
trunk/BNC/src/bncwindow.cpp
r9184 r9237 1060 1060 pppLayout4->addWidget(_pppWidgets._audioResponse, ir, 4, Qt::AlignLeft); 1061 1061 pppLayout4->addWidget(new QLabel("Audio response"), ir, 5, Qt::AlignRight); 1062 1063 1062 ++ir; 1064 1063 pppLayout4->addWidget(new QLabel("Track map"), ir, 0, Qt::AlignLeft); 1065 1064 pppLayout4->addWidget(_pppWidgets._mapWinButton, ir, 1, Qt::AlignLeft); 1066 pppLayout4->addWidget(new QLabel("OSM"), ir, 2, Qt::AlignLeft);1067 pppLayout4->addWidget(_pppWidgets._useOpenStreetMap, ir, 3, Qt::AlignLeft);1068 pppLayout4->addWidget(new QLabel("Google"), ir, 3, Qt::AlignRight);1069 pppLayout4->addWidget(_pppWidgets._useGoogleMap, ir, 4, Qt::AlignLeft);1070 1065 ++ir; 1071 1066 pppLayout4->addWidget(new QLabel("Dot-properties"), ir, 0, Qt::AlignLeft); … … 3054 3049 //////////////////////////////////////////////////////////////////////////// 3055 3050 void bncWindow::slotMapPPP() { 3056 #ifdef QT_WEB KIT3051 #ifdef QT_WEBENGINE 3057 3052 saveOptions(); 3058 3053 enableWidget(false, _pppWidgets._mapWinButton); 3059 enableWidget(false, _pppWidgets._useGoogleMap);3060 enableWidget(false, _pppWidgets._useOpenStreetMap);3061 3054 enableWidget(false, _pppWidgets._mapWinDotSize); 3062 3055 enableWidget(false, _pppWidgets._mapWinDotColor); … … 3071 3064 #else 3072 3065 QMessageBox::information(this, "Information", 3073 "Qt Library compiled without Q tWebKit");3066 "Qt Library compiled without QT_WEBENGINE"); 3074 3067 #endif 3075 3068 } … … 3080 3073 #ifdef QT_WEBKIT 3081 3074 enableWidget(true, _pppWidgets._mapWinButton); 3082 enableWidget(true, _pppWidgets._useGoogleMap);3083 enableWidget(true, _pppWidgets._useOpenStreetMap);3084 3075 enableWidget(true, _pppWidgets._mapWinDotSize); 3085 3076 enableWidget(true, _pppWidgets._mapWinDotColor); -
trunk/BNC/src/map/bncmapwin.cpp
r8909 r9237 98 98 99 99 QFile htmlFile; 100 if (settings.value("PPP/useOpenStreetMap").toBool()) { 101 htmlFile.setFileName(":/map/map_osm.html"); 102 } 103 else { 104 htmlFile.setFileName(":/map/map_gm.html"); 105 } 100 htmlFile.setFileName(":/map/map_osm.html"); 106 101 if (!htmlFile.open(QFile::ReadOnly)) { 107 102 qDebug() << "bncMapWin:: cannot open html file"; -
trunk/BNC/src/pppWidgets.cpp
r9158 r9237 103 103 _plotCoordinates = new QLineEdit; _plotCoordinates ->setObjectName("PPP/plotCoordinates"); _widgets << _plotCoordinates; 104 104 _mapWinButton = new QPushButton; _mapWinButton ->setObjectName("PPP/mapWinButton"); _widgets << _mapWinButton; 105 _useGoogleMap = new QRadioButton; _useGoogleMap ->setObjectName("PPP/useGoogleMap"); _widgets << _useGoogleMap;106 _useOpenStreetMap = new QRadioButton; _useOpenStreetMap->setObjectName("PPP/useOpenStreetMap"); _widgets << _useOpenStreetMap;107 105 _audioResponse = new QLineEdit; _audioResponse ->setObjectName("PPP/audioResponse"); _widgets << _audioResponse; 108 106 _mapWinDotSize = new QLineEdit; _mapWinDotSize ->setObjectName("PPP/mapWinDotSize"); _widgets << _mapWinDotSize; … … 218 216 _audioResponse->setWhatsThis(tr("<p>Specify an 'Audio response' threshold in meters. A beep is produced by BNC whenever a horizontal PPP coordinate component differs by more than the threshold value from the a priori marker coordinate.</p><p>Default is an empty option field, meaning that you don't want BNC to produce alarm signals. <i>[key: PPP/audioResponse]</i></p>")); 219 217 _mapWinButton->setWhatsThis(tr("<p>You may like to track your rover position using Google Maps or Open Street Map as a background map. A 'Track map' can be produced with BNC in 'Real-Time Streams' or 'RINEX files' PPP mode.</p><p>The 'Open Map' button opens a windows showing a map according to specified options.</p><p>Even in 'RINEX files' post processing mode you should not forget to specify a proxy under the 'Network' tab if that is operated in front of BNC because the program needs to download the map data.</p>")); 220 _useGoogleMap->setWhatsThis(tr("<p>Specify Google Maps as the background for your rover positions. <i>[key: PPP/useGoogleMap]</i></p>"));221 _useOpenStreetMap->setWhatsThis(tr("<p>Specify Open Street Map as the background for your rover positions. <i>[key: PPP/useOpenStreetMap]</i></p>"));222 218 _mapWinDotSize->setWhatsThis(tr("<p>Specify the size of dots showing rover positions on the track map.</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. <i>[key: PPP/mapWinDotSize]</i></p>")); 223 219 _mapWinDotColor->setWhatsThis(tr("<p>Specify the color of dots showing the rover track on the map. <i>[key: PPP/mapWinDotColor]</i></p>")); … … 270 266 delete _plotCoordinates; 271 267 delete _mapWinButton; 272 delete _useGoogleMap;273 delete _useOpenStreetMap;274 268 delete _audioResponse; 275 269 delete _mapWinDotSize; … … 410 404 _plotCoordinates ->setText(settings.value(_plotCoordinates->objectName()).toString()); 411 405 _audioResponse ->setText(settings.value(_audioResponse->objectName()).toString()); 412 _useGoogleMap ->setChecked(settings.value(_useGoogleMap->objectName()).toBool());413 _useOpenStreetMap->setChecked(settings.value(_useOpenStreetMap->objectName()).toBool());414 406 _mapWinDotSize ->setText(settings.value(_mapWinDotSize->objectName()).toString()); 415 407 … … 479 471 settings.setValue(_plotCoordinates ->objectName(), _plotCoordinates ->text()); 480 472 settings.setValue(_audioResponse ->objectName(), _audioResponse ->text()); 481 settings.setValue(_useGoogleMap ->objectName(), _useGoogleMap ->isChecked());482 settings.setValue(_useOpenStreetMap->objectName(), _useOpenStreetMap->isChecked());483 473 settings.setValue(_mapWinDotSize ->objectName(), _mapWinDotSize ->text()); 484 474 settings.setValue(_mapWinDotColor ->objectName(), _mapWinDotColor ->currentText()); -
trunk/BNC/src/pppWidgets.h
r9158 r9237 84 84 QLineEdit* _plotCoordinates; 85 85 QPushButton* _mapWinButton; 86 QRadioButton* _useGoogleMap;87 QRadioButton* _useOpenStreetMap;88 86 QLineEdit* _audioResponse; 89 87 QLineEdit* _mapWinDotSize; -
trunk/BNC/src/src.pri
r9215 r9237 151 151 HEADERS += map/bncmapwin.h 152 152 SOURCES += map/bncmapwin.cpp 153 OTHER_FILES += map/map_ gm.html map/map_osm.html153 OTHER_FILES += map/map_osm.html 154 154 } 155 155 else {
Note:
See TracChangeset
for help on using the changeset viewer.