21 #ifndef _TELESCOPEDIALOG_HPP_
22 #define _TELESCOPEDIALOG_HPP_
26 #include <QIntValidator>
27 #include <QModelIndex>
28 #include <QStandardItemModel>
30 #include "StelDialog.hpp"
31 #include "TelescopeControlGlobals.hpp"
32 #include "TelescopeConfigurationDialog.hpp"
36 class Ui_telescopeDialogForm;
53 virtual void createDialogContent();
54 Ui_telescopeDialogForm* ui;
57 enum TelescopeStatus {
68 void updateStatusButtonForSlot(
int slot);
70 void setStatusButtonToStart();
71 void setStatusButtonToStop();
72 void setStatusButtonToConnect();
73 void setStatusButtonToDisconnect();
76 void setHeaderNames();
77 void updateWarningTexts();
79 QString getTypeLabel(ConnectionType type);
80 void addModelRow(
int slotNumber, ConnectionType type, TelescopeStatus status,
const QString& name);
81 void updateModelRow(
int rowNumber, ConnectionType type, TelescopeStatus status,
const QString& name);
84 void buttonChangeStatusPressed(
void);
85 void buttonConfigurePressed(
void);
86 void buttonAddPressed(
void);
87 void buttonRemovePressed(
void);
89 void checkBoxUseExecutablesToggled(
bool);
90 void buttonBrowseServerDirectoryPressed(
void);
93 void saveChanges(QString name, ConnectionType type);
95 void discardChanges(
void);
97 void selectTelecope(
const QModelIndex &);
98 void configureTelescope(
const QModelIndex &);
101 void updateTelescopeStates(
void);
114 QHash<int, QString> statusString;
117 QStandardItemModel * telescopeListModel;
121 TelescopeStatus telescopeStatus[SLOT_NUMBER_LIMIT];
122 ConnectionType telescopeType[SLOT_NUMBER_LIMIT];
126 bool configuredTelescopeIsNew;
129 #endif // _TELESCOPEDIALOG_
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...