Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classBottomStelBar.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:28:54 2014 Кодировка: Поисковые слова: m 8 |
![]() |
Stellarium 0.12.3
|
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... | |
StelButton * | hideButton (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... | |
Definition at line 183 of file StelGuiItems.hpp.
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.
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.
|
inline |
Set whether location info must be displayed in the bottom bar.
Definition at line 219 of file StelGuiItems.hpp.
|
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.