Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · 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.

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:
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.

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:
Generated on Thu Jan 31 14:05:43 2013 for Stellarium by  doxygen 1.6.3