Oculars.hpp   Oculars.hpp 
skipping to change at line 29 skipping to change at line 29
#ifndef _OCULARS_HPP_ #ifndef _OCULARS_HPP_
#define _OCULARS_HPP_ #define _OCULARS_HPP_
#include "VecMath.hpp" #include "VecMath.hpp"
#include "StelModule.hpp" #include "StelModule.hpp"
#include "OcularDialog.hpp" #include "OcularDialog.hpp"
#include "CCD.hpp" #include "CCD.hpp"
#include "Ocular.hpp" #include "Ocular.hpp"
#include "Telescope.hpp" #include "Telescope.hpp"
#include "Lens.hpp"
#include <QFont> #include <QFont>
#include <QSettings> #include <QSettings>
#define MIN_OCULARS_INI_VERSION 0.12 #define MIN_OCULARS_INI_VERSION 0.12
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QAction; class QAction;
class QKeyEvent; class QKeyEvent;
class QMenu; class QMenu;
skipping to change at line 89 skipping to change at line 90
public slots: public slots:
//! Update the ocular, telescope and sensor lists after the removal of a member. //! Update the ocular, telescope and sensor lists after the removal of a member.
//! Necessary because of the way model/view management in the Ocular Dialog //! Necessary because of the way model/view management in the Ocular Dialog
//! is implemented. //! is implemented.
void updateLists(); void updateLists();
void ccdRotationReset(); void ccdRotationReset();
void decrementCCDIndex(); void decrementCCDIndex();
void decrementOcularIndex(); void decrementOcularIndex();
void decrementTelescopeIndex(); void decrementTelescopeIndex();
void decrementLensIndex();
void displayPopupMenu(); void displayPopupMenu();
//! This method is called with we detect that our hot key is pressed . It handles //! This method is called with we detect that our hot key is pressed . It handles
//! determining if we should do anything - based on a selected objec t. //! determining if we should do anything - based on a selected objec t.
void enableOcular(bool b); void enableOcular(bool b);
void incrementCCDIndex(); void incrementCCDIndex();
void incrementOcularIndex(); void incrementOcularIndex();
void incrementTelescopeIndex(); void incrementTelescopeIndex();
void incrementLensIndex();
void disableLens();
void rotateCCD(QString amount); //!< amount must be a number. void rotateCCD(QString amount); //!< amount must be a number.
void selectCCDAtIndex(QString indexString); //!< indexString must be an integer, in the range of -1:ccds.count() void selectCCDAtIndex(QString indexString); //!< indexString must be an integer, in the range of -1:ccds.count()
void selectOcularAtIndex(QString indexString); //!< indexString mus t be an integer, in the range of -1:oculars.count() void selectOcularAtIndex(QString indexString); //!< indexString mus t be an integer, in the range of -1:oculars.count()
void selectTelescopeAtIndex(QString indexString); //!< indexString must be an integer, in the range of -1:telescopes.count() void selectTelescopeAtIndex(QString indexString); //!< indexString must be an integer, in the range of -1:telescopes.count()
void selectLensAtIndex(QString indexString); //!< indexString must b e an integer, in the range -1:lense.count<()
//! Toggles the sensor frame overlay. //! Toggles the sensor frame overlay.
void toggleCCD(bool show); void toggleCCD(bool show);
//! Toggles the sensor frame overlay (overloaded for blind switching ). //! Toggles the sensor frame overlay (overloaded for blind switching ).
void toggleCCD(); void toggleCCD();
void toggleCrosshairs(bool show = true); void toggleCrosshairs(bool show = true);
//! Toggles the Telrad sight overlay. //! Toggles the Telrad sight overlay.
void toggleTelrad(bool show); void toggleTelrad(bool show);
//! Toggles the Telrad sight overlay (overloaded for blind switching ). //! Toggles the Telrad sight overlay (overloaded for blind switching ).
void toggleTelrad(); void toggleTelrad();
void enableGuiPanel(bool enable = true); void enableGuiPanel(bool enable = true);
void setFlagDecimalDegrees(const bool b); void setFlagDecimalDegrees(const bool b);
bool getFlagDecimalDegrees(void) const; bool getFlagDecimalDegrees(void) const;
signals: signals:
void selectedCCDChanged(); void selectedCCDChanged();
void selectedOcularChanged(); void selectedOcularChanged();
void selectedTelescopeChanged(); void selectedTelescopeChanged();
void selectedLensChanged();
private slots: private slots:
//! Signifies a change in ocular or telescope. Sets new zoom level. //! Signifies a change in ocular or telescope. Sets new zoom level.
void instrumentChanged(); void instrumentChanged();
void determineMaxEyepieceAngle(); void determineMaxEyepieceAngle();
void setRequireSelection(bool state); void setRequireSelection(bool state);
void setScaleImageCircle(bool state); void setScaleImageCircle(bool state);
void setScreenFOVForCCD(); void setScreenFOVForCCD();
void retranslateGui(); void retranslateGui();
void setStelStyle(const QString& style); void setStelStyle(const QString& style);
skipping to change at line 170 skipping to change at line 176
//! Recordd the state of the GridLinesMgr views beforehand, so that it can be reset afterwords. //! Recordd the state of the GridLinesMgr views beforehand, so that it can be reset afterwords.
//! @param zoomedIn if true, this zoom operation is starting from an already zoomed state. //! @param zoomedIn if true, this zoom operation is starting from an already zoomed state.
//! False for the original state. //! False for the original state.
void zoom(bool zoomedIn); void zoom(bool zoomedIn);
//! This method is called by the zoom() method, when this plugin is toggled on; it resets the zoomed view. //! This method is called by the zoom() method, when this plugin is toggled on; it resets the zoomed view.
void zoomOcular(); void zoomOcular();
void hideUsageMessageIfDisplayed(); void hideUsageMessageIfDisplayed();
//! Creates the sub-menu listing lense in the pop-up menu
QMenu* addLensSubmenu(QMenu* parent);
//! Creates the sub-menu listing telescopes in the pop-up menu. //! Creates the sub-menu listing telescopes in the pop-up menu.
QMenu* addTelescopeSubmenu(QMenu* parent); QMenu* addTelescopeSubmenu(QMenu* parent);
//! Returns selected lens,or NULL if no lens is selected
Lens* selectedLens();
//! A list of all the oculars defined in the ini file. Must have at least one, or module will not run. //! A list of all the oculars defined in the ini file. Must have at least one, or module will not run.
QList<CCD *> ccds; QList<CCD *> ccds;
QList<Ocular *> oculars; QList<Ocular *> oculars;
QList<Telescope *> telescopes; QList<Telescope *> telescopes;
QList<Lens *> lense;
int selectedCCDIndex; //!< index of the current CCD, in the range of -1:ccds.count(). -1 means no CCD is selected. int selectedCCDIndex; //!< index of the current CCD, in the range of -1:ccds.count(). -1 means no CCD is selected.
int selectedOcularIndex; //!< index of the current ocular, in the ra nge of -1:oculars.count(). -1 means no ocular is selected. int selectedOcularIndex; //!< index of the current ocular, in the ra nge of -1:oculars.count(). -1 means no ocular is selected.
int selectedTelescopeIndex; //!< index of the current telescope, in the range of -1:telescopes.count(). -1 means none is selected. int selectedTelescopeIndex; //!< index of the current telescope, in the range of -1:telescopes.count(). -1 means none is selected.
int selectedLensIndex; //!< index of the current lens, in the range of -1:lense.count(). -1 means no lens is selected
QFont font; //!< The font used f or drawing labels. QFont font; //!< The font used f or drawing labels.
bool flagShowCCD; //!< flag used to tr ack f we are in CCD mode. bool flagShowCCD; //!< flag used to tr ack f we are in CCD mode.
bool flagShowOculars; //!< flag used to track if we are in ocular mode. bool flagShowOculars; //!< flag used to track if we are in ocular mode.
bool flagShowCrosshairs; //!< flag used to track in crosshair s should be rendered in the ocular view. bool flagShowCrosshairs; //!< flag used to track in crosshair s should be rendered in the ocular view.
bool flagShowTelrad; //!< If true, display the Te lrad overlay. bool flagShowTelrad; //!< If true, display the Te lrad overlay.
int usageMessageLabelID; //!< the id of the label showing the usage message. -1 means it's not displayed. int usageMessageLabelID; //!< the id of the label showing the usage message. -1 means it's not displayed.
bool flagAzimuthalGrid; //!< Flag to track if AzimuthalGrid was displayed at activation. bool flagAzimuthalGrid; //!< Flag to track if AzimuthalGrid was displayed at activation.
bool flagGalacticGrid; //!< Flag to track if GalacticGrid w as displayed at activation. bool flagGalacticGrid; //!< Flag to track if GalacticGrid w as displayed at activation.
skipping to change at line 211 skipping to change at line 226
bool requireSelection; //!< Read from the ini file, whether an object is required to be selected to zoom in. bool requireSelection; //!< Read from the ini file, whether an object is required to be selected to zoom in.
bool useMaxEyepieceAngle; //!< Read from the ini file, whether to scale the mask based aFOV. bool useMaxEyepieceAngle; //!< Read from the ini file, whether to scale the mask based aFOV.
//! Display the GUI control panel //! Display the GUI control panel
bool guiPanelEnabled; bool guiPanelEnabled;
bool flagDecimalDegrees; bool flagDecimalDegrees;
QSignalMapper* ccdRotationSignalMapper; //!< Used to rotate the CCD . */ QSignalMapper* ccdRotationSignalMapper; //!< Used to rotate the CCD . */
QSignalMapper* ccdsSignalMapper; //!< Used to determine which CCD wa s selected from the popup navigator. */ QSignalMapper* ccdsSignalMapper; //!< Used to determine which CCD wa s selected from the popup navigator. */
QSignalMapper* ocularsSignalMapper; //!< Used to determine which ocu lar was selected from the popup navigator. */ QSignalMapper* ocularsSignalMapper; //!< Used to determine which ocu lar was selected from the popup navigator. */
QSignalMapper* telescopesSignalMapper; //!< Used to determine which telescope was selected from the popup navigator. */ QSignalMapper* telescopesSignalMapper; //!< Used to determine which telescope was selected from the popup navigator. */
QSignalMapper* lenseSignalMapper; //!< Used to determine which lens was selected from the popup navigator */
// for toolbar button // for toolbar button
QPixmap* pxmapGlow; QPixmap* pxmapGlow;
QPixmap* pxmapOnIcon; QPixmap* pxmapOnIcon;
QPixmap* pxmapOffIcon; QPixmap* pxmapOffIcon;
StelButton* toolbarButton; StelButton* toolbarButton;
OcularDialog *ocularDialog; OcularDialog *ocularDialog;
bool ready; //!< A flag that determines that this module is usable. If false, we won't open. bool ready; //!< A flag that determines that this module is usable. If false, we won't open.
 End of changes. 10 change blocks. 
0 lines changed or deleted 16 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/