Stellarium 0.13.1
List of all members | Classes | 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=0)
 
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. More...
 
void setGroupMargin (const QString &groupName, int left, int right)
 Set the margin at the left and right of a button group in pixels. More...
 
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. More...
 
void setColor (const QColor &c)
 Set the color for all the sub elements. More...
 
void setFlagShowTime (bool b)
 Set whether time must be displayed in the bottom bar. More...
 
bool getFlagShowTime ()
 
void setFlagShowLocation (bool b)
 Set whether location info must be displayed in the bottom bar. More...
 
bool getFlagShowLocation ()
 
void setFlagShowFps (bool b)
 Set whether FPS info must be displayed in the bottom bar. More...
 
bool getFlagShowFps ()
 
void setFlagShowFov (bool b)
 Set whether FOV info must be displayed in the bottom bar. More...
 
bool getFlagShowFov ()
 
void setFlagFovDms (bool b)
 Set whether DMS format for FOV info must be displayed in the bottom bar. More...
 
bool getFlagFovDms ()
 
void setFlagTimeJd (bool b)
 Set whether JD for time info must be displayed in the bottom bar. More...
 
bool getFlagTimeJd ()
 

Detailed Description

Definition at line 185 of file StelGuiItems.hpp.

Member Function Documentation

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

Add a button in a group in the button bar.

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.
StelButton* BottomStelBar::hideButton ( const QString &  actionName)

Hide the button associated with the action of the passed name.

void BottomStelBar::setColor ( const QColor &  c)

Set the color for all the sub elements.

void BottomStelBar::setFlagFovDms ( bool  b)
inline

Set whether DMS format for FOV info must be displayed in the bottom bar.

Definition at line 228 of file StelGuiItems.hpp.

void BottomStelBar::setFlagShowFov ( bool  b)
inline

Set whether FOV info must be displayed in the bottom bar.

Definition at line 225 of file StelGuiItems.hpp.

void BottomStelBar::setFlagShowFps ( bool  b)
inline

Set whether FPS info must be displayed in the bottom bar.

Definition at line 222 of file StelGuiItems.hpp.

void BottomStelBar::setFlagShowLocation ( bool  b)
inline

Set whether location info must be displayed in the bottom bar.

Definition at line 219 of file StelGuiItems.hpp.

void BottomStelBar::setFlagShowTime ( bool  b)
inline

Set whether time must be displayed in the bottom bar.

Definition at line 216 of file StelGuiItems.hpp.

void BottomStelBar::setFlagTimeJd ( bool  b)
inline

Set whether JD for time info must be displayed in the bottom bar.

Definition at line 231 of file StelGuiItems.hpp.

void BottomStelBar::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 BottomStelBar::setGroupMargin ( const QString &  groupName,
int  left,
int  right 
)

Set the margin at the left and right of a button group in pixels.


The documentation for this class was generated from the following file: