Oculars.hpp   Oculars.hpp 
skipping to change at line 78 skipping to change at line 78
a good way to supplement your visual astronomy interests. a good way to supplement your visual astronomy interests.
@} @}
*/ */
//! Main class of the Oculars plug-in. //! Main class of the Oculars plug-in.
//! @class Oculars //! @class Oculars
//! @ingroup oculars //! @ingroup oculars
class Oculars : public StelModule class Oculars : public StelModule
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool enableOcular READ getEnableOcular WRITE enableOcular
NOTIFY enableOcularChanged)
Q_PROPERTY(bool enableCrosshairs READ getEnableCrosshairs WRITE togg
leCrosshairs NOTIFY enableCrosshairsChanged)
Q_PROPERTY(bool enableCCD READ getEnableCCD WRITE toggleCCD NOTIFY e
nableCCDChanged)
Q_PROPERTY(bool enableTelrad READ getEnableTelrad WRITE toggleTelrad
NOTIFY enableTelradChanged)
//BM: Temporary, until the GUI is finalized and some other method of getting //BM: Temporary, until the GUI is finalized and some other method of getting
//info from the main class is implemented. //info from the main class is implemented.
friend class OcularsGuiPanel; friend class OcularsGuiPanel;
public: public:
Oculars(); Oculars();
virtual ~Oculars(); virtual ~Oculars();
static QSettings* appSettings(); static QSettings* appSettings();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
skipping to change at line 122 skipping to change at line 128
void updateLists(); void updateLists();
void ccdRotationReset(); void ccdRotationReset();
void decrementCCDIndex(); void decrementCCDIndex();
void decrementOcularIndex(); void decrementOcularIndex();
void decrementTelescopeIndex(); void decrementTelescopeIndex();
void decrementLensIndex(); 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);
bool getEnableOcular() const { return flagShowOculars; }
void incrementCCDIndex(); void incrementCCDIndex();
void incrementOcularIndex(); void incrementOcularIndex();
void incrementTelescopeIndex(); void incrementTelescopeIndex();
void incrementLensIndex(); void incrementLensIndex();
void disableLens(); 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<() 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();
bool getEnableCCD() const { return flagShowCCD; }
void toggleCrosshairs(bool show = true); void toggleCrosshairs(bool show = true);
bool getEnableCrosshairs() const { return flagShowCrosshairs; }
//! Toggles the Telrad sight overlay. //! Toggles the Telrad sight overlay.
void toggleTelrad(bool show); void toggleTelrad(bool show);
bool getEnableTelrad() const { return flagShowTelrad; }
//! 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;
void setFlagLimitMagnitude(const bool b); void setFlagLimitMagnitude(const bool b);
bool getFlagLimitMagnitude(void) const; bool getFlagLimitMagnitude(void) const;
void setFlagInitFovUsage(const bool b); void setFlagInitFovUsage(const bool b);
bool getFlagInitFovUsage(void) const; bool getFlagInitFovUsage(void) const;
void setFlagUseFlipForCCD(const bool b); void setFlagUseFlipForCCD(const bool b);
bool getFlagUseFlipForCCD(void) const; bool getFlagUseFlipForCCD(void) const;
void setFlagUseSemiTransparency(const bool b); void setFlagUseSemiTransparency(const bool b);
bool getFlagUseSemiTransparency(void) const; bool getFlagUseSemiTransparency(void) const;
signals: signals:
void enableOcularChanged(bool value);
void enableCrosshairsChanged(bool value);
void enableCCDChanged(bool value);
void enableTelradChanged(bool value);
void selectedCCDChanged(); void selectedCCDChanged();
void selectedOcularChanged(); void selectedOcularChanged();
void selectedTelescopeChanged(); void selectedTelescopeChanged();
void selectedLensChanged(); 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);
skipping to change at line 262 skipping to change at line 276
bool flagHorizonLine; //!< Flag to track if HorizonLine wa s displayed at activation. bool flagHorizonLine; //!< Flag to track if HorizonLine wa s displayed at activation.
bool flagGalacticEquatorLine; //!< Flag to track if GalacticEquato rLine was displayed at activation. bool flagGalacticEquatorLine; //!< Flag to track if GalacticEquato rLine was displayed at activation.
bool flagAdaptation; //!< Flag to track if adaptationChec kbox was enabled at activation. bool flagAdaptation; //!< Flag to track if adaptationChec kbox was enabled at activation.
bool flagLimitStars; //!< Flag to track limit magnitude f or stars bool flagLimitStars; //!< Flag to track limit magnitude f or stars
float magLimitStars; //!< Value of limited magnitude for stars float magLimitStars; //!< Value of limited magnitude for stars
bool flagLimitDSOs; //!< Flag to track limit magnitude f or DSOs bool flagLimitDSOs; //!< Flag to track limit magnitude f or DSOs
float magLimitDSOs; //!< Value of limited magnitude for DSOs float magLimitDSOs; //!< Value of limited magnitude for DSOs
bool flagLimitPlanets; //!< Flag to track limit magnitude f or planets, asteroids, comets etc. bool flagLimitPlanets; //!< Flag to track limit magnitude f or planets, asteroids, comets etc.
float magLimitPlanets; //!< Value of limited magnitude for planets, asteroids, comets etc. float magLimitPlanets; //!< Value of limited magnitude for planets, asteroids, comets etc.
float relativeStarScale;
float absoluteStarScale;
bool flagMoonScale; //!< Flag to track of usage zooming of the Moon bool flagMoonScale; //!< Flag to track of usage zooming of the Moon
double maxEyepieceAngle; //!< The maximum aFOV of any eyepiec e. double maxEyepieceAngle; //!< The maximum aFOV of any eyepiec e.
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 flagLimitMagnitude; //!< Read from the ini file, whether a magnitude is required to be limited. bool flagLimitMagnitude; //!< Read from the ini file, whether a magnitude is required to be limited.
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;
bool flagSemiTransporency; bool flagSemiTransporency;
bool flipVert;
bool flipHorz;
QSignalMapper * ccdRotationSignalMapper; //!< Used to rotate the CC D. */ QSignalMapper * ccdRotationSignalMapper; //!< Used to rotate the CC D. */
QSignalMapper * ccdsSignalMapper; //!< Used to determine which CCD w as selected from the popup navigator. */ QSignalMapper * ccdsSignalMapper; //!< Used to determine which CCD w as selected from the popup navigator. */
QSignalMapper * ocularsSignalMapper; //!< Used to determine which oc ular was selected from the popup navigator. */ QSignalMapper * ocularsSignalMapper; //!< Used to determine which oc ular 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 */ 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;
 End of changes. 8 change blocks. 
0 lines changed or deleted 22 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/