Changeset 5893 in ntrip for trunk/BNC/src/PPP/pppWidgets.cpp
- Timestamp:
- Aug 8, 2014, 5:23:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppWidgets.cpp
r5810 r5893 70 70 _addStaButton = new QPushButton("Add Station"); _widgets << _addStaButton; 71 71 _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 73 80 _dataSource->setEditable(false); 74 81 _dataSource->addItems(QString("no,Real-Time Streams,RINEX Files").split(",")); … … 103 110 connect(_delStaButton, SIGNAL(clicked()), this, SLOT(slotDelStation())); 104 111 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 105 122 readOptions(); 106 123 } … … 167 184 } 168 185 } 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); 169 202 } 170 203
Note:
See TracChangeset
for help on using the changeset viewer.