21 #ifndef _TELESCOPECONFIGURATIONDIALOG_HPP_
22 #define _TELESCOPECONFIGURATIONDIALOG_HPP_
26 #include <QIntValidator>
27 #include <QStringList>
28 #include "StelDialog.hpp"
29 #include "TelescopeControlGlobals.hpp"
33 class Ui_telescopeConfigurationDialog;
44 void initExistingTelescopeConfiguration(
int slot);
45 void initNewTelescopeConfiguration(
int slot);
52 virtual void createDialogContent();
53 Ui_telescopeConfigurationDialog* ui;
56 QStringList* listSerialPorts();
57 void initConfigurationDialog();
60 void buttonSavePressed();
61 void buttonDiscardPressed();
63 void toggleTypeLocal(
bool);
64 void toggleTypeConnection(
bool);
65 void toggleTypeVirtual(
bool);
67 void deviceModelSelected(
const QString&);
69 bool validateHost(QString hostName);
72 void changesSaved(QString name, ConnectionType type);
73 void changesDiscarded();
76 QStringList deviceModelNames;
78 QRegExpValidator * telescopeNameValidator;
79 QRegExpValidator * hostNameValidator;
80 QRegExpValidator * circleListValidator;
81 QRegExpValidator * serialPortValidator;
88 #endif // _TELESCOPECONFIGURATIONDIALOG_
A local copy of StelDialog, the base class for all the GUI windows in Stellarium, included to allow t...
This class manages the controlling of one or more telescopes by one instance of the stellarium progra...