Commit f8808654 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Indicate white site info was saved

parent 7f5e3012
...@@ -209,6 +209,16 @@ void ProfileEditor::setPi(ProfileInfo *value) ...@@ -209,6 +209,16 @@ void ProfileEditor::setPi(ProfileInfo *value)
ui->profileIN->setText(pi->name); ui->profileIN->setText(pi->name);
ui->loadSiteCheck->setChecked(!pi->city.isEmpty());
if (pi->city.isEmpty() == false)
{
if (pi->province.isEmpty())
ui->loadSiteCheck->setText(ui->loadSiteCheck->text() + QString(" (%1, %2)").arg(pi->country).arg(pi->city));
else
ui->loadSiteCheck->setText(ui->loadSiteCheck->text() + QString(" (%1, %2, %3)").arg(pi->country).arg(pi->province).arg(pi->city));
}
if (pi->host.isEmpty() == false) if (pi->host.isEmpty() == false)
{ {
ui->remoteHost->setText(pi->host); ui->remoteHost->setText(pi->host);
......
...@@ -29,6 +29,19 @@ ...@@ -29,6 +29,19 @@
<item> <item>
<widget class="QLineEdit" name="profileIN"/> <widget class="QLineEdit" name="profileIN"/>
</item> </item>
<item>
<widget class="QCheckBox" name="loadSiteCheck">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Load current site settings when Ekos is online. This option should only be used when connecting to a remote geographic site.</string>
</property>
<property name="text">
<string>Site Info</string>
</property>
</widget>
</item>
<item> <item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
...@@ -42,19 +55,6 @@ ...@@ -42,19 +55,6 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item>
<widget class="QCheckBox" name="loadSiteCheck">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Load current site settings when Ekos is online. This option should only be used when connecting to a remote site.</string>
</property>
<property name="text">
<string>Save Site Info</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>
...@@ -419,7 +419,6 @@ ...@@ -419,7 +419,6 @@
<tabstop>remoteMode</tabstop> <tabstop>remoteMode</tabstop>
<tabstop>remoteHost</tabstop> <tabstop>remoteHost</tabstop>
<tabstop>remotePort</tabstop> <tabstop>remotePort</tabstop>
<tabstop>loadSiteCheck</tabstop>
<tabstop>mountCombo</tabstop> <tabstop>mountCombo</tabstop>
<tabstop>ccdCombo</tabstop> <tabstop>ccdCombo</tabstop>
<tabstop>guiderCombo</tabstop> <tabstop>guiderCombo</tabstop>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment