20 #ifndef OCULARSGUIPANEL_HPP 21 #define OCULARSGUIPANEL_HPP 23 #include <QGraphicsWidget> 27 class QGraphicsLinearLayout;
28 class QGraphicsProxyWidget;
41 QGraphicsWidget * parent = Q_NULLPTR,
42 Qt::WindowFlags wFlags = 0);
56 void updatePosition();
59 void updateOcularControls();
61 void updateCcdControls();
64 void updateTelescopeControls();
66 void updateLensControls();
68 void setColorScheme(
const QString& schemeName);
74 QGraphicsWidget* parentWidget;
76 QGraphicsLinearLayout* mainLayout;
78 QGraphicsPathItem* borderPath;
81 QGraphicsWidget* buttonBar;
82 QGraphicsWidget* ocularControls;
83 QGraphicsWidget* lensControls;
84 QGraphicsWidget* ccdControls;
85 QGraphicsWidget* telescopeControls;
103 QGraphicsTextItem* fieldLensName;
104 QGraphicsTextItem* fieldLensMultipler;
105 QGraphicsTextItem* fieldOcularName;
106 QGraphicsTextItem* fieldOcularFl;
107 QGraphicsTextItem* fieldOcularAfov;
108 QGraphicsTextItem* fieldCcdName;
109 QGraphicsTextItem* fieldCcdDimensions;
110 QGraphicsTextItem* fieldCcdHScale;
111 QGraphicsTextItem* fieldCcdVScale;
112 QGraphicsTextItem* fieldCcdRotation;
113 QGraphicsTextItem* fieldTelescopeName;
114 QGraphicsTextItem* fieldMagnification;
115 QGraphicsTextItem* fieldExitPupil;
116 QGraphicsTextItem* fieldFov;
117 QGraphicsTextItem* fieldRayleighCriterion;
118 QGraphicsTextItem* fieldDawesCriterion;
119 QGraphicsTextItem* fieldAbbeyCriterion;
120 QGraphicsTextItem* fieldSparrowCriterion;
133 void setOcularControlsVisible(
bool show);
134 void setCcdControlsVisible(
bool show);
135 void setTelescopeControlsVisible(
bool show);
136 void setLensControlsVisible(
bool show);
138 void updateMainButtonsPositions();
140 void setControlsColor(
const QColor& color);
141 void setControlsFont(
const QFont& font);
143 static QPixmap createPixmapFromText(
const QString& text,
147 const QColor& textColor,
148 const QColor& backgroundColor = QColor(0,0,0,0));
151 #endif // OCULARSGUIPANEL_HPP void showCcdGui()
Show only the controls used with a CCD overlay.
void showOcularGui()
Show only the controls used with an ocular overlay.
A screen widget similar to InfoPanel.
void foldGui()
Hide the controls, leaving only the button bar.
Main class of the Oculars plug-in.