Stellarium 0.12.3
List of all members | Classes | Public Member Functions
BottomStelBar Class Reference

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 setRedMode (bool b)
 Activate red mode for the buttons, i.e. will reduce the non red color component of the icon. More...
 
void setFlagShowTime (bool b)
 Set whether time must be displayed in the bottom bar. More...
 
void setFlagShowLocation (bool b)
 Set whether location info must be displayed in the bottom bar. More...
 

Detailed Description

Definition at line 183 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::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 217 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.

void BottomStelBar::setRedMode ( bool  b)

Activate red mode for the buttons, i.e. will reduce the non red color component of the icon.


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