20 #ifndef OCULARSGUIPANEL_HPP
21 #define OCULARSGUIPANEL_HPP
23 #include <QGraphicsWidget>
27 class QGraphicsLinearLayout;
28 class QGraphicsProxyWidget;
40 QGraphicsWidget * parent = 0,
41 Qt::WindowFlags wFlags = 0);
55 void updatePosition();
58 void updateOcularControls();
60 void updateCcdControls();
63 void updateTelescopeControls();
65 void updateLensControls();
67 void setColorScheme(
const QString& schemeName);
73 QGraphicsWidget* parentWidget;
75 QGraphicsLinearLayout* mainLayout;
77 QGraphicsPathItem* borderPath;
80 QGraphicsWidget* buttonBar;
81 QGraphicsWidget* ocularControls;
82 QGraphicsWidget* lensControls;
83 QGraphicsWidget* ccdControls;
84 QGraphicsWidget* telescopeControls;
102 QGraphicsTextItem* fieldLensName;
103 QGraphicsTextItem* fieldLensMultipler;
104 QGraphicsTextItem* fieldOcularName;
105 QGraphicsTextItem* fieldOcularFl;
106 QGraphicsTextItem* fieldOcularAfov;
107 QGraphicsTextItem* fieldCcdName;
108 QGraphicsTextItem* fieldCcdDimensions;
109 QGraphicsTextItem* fieldCcdRotation;
110 QGraphicsTextItem* fieldTelescopeName;
111 QGraphicsTextItem* fieldMagnification;
112 QGraphicsTextItem* fieldFov;
124 void setOcularControlsVisible(
bool show);
125 void setCcdControlsVisible(
bool show);
126 void setTelescopeControlsVisible(
bool show);
127 void setLensControlsVisible(
bool show);
129 void updateMainButtonsPositions();
131 void setControlsColor(
const QColor& color);
132 void setControlsFont(
const QFont& font);
134 void setButtonsNightMode(
bool nightMode);
136 static QPixmap createPixmapFromText(
const QString& text,
140 const QColor& textColor,
141 const QColor& backgroundColor = QColor(0,0,0,0));
144 #endif // OCULARSGUIPANEL_HPP