23 #include "VecMath.hpp"
24 #include "StelModule.hpp"
25 #include "OcularDialog.hpp"
28 #include "Telescope.hpp"
34 #define MIN_OCULARS_INI_VERSION 0.12
59 static QSettings* appSettings();
74 virtual void handleKeys(
class QKeyEvent* event);
78 QString getDimensionsString(
double fovX,
double fovY)
const;
79 QString getFOVString(
double fov)
const;
86 void ccdRotationReset();
87 void decrementCCDIndex();
88 void decrementOcularIndex();
89 void decrementTelescopeIndex();
90 void decrementLensIndex();
91 void displayPopupMenu();
95 void incrementCCDIndex();
96 void incrementOcularIndex();
97 void incrementTelescopeIndex();
98 void incrementLensIndex();
109 void toggleCrosshairs(
bool show =
true);
114 void enableGuiPanel(
bool enable =
true);
116 void setFlagDecimalDegrees(
const bool b);
117 bool getFlagDecimalDegrees(
void)
const;
120 void selectedCCDChanged();
121 void selectedOcularChanged();
122 void selectedTelescopeChanged();
123 void selectedLensChanged();
127 void instrumentChanged();
128 void determineMaxEyepieceAngle();
129 void setRequireSelection(
bool state);
130 void setScaleImageCircle(
bool state);
131 void setScreenFOVForCCD();
132 void retranslateGui();
133 void setStelStyle(
const QString& style);
137 void initializeActivationActions();
140 bool isBinocularDefined();
165 void validateAndLoadIniFile();
170 void zoom(
bool zoomedIn);
175 void hideUsageMessageIfDisplayed();
178 QMenu* addLensSubmenu(QMenu* parent);
181 QMenu* addTelescopeSubmenu(QMenu* parent);
184 Lens* selectedLens();
188 QList<Ocular *> oculars;
189 QList<Telescope *> telescopes;
192 int selectedCCDIndex;
193 int selectedOcularIndex;
194 int selectedTelescopeIndex;
195 int selectedLensIndex;
199 bool flagShowOculars;
200 bool flagShowCrosshairs;
202 int usageMessageLabelID;
204 bool flagAzimuthalGrid;
205 bool flagGalacticGrid;
206 bool flagEquatorGrid;
207 bool flagEquatorJ2000Grid;
208 bool flagEquatorLine;
209 bool flagEclipticLine;
210 bool flagEclipticJ2000Grid;
211 bool flagMeridianLine;
212 bool flagHorizonLine;
213 bool flagGalacticPlaneLine;
216 double ccdRotationAngle;
217 double maxEyepieceAngle;
218 bool requireSelection;
219 bool useMaxEyepieceAngle;
221 bool guiPanelEnabled;
222 bool flagDecimalDegrees;
224 QSignalMapper* ccdRotationSignalMapper;
225 QSignalMapper* ccdsSignalMapper;
226 QSignalMapper* ocularsSignalMapper;
227 QSignalMapper* telescopesSignalMapper;
228 QSignalMapper* lenseSignalMapper;
232 QPixmap* pxmapOnIcon;
233 QPixmap* pxmapOffIcon;
239 QAction* actionShowOcular;
240 QAction* actionShowCrosshairs;
241 QAction* actionShowSensor;
242 QAction* actionShowTelrad;
243 QAction* actionConfiguration;
245 QAction* actionTelescopeIncrement;
246 QAction* actionTelescopeDecrement;
247 QAction* actionOcularIncrement;
248 QAction* actionOcularDecrement;
253 QByteArray normalStyleSheet;
254 QByteArray nightStyleSheet;
260 #include "StelPluginInterface.hpp"