Stellarium 0.11.4 | |||
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
A QGraphicsWidget encapsulating all the Stellarium main sky view and the embedded GUI widgets such as the moving button bars. More...
#include <StelAppGraphicsWidget.hpp>
Public Member Functions | |
void | init (class QSettings *conf) |
Initialize the StelAppGraphicsWidget. | |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
Paint the main sky view and the embedded GUI widgets such as the moving button bars. | |
void | setViewportEffect (const QString &effectName) |
Define the type of viewport effect to use. | |
QString | getViewportEffect () const |
Get the type of viewport effect currently used. | |
void | setDoPaint (bool b) |
Set whether widget repaint are necessary. | |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | keyReleaseEvent (QKeyEvent *event) |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual void | wheelEvent (QGraphicsSceneWheelEvent *wheelEvent) |
virtual void | resizeEvent (QGraphicsSceneResizeEvent *event) |
A QGraphicsWidget encapsulating all the Stellarium main sky view and the embedded GUI widgets such as the moving button bars.
It manages redirection of users inputs to the core and GUI.
QString StelAppGraphicsWidget::getViewportEffect | ( | ) | const |
Get the type of viewport effect currently used.
void StelAppGraphicsWidget::init | ( | class QSettings * | conf | ) |
Initialize the StelAppGraphicsWidget.
virtual void StelAppGraphicsWidget::paint | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option, | |||
QWidget * | widget = 0 | |||
) | [virtual] |
Paint the main sky view and the embedded GUI widgets such as the moving button bars.
This method is called automatically by the GraphicsView.
void StelAppGraphicsWidget::setDoPaint | ( | bool | b | ) | [inline] |
Set whether widget repaint are necessary.
void StelAppGraphicsWidget::setViewportEffect | ( | const QString & | effectName | ) |
Define the type of viewport effect to use.
effectName | must be one of 'none', 'framebufferOnly', 'sphericMirrorDistorter' |