Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

BottomStelBar Class Reference

List of all members.

Classes

struct  ButtonGroup

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

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:
button the button to add
groupName the name of the button group to which the button belongs to. If the group doesn't exist yet, a new one is created.
beforeActionName insert 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.

void BottomStelBar::setFlagShowTime ( bool  b  )  [inline]

Set whether time must be displayed in the bottom bar.

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.

Generated on Sat Aug 25 22:13:31 2012 for Stellarium by  doxygen 1.6.3