20 #ifndef OCULARSGUIPANEL_HPP 21 #define OCULARSGUIPANEL_HPP 23 #include <QGraphicsWidget> 27 class QGraphicsLinearLayout;
28 class QGraphicsProxyWidget;
41 QGraphicsWidget * parent = 0,
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;
128 void setOcularControlsVisible(
bool show);
129 void setCcdControlsVisible(
bool show);
130 void setTelescopeControlsVisible(
bool show);
131 void setLensControlsVisible(
bool show);
133 void updateMainButtonsPositions();
135 void setControlsColor(
const QColor& color);
136 void setControlsFont(
const QFont& font);
138 static QPixmap createPixmapFromText(
const QString& text,
142 const QColor& textColor,
143 const QColor& backgroundColor = QColor(0,0,0,0));
146 #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.