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&);
68 bool validateHost(QString hostName);
71 void changesSaved(QString name, ConnectionType type);
72 void changesDiscarded();
75 QStringList deviceModelNames;
77 QRegExpValidator * telescopeNameValidator;
78 QRegExpValidator * hostNameValidator;
79 QRegExpValidator * circleListValidator;
80 QRegExpValidator * serialPortValidator;
87 #endif // _TELESCOPECONFIGURATIONDIALOG_
Base class for all the GUI windows in Stellarium.
This class manages the controlling of one or more telescopes by one instance of the stellarium progra...
Holds the information related to a color style for GUI and modules of Stellarium. ...