mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-04 22:27:53 -04:00
Update default settings. Tweak UI.
This commit is contained in:
parent
e6e4d1661e
commit
b046eac470
@ -50,13 +50,13 @@
|
|||||||
ecliptic: "false",
|
ecliptic: "false",
|
||||||
eclipticOverviewText: "false",
|
eclipticOverviewText: "false",
|
||||||
eclipticGrid: "false",
|
eclipticGrid: "false",
|
||||||
eclipticGridText: "false",
|
eclipticGridText: "true",
|
||||||
altAzGrid: "false",
|
altAzGrid: "true",
|
||||||
altAzGridText: "false",
|
altAzGridText: "true",
|
||||||
equatorialGrid: "false",
|
equatorialGrid: "false",
|
||||||
equatorialGridText: "false",
|
equatorialGridText: "true",
|
||||||
galacticGrid: "false",
|
galacticGrid: "false",
|
||||||
galacticGridText: "false",
|
galacticGridText: "true",
|
||||||
precessionChart: "false",
|
precessionChart: "false",
|
||||||
iss: "false",
|
iss: "false",
|
||||||
solarSystemCosmos: "false",
|
solarSystemCosmos: "false",
|
||||||
|
@ -341,6 +341,11 @@ void SkyMapGUI::on_source_currentIndexChanged(int index)
|
|||||||
{
|
{
|
||||||
m_settings.m_source = ui->source->currentText();
|
m_settings.m_source = ui->source->currentText();
|
||||||
applySetting("source");
|
applySetting("source");
|
||||||
|
ui->track->setEnabled(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ui->track->setEnabled(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -401,8 +406,14 @@ void SkyMapGUI::displaySettings()
|
|||||||
}
|
}
|
||||||
ui->track->setChecked(m_settings.m_track);
|
ui->track->setChecked(m_settings.m_track);
|
||||||
idx = ui->source->findText(m_settings.m_source);
|
idx = ui->source->findText(m_settings.m_source);
|
||||||
if (idx >= 0) {
|
if (idx >= 0)
|
||||||
|
{
|
||||||
ui->source->setCurrentIndex(idx);
|
ui->source->setCurrentIndex(idx);
|
||||||
|
ui->track->setEnabled(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ui->track->setEnabled(false);
|
||||||
}
|
}
|
||||||
initSkyMap();
|
initSkyMap();
|
||||||
getRollupContents()->restoreState(m_rollupState);
|
getRollupContents()->restoreState(m_rollupState);
|
||||||
@ -1028,10 +1039,15 @@ void SkyMapGUI::updateSourceList()
|
|||||||
// Select current setting, if exists
|
// Select current setting, if exists
|
||||||
// If not, make sure nothing selected, as channel may be created later on
|
// If not, make sure nothing selected, as channel may be created later on
|
||||||
int idx = ui->source->findText(m_settings.m_source);
|
int idx = ui->source->findText(m_settings.m_source);
|
||||||
if (idx >= 0) {
|
if (idx >= 0)
|
||||||
|
{
|
||||||
ui->source->setCurrentIndex(idx);
|
ui->source->setCurrentIndex(idx);
|
||||||
} else {
|
ui->track->setEnabled(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
ui->source->setCurrentIndex(-1);
|
ui->source->setCurrentIndex(-1);
|
||||||
|
ui->track->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->source->blockSignals(false);
|
ui->source->blockSignals(false);
|
||||||
|
@ -260,12 +260,18 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="source">
|
<widget class="QComboBox" name="source">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>120</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Source feature to get target from</string>
|
<string>Source feature to get target from</string>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>None</string>
|
<string>F0:1 StarTracker</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -77,11 +77,11 @@ void SkyMapSettings::resetToDefaults()
|
|||||||
{"ecliptic", false},
|
{"ecliptic", false},
|
||||||
{"eclipticOverviewText", false},
|
{"eclipticOverviewText", false},
|
||||||
{"eclipticGrid", false},
|
{"eclipticGrid", false},
|
||||||
{"eclipticGridText", false},
|
{"eclipticGridText", true},
|
||||||
{"altAzGrid", false},
|
{"altAzGrid", true},
|
||||||
{"altAzGridText", false},
|
{"altAzGridText", true},
|
||||||
{"galacticGrid", false},
|
{"galacticGrid", false},
|
||||||
{"galacticGridText", false},
|
{"galacticGridText", true},
|
||||||
{"elevationModel", false},
|
{"elevationModel", false},
|
||||||
{"earthSky", false},
|
{"earthSky", false},
|
||||||
{"horizon", false},
|
{"horizon", false},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user