Stellarium  24.3
Public Slots | Public Member Functions | Protected Member Functions | Friends
SkyGui Class Reference

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

#include <SkyGui.hpp>

Public Slots

void updateBarsPos ()
 Update the position of the button bars in the main window GZ needed this public for interactive GUI scaling.
 

Public Member Functions

 SkyGui (QGraphicsItem *parent=nullptr)
 
void addProgressBar (StelProgressController *)
 Add a new progress bar in the lower right corner of the screen. More...
 
void init (class StelGui *stelGui)
 
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *=nullptr) override
 
int getSkyGuiWidth () const
 actually returns window width
 
int getSkyGuiHeight () const
 actually returns window height
 
qreal getBottomBarHeight () const
 return height of bottom Bar when fully shown
 
qreal getLeftBarWidth () const
 return width of left Bar when fully shown
 

Protected Member Functions

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

Friends

class StelGui
 

Detailed Description

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

Member Function Documentation

◆ addProgressBar()

void SkyGui::addProgressBar ( StelProgressController )

Add a new progress bar in the lower right corner of the screen.

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