LLViewChildren Class Reference

#include <llviewchildren.h>

Collaboration diagram for LLViewChildren:

Collaboration graph
[legend]
List of all members.

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

LLPanelmParent

Detailed Description

Definition at line 37 of file llviewchildren.h.


Member Enumeration Documentation

enum LLViewChildren::Badge

Enumerator:
BADGE_OK 
BADGE_NOTE 
BADGE_WARN 
BADGE_ERROR 

Definition at line 59 of file llviewchildren.h.


Constructor & Destructor Documentation

LLViewChildren::LLViewChildren ( LLPanel parent  ) 

Definition at line 49 of file llviewchildren.cpp.


Member Function Documentation

void LLViewChildren::disable ( const char *  id  )  [inline]

Definition at line 49 of file llviewchildren.h.

References enable().

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 46 of file llviewchildren.h.

References show().

void LLViewChildren::setAction ( const char *  id,
void(*)(void *)  function,
void value 
)

Definition at line 112 of file llviewchildren.cpp.

References LLUICtrlFactory::getButtonByName(), mParent, and LLButton::setClickedCallback().

void LLViewChildren::setBadge ( const char *  id,
Badge  b,
bool  visible = true 
)

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().


Member Data Documentation

LLPanel& LLViewChildren::mParent [private]

Definition at line 69 of file llviewchildren.h.

Referenced by enable(), setAction(), setBadge(), setText(), setWrappedText(), and show().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:57 2010 for Second Life Viewer by  doxygen 1.4.7