Stellarium  0.17.0
Public Member Functions | Protected Member Functions | Friends
SkyGui Class Reference

The class managing the layout for button bars, selected object info and loading bars.

#include <SkyGui.hpp>

Public Member Functions

 SkyGui (QGraphicsItem *parent=Q_NULLPTR)
 
void addProgressBar (StelProgressController *)
 Add a new progress bar in the lower right corner of the screen. More...
 
void init (class StelGui *stelGui)
 
virtual void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *=Q_NULLPTR) Q_DECL_OVERRIDE
 
int getSkyGuiWidth () const
 
int getSkyGuiHeight () const
 

Protected Member Functions

virtual void resizeEvent (QGraphicsSceneResizeEvent *event) Q_DECL_OVERRIDE
 
virtual void hoverMoveEvent (QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE
 

Friends

class StelGui
 

Member Function Documentation

void SkyGui::addProgressBar ( StelProgressController )

When the progress bar is deleted with removeProgressBar() the layout is automatically rearranged.

Returns
a pointer to the progress bar