Stellarium  0.17.0
Data Structures | Signals | Public Member Functions
BottomStelBar Class Reference

Signals

void sizeChanged ()
 

Public Member Functions

 BottomStelBar (QGraphicsItem *parent, const QPixmap &pixLeft=QPixmap(), const QPixmap &pixRight=QPixmap(), const QPixmap &pixMiddle=QPixmap(), const QPixmap &pixSingle=QPixmap())
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=Q_NULLPTR)
 
virtual QRectF boundingRect () const
 
QRectF boundingRectNoHelpLabel () const
 
void addButton (StelButton *button, const QString &groupName="defaultGroup", const QString &beforeActionName="")
 Add a button in a group in the button bar. More...
 
StelButtonhideButton (const QString &actionName)
 Hide the button associated with the action of the passed name.
 
void setGroupMargin (const QString &groupName, int left, int right)
 Set the margin at the left and right of a button group in pixels.
 
void setGroupBackground (const QString &groupName, const QPixmap &pixLeft=QPixmap(), const QPixmap &pixRight=QPixmap(), const QPixmap &pixMiddle=QPixmap(), const QPixmap &pixSingle=QPixmap())
 Set the background of a group.
 
void setColor (const QColor &c)
 Set the color for all the sub elements.
 
void setFlagShowTime (bool b)
 Set whether time must be displayed in the bottom bar.
 
bool getFlagShowTime ()
 
void setFlagShowLocation (bool b)
 Set whether location info must be displayed in the bottom bar.
 
bool getFlagShowLocation ()
 
void setFlagShowFps (bool b)
 Set whether FPS info must be displayed in the bottom bar.
 
bool getFlagShowFps ()
 
void setFlagShowFov (bool b)
 Set whether FOV info must be displayed in the bottom bar.
 
bool getFlagShowFov ()
 
void setFlagFovDms (bool b)
 Set whether DMS format for FOV info must be displayed in the bottom bar.
 
bool getFlagFovDms ()
 
void setFlagTimeJd (bool b)
 Set whether JD for time info must be displayed in the bottom bar.
 
bool getFlagTimeJd ()
 
void setFlagShowTz (bool b)
 
bool getFlagShowTz ()
 

Member Function Documentation

void BottomStelBar::addButton ( StelButton button,
const QString &  groupName = "defaultGroup",
const QString &  beforeActionName = "" 
)

Group are displayed in alphabetic order.

Parameters
buttonthe button to add
groupNamethe name of the button group to which the button belongs to. If the group doesn't exist yet, a new one is created.
beforeActionNameinsert the button before the button associated to the given action. If the action doesn't exist, insert it at the end of the group.