#include <llviewchildren.h>
Collaboration diagram for LLViewChildren:
Public Types | |
BADGE_OK | |
BADGE_NOTE | |
BADGE_WARN | |
BADGE_ERROR | |
enum | Badge { BADGE_OK, BADGE_NOTE, BADGE_WARN, BADGE_ERROR } |
Public Member Functions | |
LLViewChildren (LLPanel &parent) | |
void | show (const char *id, bool visible=true) |
void | hide (const char *id) |
void | enable (const char *id, bool enabled=true) |
void | disable (const char *id) |
void | setText (const char *id, const std::string &text, bool visible=true) |
void | setWrappedText (const char *id, const std::string &text, bool visible=true) |
void | setBadge (const char *id, Badge b, bool visible=true) |
void | setAction (const char *id, void(*function)(void *), void *value) |
Private Attributes | |
LLPanel & | mParent |
Definition at line 37 of file llviewchildren.h.
Definition at line 59 of file llviewchildren.h.
LLViewChildren::LLViewChildren | ( | LLPanel & | parent | ) |
Definition at line 49 of file llviewchildren.cpp.
void LLViewChildren::disable | ( | const char * | id | ) | [inline] |
void LLViewChildren::enable | ( | const char * | id, | |
bool | enabled = true | |||
) |
Definition at line 60 of file llviewchildren.cpp.
References LLPanel::childSetEnabled(), and mParent.
Referenced by disable().
void LLViewChildren::hide | ( | const char * | id | ) | [inline] |
Definition at line 112 of file llviewchildren.cpp.
References LLUICtrlFactory::getButtonByName(), mParent, and LLButton::setClickedCallback().
Definition at line 87 of file llviewchildren.cpp.
References BADGE_ERROR, BADGE_NOTE, BADGE_OK, BADGE_WARN, LLUICtrlFactory::getIconByName(), LLControlGroup::getString(), gViewerArt, mParent, LLIconCtrl::setImage(), and LLView::setVisible().
Referenced by LLFloaterBuyLandUI::refreshUI(), and LLFloaterBuyCurrencyUI::updateUI().
void LLViewChildren::setText | ( | const char * | id, | |
const std::string & | text, | |||
bool | visible = true | |||
) |
Definition at line 65 of file llviewchildren.cpp.
References LLUICtrlFactory::getTextBoxByName(), mParent, LLTextBox::setText(), and LLView::setVisible().
void LLViewChildren::setWrappedText | ( | const char * | id, | |
const std::string & | text, | |||
bool | visible = true | |||
) |
Definition at line 76 of file llviewchildren.cpp.
References LLUICtrlFactory::getTextBoxByName(), mParent, LLView::setVisible(), and LLTextBox::setWrappedText().
void LLViewChildren::show | ( | const char * | id, | |
bool | visible = true | |||
) |
Definition at line 55 of file llviewchildren.cpp.
References LLPanel::childSetVisible(), and mParent.
Referenced by hide().
LLPanel& LLViewChildren::mParent [private] |
Definition at line 69 of file llviewchildren.h.
Referenced by enable(), setAction(), setBadge(), setText(), setWrappedText(), and show().