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* fieldCcdRotation;
111 QGraphicsTextItem* fieldTelescopeName;
112 QGraphicsTextItem* fieldMagnification;
113 QGraphicsTextItem* fieldFov;
125 void setOcularControlsVisible(
bool show);
126 void setCcdControlsVisible(
bool show);
127 void setTelescopeControlsVisible(
bool show);
128 void setLensControlsVisible(
bool show);
130 void updateMainButtonsPositions();
132 void setControlsColor(
const QColor& color);
133 void setControlsFont(
const QFont& font);
135 static QPixmap createPixmapFromText(
const QString& text,
139 const QColor& textColor,
140 const QColor& backgroundColor = QColor(0,0,0,0));
143 #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.