TelescopeDialog.hpp   TelescopeDialog.hpp 
/* /*
* Stellarium Telescope Control Plug-in * Stellarium Telescope Control Plug-in
* *
* Copyright (C) 2009 Bogdan Marinov (this file) * Copyright (C) 2009-2010 Bogdan Marinov (this file)
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 48 skipping to change at line 48
class TelescopeConfigurationDialog; class TelescopeConfigurationDialog;
class TelescopeControl; class TelescopeControl;
class TelescopeDialog : public StelDialogTelescopeControl class TelescopeDialog : public StelDialogTelescopeControl
{ {
Q_OBJECT Q_OBJECT
public: public:
TelescopeDialog(); TelescopeDialog();
virtual ~TelescopeDialog(); virtual ~TelescopeDialog();
void languageChanged(); void languageChanged();
virtual void setStelStyle(const StelStyle& style); void updateStyle();
protected: protected:
//! Initialize the dialog widgets and connect the signals/slots //! Initialize the dialog widgets and connect the signals/slots
virtual void createDialogContent(); virtual void createDialogContent();
Ui_telescopeDialogForm* ui; Ui_telescopeDialogForm* ui;
private: private:
//! Update the text and the tooltip of the ChangeStatus button //! Update the text and the tooltip of the ChangeStatus button
void updateStatusButtonForSlot(int slot); void updateStatusButtonForSlot(int slot);
skipping to change at line 74 skipping to change at line 74
private slots: private slots:
void buttonChangeStatusPressed(void); void buttonChangeStatusPressed(void);
void buttonConfigurePressed(void); void buttonConfigurePressed(void);
void buttonAddPressed(void); void buttonAddPressed(void);
void buttonRemovePressed(void); void buttonRemovePressed(void);
void checkBoxUseExecutablesToggled(bool); void checkBoxUseExecutablesToggled(bool);
void buttonBrowseServerDirectoryPressed(void); void buttonBrowseServerDirectoryPressed(void);
//! Slot for receiving information from TelescopeConfigurationDialog //! Slot for receiving information from TelescopeConfigurationDialog
void saveChanges(QString name, TelescopeConnection type); void saveChanges(QString name, ConnectionType type);
//! Slot for receiving information from TelescopeConfigurationDialog //! Slot for receiving information from TelescopeConfigurationDialog
void discardChanges(void); void discardChanges(void);
void togglePointers(int); void toggleReticles(int);
void toggleNames(int); void toggleLabels(int);
void toggleCircles(int);
void selectTelecope(const QModelIndex &); void selectTelecope(const QModelIndex &);
void configureTelescope(const QModelIndex &); void configureTelescope(const QModelIndex &);
//! Update the list of telescopes with their current states //! Update the list of telescopes with their current states
void updateTelescopeStates(void); void updateTelescopeStates(void);
private: private:
enum TelescopeStatus { enum TelescopeStatus {
StatusNA = 0, StatusNA = 0,
StatusStarting, StatusStarting,
skipping to change at line 115 skipping to change at line 116
}; };
QHash<int, QString> statusString; QHash<int, QString> statusString;
TelescopeConfigurationDialog configurationDialog; TelescopeConfigurationDialog configurationDialog;
QStandardItemModel * telescopeListModel; QStandardItemModel * telescopeListModel;
TelescopeControl * telescopeManager; TelescopeControl * telescopeManager;
int telescopeStatus[SLOT_NUMBER_LIMIT]; int telescopeStatus[SLOT_NUMBER_LIMIT];
TelescopeConnection telescopeType[SLOT_NUMBER_LIMIT]; ConnectionType telescopeType[SLOT_NUMBER_LIMIT];
int telescopeCount; int telescopeCount;
int configuredSlot; int configuredSlot;
bool configuredTelescopeIsNew; bool configuredTelescopeIsNew;
}; };
#endif // _TELESCOPEDIALOG_ #endif // _TELESCOPEDIALOG_
 End of changes. 5 change blocks. 
6 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/