#include <lliconctrl.h>
Public Member Functions | |
LLIconCtrl (const LLString &name, const LLRect &rect, const LLUUID &image_id) | |
LLIconCtrl (const LLString &name, const LLRect &rect, const LLString &image_name) | |
virtual | ~LLIconCtrl () |
virtual void | draw () |
void | setImage (const LLString &image_name) |
void | setImage (const LLUUID &image_name) |
const LLUUID & | getImage () const |
LLString | getImageName () const |
virtual void | setValue (const LLSD &value) |
virtual LLSD | getValue () const |
void | setColor (const LLColor4 &color) |
virtual LLXMLNodePtr | getXML (bool save_children=true) const |
Static Public Member Functions | |
static LLView * | fromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
Private Attributes | |
LLColor4 | mColor |
LLString | mImageName |
LLUUID | mImageID |
LLPointer< LLUIImage > | mImagep |
Definition at line 47 of file lliconctrl.h.
Definition at line 47 of file lliconctrl.cpp.
References FALSE, setImage(), and LLUICtrl::setTabStop().
Referenced by fromXML().
Definition at line 59 of file lliconctrl.cpp.
References FALSE, setImage(), and LLUICtrl::setTabStop().
LLIconCtrl::~LLIconCtrl | ( | ) | [virtual] |
void LLIconCtrl::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 104 of file lliconctrl.cpp.
References LLView::draw(), LLView::getLocalRect(), mColor, mImagep, and LLPointer< Type >::notNull().
void LLIconCtrl::setImage | ( | const LLString & | image_name | ) |
Definition at line 79 of file lliconctrl.cpp.
References LLImageProviderInterface::getUIImage(), mImageID, mImageName, mImagep, LLUUID::setNull(), LLUI::sImageProvider, and LLUUID::validate().
Referenced by LLVoiceRemoteCtrl::draw(), LLIconCtrl(), LLViewChildren::setBadge(), LLPanelGroupNotices::setItem(), setValue(), and LLPanelGroupNotices::showNotice().
void LLIconCtrl::setImage | ( | const LLUUID & | image_name | ) |
Definition at line 96 of file lliconctrl.cpp.
References LLImageProviderInterface::getUIImageByID(), mImageID, mImageName, mImagep, and LLUI::sImageProvider.
const LLUUID& LLIconCtrl::getImage | ( | ) | const [inline] |
Definition at line 60 of file lliconctrl.h.
References mImageID.
Referenced by getValue().
LLString LLIconCtrl::getImageName | ( | ) | const [inline] |
Definition at line 61 of file lliconctrl.h.
References mImageName.
Referenced by LLPanelGroupSubTab::postBuild().
void LLIconCtrl::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLView.
Definition at line 115 of file lliconctrl.cpp.
References LLSD::asString(), LLSD::asUUID(), LLSD::isUUID(), and setImage().
LLSD LLIconCtrl::getValue | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 128 of file lliconctrl.cpp.
References getImage().
void LLIconCtrl::setColor | ( | const LLColor4 & | color | ) | [inline, virtual] |
Reimplemented from LLUICtrl.
Definition at line 67 of file lliconctrl.h.
References mColor.
Referenced by fromXML().
LLXMLNodePtr LLIconCtrl::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 135 of file lliconctrl.cpp.
References LLUICtrl::getXML(), mColor, mImageName, LLColor4::mV, and TRUE.
LLView * LLIconCtrl::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLUICtrl.
Definition at line 149 of file lliconctrl.cpp.
References LLView::createRect(), LLUICtrlFactory::getAttributeColor(), LLUICtrl::initFromXML(), LLIconCtrl(), setColor(), and LLColor4::white.
LLColor4 LLIconCtrl::mColor [private] |
LLString LLIconCtrl::mImageName [private] |
LLUUID LLIconCtrl::mImageID [private] |
LLPointer<LLUIImage> LLIconCtrl::mImagep [private] |