Commit b5a3f4ae authored by Jasem Mutlaq's avatar Jasem Mutlaq

Add SkySafari to Profile Wizard services

parent 696bbd60
......@@ -88,6 +88,7 @@ void ProfileWizard::reset()
useWebManager=false;
useJoystick=false;
useRemoteAstrometry=false;
useSkySafari=false;
useWatchDog=false;
useGuiderType = INTERNAL_GUIDER;
......@@ -108,6 +109,7 @@ void ProfileWizard::processLocalEquipment()
useJoystickCheck->setEnabled(true);
useRemoteAstrometryCheck->setEnabled(false);
useWatchDogCheck->setEnabled(false);
useSkySafariCheck->setEnabled(true);
wizardContainer->setCurrentIndex(CREATE_PROFILE);
#endif
}
......@@ -147,6 +149,7 @@ void ProfileWizard::processRemoteEquipment()
useJoystickCheck->setEnabled(true);
useRemoteAstrometryCheck->setEnabled(true);
useWatchDogCheck->setEnabled(true);
useSkySafariCheck->setEnabled(true);
wizardContainer->setCurrentIndex(CREATE_PROFILE);
}
......@@ -160,6 +163,7 @@ void ProfileWizard::processLocalWindows()
useJoystickCheck->setEnabled(false);
useRemoteAstrometryCheck->setEnabled(false);
useWatchDogCheck->setEnabled(false);
useSkySafariCheck->setEnabled(false);
wizardContainer->setCurrentIndex(CREATE_PROFILE);
}
......@@ -178,6 +182,7 @@ void ProfileWizard::processLocalMac()
useJoystickCheck->setEnabled(false);
useRemoteAstrometryCheck->setEnabled(false);
useWatchDogCheck->setEnabled(false);
useSkySafariCheck->setEnabled(true);
wizardContainer->setCurrentIndex(CREATE_PROFILE);
}
......@@ -192,6 +197,7 @@ void ProfileWizard::createProfile()
useJoystick = useJoystickCheck->isEnabled() && useJoystickCheck->isChecked();
useWatchDog = useWatchDogCheck->isEnabled() && useWatchDogCheck->isChecked();
useSkySafari= useSkySafariCheck->isEnabled() && useSkySafariCheck->isChecked();
useRemoteAstrometry = useRemoteAstrometryCheck->isEnabled() && useRemoteAstrometryCheck->isChecked();
if (useInternalGuiderR->isChecked())
useGuiderType = INTERNAL_GUIDER;
......@@ -219,6 +225,8 @@ QStringList ProfileWizard::selectedAuxDrivers()
auxList << "Joystick";
if (useWatchDog)
auxList << "WatchDog";
if (useSkySafari)
auxList << "SkySafari";
if (useRemoteAstrometry)
auxList << "Astrometry";
......
......@@ -41,6 +41,7 @@ class ProfileWizard : public QDialog, public Ui::ProfileWizard
bool useJoystick=false;
bool useRemoteAstrometry=false;
bool useWatchDog=false;
bool useSkySafari=false;
GuiderType useGuiderType = INTERNAL_GUIDER;
QString profileName, host, port;
......
......@@ -996,6 +996,16 @@ Server</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="useSkySafariCheck">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If you plan to use SkySafari to monitor and/or control your mount, check this box to start INDI SkySafari Server. You can connect SkySafari to this server and it shall enable you to connect and control your mount. For more details, please check the &lt;a href=&quot;http://indilib.org/devices/telescopes/skysafari.html&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#007af4;&quot;&gt;INDI SkySafari Documentation.&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>SkySafari</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
......
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