#include <llcombobox.h>
Public Member Functions | |
LLFlyoutButton (const LLString &name, const LLRect &rect, const LLString &label, void(*commit_callback)(LLUICtrl *, void *)=NULL, void *callback_userdata=NULL) | |
virtual void | updateLayout () |
virtual void | draw () |
virtual void | setEnabled (BOOL enabled) |
void | setToggleState (BOOL state) |
Static Public Member Functions | |
static LLView * | fromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
static void | onActionButtonClick (void *userdata) |
static void | onSelectAction (LLUICtrl *ctrl, void *userdata) |
Protected Attributes | |
LLButton * | mActionButton |
LLPointer< LLUIImage > | mActionButtonImage |
LLPointer< LLUIImage > | mExpanderButtonImage |
LLPointer< LLUIImage > | mActionButtonImageSelected |
LLPointer< LLUIImage > | mExpanderButtonImageSelected |
LLPointer< LLUIImage > | mActionButtonImageDisabled |
LLPointer< LLUIImage > | mExpanderButtonImageDisabled |
BOOL | mToggleState |
Definition at line 202 of file llcombobox.h.
LLFlyoutButton::LLFlyoutButton | ( | const LLString & | name, | |
const LLRect & | rect, | |||
const LLString & | label, | |||
void(*)(LLUICtrl *, void *) | commit_callback = NULL , |
|||
void * | callback_userdata = NULL | |||
) |
Definition at line 1092 of file llcombobox.cpp.
References LLView::addChild(), LLUI::getUIImage(), LLFontGL::HCENTER, mActionButton, mActionButtonImage, mActionButtonImageDisabled, mActionButtonImageSelected, LLComboBox::mButton, mExpanderButtonImage, mExpanderButtonImageDisabled, mExpanderButtonImageSelected, NULL, LLStringBase< char >::null, onActionButtonClick(), LLButton::setClickedCallback(), LLView::setFollowsAll(), LLButton::setHAlign(), LLButton::setImageDisabled(), LLButton::setImageDisabledSelected(), LLButton::setImageSelected(), LLButton::setImageUnselected(), LLButton::setLabel(), LLButton::setRightHPad(), LLButton::setScaleImage(), TRUE, and updateLayout().
Referenced by fromXML().
void LLFlyoutButton::updateLayout | ( | ) | [virtual] |
Reimplemented from LLComboBox.
Definition at line 1188 of file llcombobox.cpp.
References LLComboBox::BELOW, FALSE, FOLLOWS_BOTTOM, FOLLOWS_RIGHT, FOLLOWS_TOP, LLView::getRect(), mActionButton, LLComboBox::mButton, LLComboBox::mListPosition, LLView::reshape(), LLFontGL::RIGHT, LLView::setFollows(), LLButton::setImageOverlay(), LLView::setOrigin(), LLUICtrl::setTabStop(), and LLComboBox::updateLayout().
Referenced by fromXML(), and LLFlyoutButton().
void LLFlyoutButton::draw | ( | void | ) | [virtual] |
Reimplemented from LLComboBox.
Definition at line 1211 of file llcombobox.cpp.
References LLComboBox::draw(), mActionButton, LLComboBox::mButton, mToggleState, LLStringBase< char >::null, LLButton::setLabel(), and LLButton::setToggleState().
void LLFlyoutButton::setEnabled | ( | BOOL | enabled | ) | [virtual] |
Reimplemented from LLComboBox.
Definition at line 1222 of file llcombobox.cpp.
References mActionButton, LLComboBox::setEnabled(), and LLView::setEnabled().
void LLFlyoutButton::setToggleState | ( | BOOL | state | ) |
Definition at line 1229 of file llcombobox.cpp.
References mToggleState.
Referenced by LLToolBar::updateCommunicateList().
LLView * LLFlyoutButton::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLComboBox.
Definition at line 1136 of file llcombobox.cpp.
References LLComboBox::ABOVE, LLComboBox::add(), LLComboBox::BELOW, LLView::createRect(), LLUICtrl::initFromXML(), LLFlyoutButton(), LLComboBox::mListPosition, LLPointer< Type >::notNull(), NULL, and updateLayout().
void LLFlyoutButton::onActionButtonClick | ( | void * | userdata | ) | [static] |
Definition at line 1203 of file llcombobox.cpp.
References LLScrollListCtrl::deselect(), LLComboBox::mList, and LLComboBox::onCommit().
Referenced by LLFlyoutButton().
static void LLFlyoutButton::onSelectAction | ( | LLUICtrl * | ctrl, | |
void * | userdata | |||
) | [static] |
LLButton* LLFlyoutButton::mActionButton [protected] |
Definition at line 223 of file llcombobox.h.
Referenced by draw(), LLFlyoutButton(), setEnabled(), and updateLayout().
LLPointer<LLUIImage> LLFlyoutButton::mActionButtonImage [protected] |
LLPointer<LLUIImage> LLFlyoutButton::mExpanderButtonImage [protected] |
LLPointer<LLUIImage> LLFlyoutButton::mActionButtonImageSelected [protected] |
LLPointer<LLUIImage> LLFlyoutButton::mActionButtonImageDisabled [protected] |
BOOL LLFlyoutButton::mToggleState [protected] |