#include <llcombobox.h>
Public Types | |
enum | e_preferred_position { ABOVE, BELOW } |
typedef enum LLComboBox::e_preferred_position | EPreferredPosition |
Public Member Functions | |
LLComboBox (const LLString &name, const LLRect &rect, const LLString &label, void(*commit_callback)(LLUICtrl *, void *)=NULL, void *callback_userdata=NULL) | |
virtual | ~LLComboBox () |
virtual LLXMLNodePtr | getXML (bool save_children=true) const |
virtual void | draw () |
virtual void | onFocusLost () |
virtual void | onLostTop () |
virtual void | setEnabled (BOOL enabled) |
virtual BOOL | handleToolTip (S32 x, S32 y, LLString &msg, LLRect *sticky_rect) |
virtual BOOL | handleKeyHere (KEY key, MASK mask) |
virtual BOOL | handleUnicodeCharHere (llwchar uni_char) |
virtual void | clear () |
virtual void | onCommit () |
virtual BOOL | acceptsTextInput () const |
virtual BOOL | isDirty () const |
virtual void | resetDirty () |
virtual void | setFocus (BOOL b) |
virtual void | setValue (const LLSD &value) |
virtual LLSD | getValue () const |
void | setAllowTextEntry (BOOL allow, S32 max_chars=50, BOOL make_tentative=TRUE) |
void | setTextEntry (const LLStringExplicit &text) |
LLScrollListItem * | add (const LLString &name, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE) |
LLScrollListItem * | add (const LLString &name, const LLUUID &id, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE) |
LLScrollListItem * | add (const LLString &name, void *userdata, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE) |
LLScrollListItem * | add (const LLString &name, LLSD value, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE) |
LLScrollListItem * | addSeparator (EAddPosition pos=ADD_BOTTOM) |
BOOL | remove (S32 index) |
void | removeall () |
void | sortByName () |
BOOL | setSimple (const LLStringExplicit &name) |
const LLString | getSimple () const |
const LLString | getSelectedItemLabel (S32 column=0) const |
void | setLabel (const LLStringExplicit &name) |
BOOL | remove (const LLString &name) |
BOOL | setCurrentByIndex (S32 index) |
S32 | getCurrentIndex () const |
virtual void | updateLayout () |
LLCtrlSelectionInterface * | getSelectionInterface () |
LLCtrlListInterface * | getListInterface () |
virtual S32 | getItemCount () const |
virtual void | addColumn (const LLSD &column, EAddPosition pos=ADD_BOTTOM) |
virtual void | clearColumns () |
virtual void | setColumnLabel (const LLString &column, const LLString &label) |
virtual LLScrollListItem * | addElement (const LLSD &value, EAddPosition pos=ADD_BOTTOM, void *userdata=NULL) |
virtual LLScrollListItem * | addSimpleElement (const LLString &value, EAddPosition pos=ADD_BOTTOM, const LLSD &id=LLSD()) |
virtual void | clearRows () |
virtual void | sortByColumn (LLString name, BOOL ascending) |
virtual BOOL | getCanSelect () const |
virtual BOOL | selectFirstItem () |
virtual BOOL | selectNthItem (S32 index) |
virtual BOOL | selectItemRange (S32 first, S32 last) |
virtual S32 | getFirstSelectedIndex () const |
virtual BOOL | setCurrentByID (const LLUUID &id) |
virtual LLUUID | getCurrentID () const |
virtual BOOL | setSelectedByValue (const LLSD &value, BOOL selected) |
virtual LLSD | getSelectedValue () |
virtual BOOL | isSelected (const LLSD &value) const |
virtual BOOL | operateOnSelection (EOperation op) |
virtual BOOL | operateOnAll (EOperation op) |
void * | getCurrentUserdata () |
void | setPrearrangeCallback (void(*cb)(LLUICtrl *, void *)) |
void | setTextEntryCallback (void(*cb)(LLLineEditor *, void *)) |
void | setButtonVisible (BOOL visible) |
void | updateSelection () |
virtual void | showList () |
virtual void | hideList () |
Static Public Member Functions | |
static LLView * | fromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
static void | onButtonDown (void *userdata) |
static void | onItemSelected (LLUICtrl *item, void *userdata) |
static void | onTextEntry (LLLineEditor *line_editor, void *user_data) |
static void | onTextCommit (LLUICtrl *caller, void *user_data) |
Protected Attributes | |
LLButton * | mButton |
LLScrollListCtrl * | mList |
EPreferredPosition | mListPosition |
LLPointer< LLUIImage > | mArrowImage |
Private Attributes | |
S32 | mButtonPadding |
LLLineEditor * | mTextEntry |
BOOL | mAllowTextEntry |
S32 | mMaxChars |
BOOL | mTextEntryTentative |
void(* | mPrearrangeCallback )(LLUICtrl *, void *) |
void(* | mTextEntryCallback )(LLLineEditor *, void *) |
Definition at line 56 of file llcombobox.h.
LLComboBox::LLComboBox | ( | const LLString & | name, | |
const LLRect & | rect, | |||
const LLString & | label, | |||
void(*)(LLUICtrl *, void *) | commit_callback = NULL , |
|||
void * | callback_userdata = NULL | |||
) |
Definition at line 62 of file llcombobox.cpp.
References LLView::addChild(), FALSE, FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, LLImageProviderInterface::getUIImage(), LLFontGL::LEFT, mArrowImage, mButton, mList, NULL, LLStringBase< char >::null, onButtonDown(), onItemSelected(), LLFontGL::RIGHT, LLScrollListCtrl::setBgWriteableColor(), LLScrollListCtrl::setCommitOnKeyboardMovement(), LLView::setFollows(), LLButton::setFont(), LLButton::setHAlign(), LLButton::setImageDisabled(), LLButton::setImageDisabledSelected(), LLButton::setImageOverlay(), LLButton::setImageSelected(), LLButton::setImageUnselected(), LLButton::setMouseDownCallback(), LLButton::setRightHPad(), LLButton::setScaleImage(), LLView::setVisible(), LLUI::sImageProvider, LLFontGL::sSansSerifSmall, TRUE, and updateLayout().
Referenced by fromXML().
LLComboBox::~LLComboBox | ( | ) | [virtual] |
Definition at line 112 of file llcombobox.cpp.
LLXMLNodePtr LLComboBox::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 118 of file llcombobox.cpp.
References LLSD::asString(), FALSE, LLScrollListCtrl::getAllData(), LLScrollListItem::getColumn(), LLScrollListItem::getEnabled(), LLScrollListCell::getValue(), LLScrollListItem::getValue(), LLUICtrl::getXML(), mAllowTextEntry, mList, mMaxChars, and TRUE.
LLView * LLComboBox::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLUICtrl.
Reimplemented in LLFlyoutButton.
Definition at line 150 of file llcombobox.cpp.
References add(), LLView::createRect(), FALSE, LLUICtrl::initFromXML(), LLComboBox(), llendl, llerrs, LLPointer< Type >::notNull(), NULL, S32, selectFirstItem(), and setAllowTextEntry().
void LLComboBox::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Reimplemented in LLFlyoutButton, and LLColumnHeader.
Definition at line 454 of file llcombobox.cpp.
References LLView::draw(), LLView::getEnabled(), mButton, and LLView::setEnabled().
Referenced by LLColumnHeader::draw(), and LLFlyoutButton::draw().
void LLComboBox::onFocusLost | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 422 of file llcombobox.cpp.
References getCurrentIndex(), hideList(), mAllowTextEntry, mTextEntry, LLUICtrl::onFocusLost(), and LLLineEditor::selectAll().
void LLComboBox::onLostTop | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 433 of file llcombobox.cpp.
References hideList().
void LLComboBox::setEnabled | ( | BOOL | enabled | ) | [virtual] |
Reimplemented from LLView.
Reimplemented in LLFlyoutButton.
Definition at line 206 of file llcombobox.cpp.
References mButton, and LLView::setEnabled().
Referenced by LLPanelObject::clearCtrls(), LLPanelLandOptions::draw(), LLPanelObject::getState(), LLPreviewLSL::loadAsset(), LLPanelGroupGeneral::postBuild(), LLPreviewGesture::refresh(), LLPanelPermissions::refresh(), LLPanelLandMedia::refresh(), LLPanelClassified::refresh(), LLPanelLandOptions::refresh(), LLFlyoutButton::setEnabled(), LLPanelGroupGeneral::update(), and LLFloaterTools::updatePopup().
Reimplemented from LLView.
Definition at line 736 of file llcombobox.cpp.
References LLView::getRect(), getSelectedItemLabel(), LLView::getShowNamesToolTip(), LLView::getToolTip(), LLView::handleToolTip(), LLView::localPointToScreen(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, LLUI::sShowXUINames, and TRUE.
Referenced by LLScrollListCtrl::handleToolTip().
Reimplemented from LLView.
Definition at line 773 of file llcombobox.cpp.
References FALSE, LLScrollListCtrl::getItemIndex(), LLScrollListCtrl::getLastSelectedItem(), LLScrollListCtrl::handleKeyHere(), LLUICtrl::hasFocus(), LLScrollListCtrl::highlightNthItem(), mList, and showList().
Reimplemented from LLView.
Definition at line 795 of file llcombobox.cpp.
References LLFocusMgr::childHasKeyboardFocus(), FALSE, LLScrollListCtrl::getItemIndex(), LLScrollListCtrl::getLastSelectedItem(), gFocusMgr, LLScrollListCtrl::handleUnicodeCharHere(), LLScrollListCtrl::highlightNthItem(), mList, and showList().
void LLComboBox::clear | ( | void | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 212 of file llcombobox.cpp.
References LLScrollListCtrl::deselectAllItems(), mButton, mList, mTextEntry, LLStringBase< char >::null, LLButton::setDisabledLabel(), LLButton::setDisabledSelectedLabel(), LLButton::setLabelSelected(), LLButton::setLabelUnselected(), and LLLineEditor::setText().
Referenced by LLPanelGroupInvite::clear(), LLPanelObject::getState(), LLPanelPermissions::refresh(), LLPanelGroupInvite::update(), LLPanelGroupGeneral::update(), and LLPanelGroupInvite::updateLists().
void LLComboBox::onCommit | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 225 of file llcombobox.cpp.
References FALSE, getCurrentIndex(), getSimple(), mAllowTextEntry, mTextEntry, LLUICtrl::onCommit(), LLUICtrl::setTentative(), and LLLineEditor::setValue().
Referenced by LLFlyoutButton::onActionButtonClick().
virtual BOOL LLComboBox::acceptsTextInput | ( | ) | const [inline, virtual] |
Reimplemented from LLUICtrl.
Definition at line 93 of file llcombobox.h.
References mAllowTextEntry.
BOOL LLComboBox::isDirty | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 238 of file llcombobox.cpp.
References FALSE, LLScrollListCtrl::isDirty(), and mList.
Referenced by LLPanelClassified::checkDirty(), and LLPanelLogin::getServer().
void LLComboBox::resetDirty | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 249 of file llcombobox.cpp.
References mList, and LLScrollListCtrl::resetDirty().
Referenced by LLPanelClassified::resetDirty().
void LLComboBox::setFocus | ( | BOOL | b | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 962 of file llcombobox.cpp.
References LLScrollListCtrl::clearSearchString(), LLView::getVisible(), mList, LLScrollListCtrl::setFocus(), LLUICtrl::setFocus(), and TRUE.
void LLComboBox::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLView.
Definition at line 321 of file llcombobox.cpp.
References LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getSelectedItemLabel(), mList, LLCtrlSelectionInterface::selectByValue(), and setLabel().
Referenced by LLPanelLandMedia::setMediaType(), and LLToolBar::updateCommunicateList().
LLSD LLComboBox::getValue | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 353 of file llcombobox.cpp.
References LLScrollListCtrl::getFirstSelected(), LLLineEditor::getValue(), LLScrollListItem::getValue(), mAllowTextEntry, mList, and mTextEntry.
Referenced by LLPanelDisplay::applyResolution(), LLPanelDisplay::applyWindowSize(), LLFloaterMediaBrowser::draw(), LLPanelLogin::getLocation(), LLPanelLogin::getServer(), LLFloaterURLEntry::headerFetchComplete(), LLToolBar::onClickCommunicate(), LLPanelLogin::onClickConnect(), LLFloaterTestImpl::onCommitCombo(), LLPanelGeneral::refresh(), LLChatBar::refreshGestures(), and LLToolBar::updateCommunicateList().
Definition at line 819 of file llcombobox.cpp.
References mAllowTextEntry, mMaxChars, mTextEntryTentative, and updateLayout().
Referenced by fromXML(), and LLPanelLogin::LLPanelLogin().
void LLComboBox::setTextEntry | ( | const LLStringExplicit & | text | ) |
Definition at line 828 of file llcombobox.cpp.
References mTextEntry, LLLineEditor::setText(), and updateSelection().
Referenced by LLPanelLogin::LLPanelLogin(), LLPanelGeneral::postBuild(), and LLPanelLogin::refreshLocation().
LLScrollListItem * LLComboBox::add | ( | const LLString & | name, | |
EAddPosition | pos = ADD_BOTTOM , |
|||
BOOL | enabled = TRUE | |||
) |
Definition at line 259 of file llcombobox.cpp.
References LLScrollListCtrl::addSimpleElement(), mList, LLScrollListCtrl::selectFirstItem(), and LLScrollListItem::setEnabled().
Referenced by LLPreviewGesture::addAnimations(), LLScriptEdCore::addHelpItemToHistory(), LLPreviewGesture::addKeys(), LLPreviewGesture::addModifiers(), LLPanelGroupInvite::impl::addRoleNames(), LLPanelLogin::addServer(), LLPreviewGesture::addSounds(), LLFloaterURLEntry::addURLToCombobox(), LLFlyoutButton::fromXML(), fromXML(), LLPanelObject::getState(), LLFloaterDayCycle::LLFloaterDayCycle(), LLFloaterTestImpl::LLFloaterTestImpl(), LLFloaterWater::LLFloaterWater(), LLFloaterWindLight::LLFloaterWindLight(), LLPanelLogin::LLPanelLogin(), LLFloaterWindLight::newPromptCallback(), LLFloaterWater::newPromptCallback(), LLScriptEdCore::onBtnDynamicHelp(), LLFloaterMediaBrowser::onLocationChange(), LLPanelLandMedia::populateMIMECombo(), LLPanelGeneral::postBuild(), LLPanelDisplay::postBuild(), LLPanelClassified::postBuild(), LLPanelVoiceDeviceSettings::refresh(), LLFloaterBuyLandUI::refreshUI(), LLFloaterPostProcess::syncMenu(), LLPanelGroupInvite::update(), LLPanelGroupGeneral::update(), LLToolBar::updateCommunicateList(), and LLFloaterTools::updatePopup().
LLScrollListItem * LLComboBox::add | ( | const LLString & | name, | |
const LLUUID & | id, | |||
EAddPosition | pos = ADD_BOTTOM , |
|||
BOOL | enabled = TRUE | |||
) |
Definition at line 268 of file llcombobox.cpp.
References LLScrollListCtrl::addSimpleElement(), mList, LLScrollListCtrl::selectFirstItem(), and LLScrollListItem::setEnabled().
LLScrollListItem * LLComboBox::add | ( | const LLString & | name, | |
void * | userdata, | |||
EAddPosition | pos = ADD_BOTTOM , |
|||
BOOL | enabled = TRUE | |||
) |
Definition at line 277 of file llcombobox.cpp.
References LLScrollListCtrl::addSimpleElement(), mList, LLScrollListCtrl::selectFirstItem(), LLScrollListItem::setEnabled(), and LLScrollListItem::setUserdata().
LLScrollListItem * LLComboBox::add | ( | const LLString & | name, | |
LLSD | value, | |||
EAddPosition | pos = ADD_BOTTOM , |
|||
BOOL | enabled = TRUE | |||
) |
Definition at line 287 of file llcombobox.cpp.
References LLScrollListCtrl::addSimpleElement(), mList, LLScrollListCtrl::selectFirstItem(), and LLScrollListItem::setEnabled().
LLScrollListItem * LLComboBox::addSeparator | ( | EAddPosition | pos = ADD_BOTTOM |
) |
Definition at line 295 of file llcombobox.cpp.
References LLScrollListCtrl::addSeparator(), and mList.
Referenced by LLToolBar::updateCommunicateList().
Definition at line 411 of file llcombobox.cpp.
References LLScrollListCtrl::deleteSingleItem(), FALSE, getItemCount(), mList, and TRUE.
Referenced by LLScriptEdCore::addHelpItemToHistory(), LLFloaterWindLight::deleteAlertCallback(), LLFloaterWater::deleteAlertCallback(), LLPanelObject::getState(), LLPanelLogin::LLPanelLogin(), LLFloaterWindLight::newPromptCallback(), and LLFloaterMediaBrowser::onLocationChange().
void LLComboBox::removeall | ( | ) | [inline] |
Definition at line 116 of file llcombobox.h.
References clearRows().
Referenced by LLPreviewGesture::addAnimations(), LLPreviewGesture::addSounds(), LLPanelGroupInvite::clear(), LLPanelVoiceDeviceSettings::refresh(), LLFloaterBuyLandUI::refreshUI(), LLFloaterPostProcess::syncMenu(), LLPanelGroupInvite::update(), LLPanelGroupGeneral::update(), LLToolBar::updateCommunicateList(), LLPanelGroupInvite::updateLists(), and LLFloaterTools::updatePopup().
void LLComboBox::sortByName | ( | ) |
Definition at line 300 of file llcombobox.cpp.
References mList, LLScrollListCtrl::sortByColumn(), and TRUE.
Referenced by LLFloaterWindLight::newPromptCallback(), LLFloaterWater::newPromptCallback(), LLScriptEdCore::onBtnDynamicHelp(), and LLFloaterSettingsDebug::postBuild().
BOOL LLComboBox::setSimple | ( | const LLStringExplicit & | name | ) |
Definition at line 308 of file llcombobox.cpp.
References FALSE, mList, LLScrollListCtrl::selectItemByLabel(), and setLabel().
Referenced by LLScriptEdCore::addHelpItemToHistory(), LLFloaterURLEntry::addURLToCombobox(), LLPanelVoiceDeviceSettings::cancel(), LLPanelObject::getState(), LLPreviewGesture::loadUIFromGesture(), LLPanelVoiceDeviceSettings::refresh(), and LLPanelLandOptions::refresh().
const LLString LLComboBox::getSimple | ( | ) | const |
Definition at line 334 of file llcombobox.cpp.
References LLScrollListCtrl::getSelectedItemLabel(), LLLineEditor::getText(), mAllowTextEntry, mList, and mTextEntry.
Referenced by LLPanelVoiceDeviceSettings::apply(), LLPanelDisplay::applyResolution(), LLPreviewGesture::createGesture(), LLFloaterWindLight::newPromptCallback(), LLFloaterWorldMap::onAvatarComboCommit(), LLFloaterWindLight::onChangePresetName(), LLFloaterWater::onChangePresetName(), LLFloaterChat::onClickMute(), onCommit(), LLFloaterTestImpl::onCommitCombo(), LLPanelObject::onCommitMaterial(), and LLFloaterWorldMap::trackLandmark().
Definition at line 347 of file llcombobox.cpp.
References LLScrollListCtrl::getSelectedItemLabel(), and mList.
Referenced by LLFloaterReporter::gatherReport(), handleToolTip(), LLFloaterWindLight::onSavePreset(), and LLFloaterWater::onSavePreset().
void LLComboBox::setLabel | ( | const LLStringExplicit & | name | ) |
Definition at line 370 of file llcombobox.cpp.
References FALSE, mAllowTextEntry, mButton, mList, mTextEntry, mTextEntryTentative, LLScrollListCtrl::selectItemByLabel(), LLButton::setDisabledLabel(), LLButton::setDisabledSelectedLabel(), LLButton::setLabelSelected(), LLButton::setLabelUnselected(), LLUICtrl::setTentative(), and LLLineEditor::setText().
Referenced by LLScrollListCtrl::addColumn(), LLPanelDisplay::onCommitAutoDetectAspect(), LLColumnHeader::onSelectSort(), setCurrentByID(), setCurrentByIndex(), setSelectedByValue(), setSimple(), setValue(), and updateLayout().
Definition at line 395 of file llcombobox.cpp.
References LLScrollListCtrl::deleteSingleItem(), LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getItemIndex(), mList, and LLScrollListCtrl::selectItemByLabel().
Definition at line 462 of file llcombobox.cpp.
References LLScrollListCtrl::getSelectedItemLabel(), mList, LLScrollListCtrl::selectNthItem(), and setLabel().
Referenced by LLPreviewGesture::addKeys(), LLPreviewGesture::addModifiers(), LLPanelLogin::addServer(), LLFloaterSnapshot::Impl::comboSetCustom(), LLPanelClassified::confirmMature(), LLPanelGroupGeneral::confirmMatureApply(), LLFloaterWindLight::deleteAlertCallback(), LLFloaterWater::deleteAlertCallback(), LLPanelObject::getState(), LLToolsUseSelectionForGrid::handleEvent(), LLPanelClassified::initNewClassified(), LLPanelLogin::LLPanelLogin(), LLPreviewGesture::loadUIFromGesture(), LLPanelPermissions::onCommitClickAction(), LLPanelGroupGeneral::postBuild(), LLPanelGeneral::postBuild(), LLPanelDisplay::postBuild(), LLPanelClassified::postBuild(), LLFloaterTools::postBuild(), LLPanelPermissions::refresh(), LLPanelGeneral::refresh(), LLPanelLandOptions::refresh(), LLPanelLogin::refreshLocation(), LLFloaterBuyLandUI::refreshUI(), selectFirstItem(), selectNthItem(), LLPanelGroupGeneral::update(), LLFloaterSnapshot::Impl::updateLayout(), LLFloaterTools::updatePopup(), and LLPanelDisplay::~LLPanelDisplay().
S32 LLComboBox::getCurrentIndex | ( | ) | const |
Definition at line 472 of file llcombobox.cpp.
References LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getItemIndex(), and mList.
Referenced by LLScriptEdCore::addHelpItemToHistory(), LLPanelGroupGeneral::apply(), LLPanelDisplay::applyResolution(), LLPanelDisplay::applyWindowSize(), commit_grid_mode(), LLPreviewGesture::createGesture(), LLFloaterWindLight::deleteAlertCallback(), LLFloaterWater::deleteAlertCallback(), LLColumnHeader::draw(), getFirstSelectedIndex(), LLPanelFace::getState(), LLPanelObject::getVolumeParams(), onCommit(), LLPanelPermissions::onCommitClickAction(), LLFloaterSnapshot::Impl::onCommitLayerTypes(), LLFloaterSnapshot::Impl::onCommitResolution(), onFocusLost(), LLColumnHeader::onSelectSort(), LLFloaterBuyLandUI::runWebSitePrep(), LLPanelFace::sendBump(), LLPanelClassified::sendClassifiedInfoUpdate(), LLPanelObject::sendSculpt(), LLPanelFace::sendShiny(), LLPanelFace::sendTexGen(), set_render_name_fade_out(), LLFloaterBuyLandUI::startBuyPreConfirm(), and LLFloaterTools::updatePopup().
void LLComboBox::updateLayout | ( | ) | [virtual] |
Reimplemented in LLFlyoutButton.
Definition at line 483 of file llcombobox.cpp.
References LLView::addChild(), FALSE, FOLLOWS_BOTTOM, FOLLOWS_RIGHT, FOLLOWS_TOP, LLButton::getLabelSelected(), LLView::getLocalRect(), LLView::getRect(), LLControlGroup::getS32(), llmax(), mAllowTextEntry, mArrowImage, LLRectBase< Type >::mBottom, mButton, mMaxChars, LLRectBase< Type >::mRight, mTextEntry, LLRectBase< Type >::mTop, LLStringBase< char >::null, NULL, onTextCommit(), onTextEntry(), S32, LLUI::sConfigGroup, LLLineEditor::setCommitOnFocusLost(), LLView::setFollows(), LLView::setFollowsAll(), LLLineEditor::setHandleEditKeysDirectly(), LLLineEditor::setIgnoreTab(), setLabel(), LLLineEditor::setMaxTextLength(), LLView::setRect(), LLLineEditor::setSelectAllonFocusReceived(), LLUICtrl::setTabStop(), LLLineEditor::setText(), LLView::setVisible(), LLFontGL::sSansSerifSmall, and TRUE.
Referenced by LLComboBox(), setAllowTextEntry(), and LLFlyoutButton::updateLayout().
LLCtrlSelectionInterface* LLComboBox::getSelectionInterface | ( | ) | [inline, virtual] |
LLCtrlListInterface* LLComboBox::getListInterface | ( | ) | [inline, virtual] |
Reimplemented from LLUICtrl.
Definition at line 140 of file llcombobox.h.
Referenced by LLChatBar::refresh(), and LLChatBar::refreshGestures().
S32 LLComboBox::getItemCount | ( | ) | const [virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 979 of file llcombobox.cpp.
References LLScrollListCtrl::getItemCount(), and mList.
Referenced by LLFloaterSnapshot::Impl::comboSetCustom(), LLFloaterWindLight::deleteAlertCallback(), LLFloaterWater::deleteAlertCallback(), LLPanelObject::getState(), remove(), LLPanelGroupInvite::updateLists(), and LLPanelDisplay::~LLPanelDisplay().
void LLComboBox::addColumn | ( | const LLSD & | column, | |
EAddPosition | pos = ADD_BOTTOM | |||
) | [virtual] |
Implements LLCtrlListInterface.
Definition at line 984 of file llcombobox.cpp.
References LLScrollListCtrl::addColumn(), LLScrollListCtrl::clearColumns(), and mList.
void LLComboBox::clearColumns | ( | ) | [virtual] |
Implements LLCtrlListInterface.
Definition at line 990 of file llcombobox.cpp.
References LLScrollListCtrl::clearColumns(), and mList.
Implements LLCtrlListInterface.
Definition at line 995 of file llcombobox.cpp.
References mList, and LLScrollListCtrl::setColumnLabel().
LLScrollListItem * LLComboBox::addElement | ( | const LLSD & | value, | |
EAddPosition | pos = ADD_BOTTOM , |
|||
void * | userdata = NULL | |||
) | [virtual] |
Implements LLCtrlListInterface.
Definition at line 1000 of file llcombobox.cpp.
References LLScrollListCtrl::addElement(), and mList.
Referenced by LLScriptEdCore::addHelpItemToHistory().
LLScrollListItem * LLComboBox::addSimpleElement | ( | const LLString & | value, | |
EAddPosition | pos = ADD_BOTTOM , |
|||
const LLSD & | id = LLSD() | |||
) | [virtual] |
Implements LLCtrlListInterface.
Definition at line 1005 of file llcombobox.cpp.
References LLScrollListCtrl::addSimpleElement(), and mList.
void LLComboBox::clearRows | ( | ) | [virtual] |
Implements LLCtrlListInterface.
Definition at line 1010 of file llcombobox.cpp.
References LLScrollListCtrl::clearRows(), and mList.
Referenced by operateOnAll(), and removeall().
virtual BOOL LLComboBox::getCanSelect | ( | ) | const [inline, virtual] |
virtual BOOL LLComboBox::selectFirstItem | ( | ) | [inline, virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 156 of file llcombobox.h.
References setCurrentByIndex().
Referenced by LLScriptEdCore::addHelpItemToHistory(), fromXML(), LLFloaterDayCycle::LLFloaterDayCycle(), LLFloaterWindLight::newPromptCallback(), and LLFloaterWorldMap::postBuild().
Implements LLCtrlSelectionInterface.
Definition at line 157 of file llcombobox.h.
References setCurrentByIndex().
Referenced by LLFloaterSnapshot::Impl::updateControls().
Implements LLCtrlSelectionInterface.
Definition at line 1078 of file llcombobox.cpp.
References mList, and LLScrollListCtrl::selectItemRange().
virtual S32 LLComboBox::getFirstSelectedIndex | ( | ) | const [inline, virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 159 of file llcombobox.h.
References getCurrentIndex().
Implements LLCtrlSelectionInterface.
Definition at line 1022 of file llcombobox.cpp.
References LLScrollListCtrl::getSelectedItemLabel(), mList, LLScrollListCtrl::selectByID(), and setLabel().
Referenced by LLPreviewGesture::refresh(), LLPanelGroupInvite::update(), LLPanelGroupGeneral::update(), and LLPanelGroupInvite::updateLists().
LLUUID LLComboBox::getCurrentID | ( | ) | const [virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 1034 of file llcombobox.cpp.
References LLScrollListCtrl::getStringUUIDSelectedItem(), and mList.
Referenced by LLFloaterChat::onClickMute(), LLPanelGroupInvite::impl::submitInvitations(), and LLPanelGroupInvite::update().
Implements LLCtrlSelectionInterface.
Definition at line 1038 of file llcombobox.cpp.
References LLScrollListCtrl::getSelectedItemLabel(), mList, setLabel(), and LLScrollListCtrl::setSelectedByValue().
Referenced by LLFloaterWindLight::newPromptCallback(), and LLFloaterWater::newPromptCallback().
LLSD LLComboBox::getSelectedValue | ( | ) | [virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 1048 of file llcombobox.cpp.
References LLScrollListCtrl::getSelectedValue(), and mList.
Referenced by LLFloaterWindLight::deleteAlertCallback(), LLFloaterWater::deleteAlertCallback(), LLFloaterDayCycle::onAddKey(), LLFloaterPostProcess::onChangeEffectName(), LLFloaterWindLight::onChangePresetName(), LLFloaterWater::onChangePresetName(), LLFloaterSnapshot::Impl::onCommitResolution(), LLFloaterWindLight::onDeletePreset(), LLFloaterWater::onDeletePreset(), LLFloaterDayCycle::onKeyPresetChanged(), and LLFloaterPostProcess::onLoadEffect().
Implements LLCtrlSelectionInterface.
Definition at line 1053 of file llcombobox.cpp.
References LLScrollListCtrl::isSelected(), and mList.
BOOL LLComboBox::operateOnSelection | ( | EOperation | op | ) | [virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 1058 of file llcombobox.cpp.
References LLScrollListCtrl::deleteSelectedItems(), FALSE, mList, LLCtrlSelectionInterface::OP_DELETE, and TRUE.
BOOL LLComboBox::operateOnAll | ( | EOperation | op | ) | [virtual] |
Implements LLCtrlSelectionInterface.
Definition at line 1068 of file llcombobox.cpp.
References clearRows(), FALSE, LLCtrlSelectionInterface::OP_DELETE, and TRUE.
void * LLComboBox::getCurrentUserdata | ( | ) |
Definition at line 540 of file llcombobox.cpp.
References LLScrollListCtrl::getFirstSelected(), LLScrollListItem::getUserdata(), mList, and NULL.
Referenced by LLFloaterSettingsDebug::draw(), LLFloaterSettingsDebug::onClickDefault(), LLFloaterSettingsDebug::onCommitSettings(), and LLFloaterSettingsDebug::onSettingSelect().
void LLComboBox::setPrearrangeCallback | ( | void(*)(LLUICtrl *, void *) | cb | ) | [inline] |
Definition at line 172 of file llcombobox.h.
References mPrearrangeCallback.
Referenced by LLFloaterWorldMap::postBuild().
void LLComboBox::setTextEntryCallback | ( | void(*)(LLLineEditor *, void *) | cb | ) | [inline] |
Definition at line 173 of file llcombobox.h.
References mTextEntryCallback.
Referenced by LLPanelGeneral::postBuild(), LLPanelDisplay::postBuild(), and LLFloaterWorldMap::postBuild().
void LLComboBox::setButtonVisible | ( | BOOL | visible | ) |
Definition at line 439 of file llcombobox.cpp.
References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), llmax(), mArrowImage, mButton, LLRectBase< Type >::mRight, mTextEntry, LLLineEditor::reshape(), LLUI::sConfigGroup, LLView::setVisible(), and TRUE.
void LLComboBox::onButtonDown | ( | void * | userdata | ) | [static] |
Definition at line 671 of file llcombobox.cpp.
References gFocusMgr, LLFocusMgr::setMouseCapture(), and TRUE.
Referenced by LLComboBox().
void LLComboBox::onItemSelected | ( | LLUICtrl * | item, | |
void * | userdata | |||
) | [static] |
Definition at line 710 of file llcombobox.cpp.
References gFocusMgr, S32, and LLFocusMgr::setKeyboardFocus().
Referenced by LLComboBox().
void LLComboBox::onTextEntry | ( | LLLineEditor * | line_editor, | |
void * | user_data | |||
) | [static] |
Definition at line 838 of file llcombobox.cpp.
References LLKeyboard::currentKey(), FALSE, LLLineEditor::getText(), gKeyboard, KEY_BACKSPACE, KEY_DELETE, KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, llmax(), llmin(), LLUICtrl::mCallbackUserData, LLLineEditor::selectAll(), and LLUICtrl::setTentative().
Referenced by updateLayout().
void LLComboBox::onTextCommit | ( | LLUICtrl * | caller, | |
void * | user_data | |||
) | [static] |
Definition at line 953 of file llcombobox.cpp.
Referenced by updateLayout().
void LLComboBox::updateSelection | ( | ) |
Definition at line 912 of file llcombobox.cpp.
References LLScrollListCtrl::deselectAllItems(), LLLineEditor::endSelection(), FALSE, LLLineEditor::getCursor(), LLScrollListCtrl::getSelectedItemLabel(), LLLineEditor::getText(), LLLineEditor::getWText(), LLLineEditor::hasSelection(), LLUICtrl::mCallbackUserData, mList, mPrearrangeCallback, mTextEntry, mTextEntryTentative, LLScrollListCtrl::selectItemByLabel(), LLScrollListCtrl::selectItemByPrefix(), LLLineEditor::setSelection(), LLUICtrl::setTentative(), LLLineEditor::setText(), utf8str_to_wstring(), and wstring_to_utf8str().
Referenced by LLFloaterSettingsDebug::postBuild(), and setTextEntry().
void LLComboBox::showList | ( | ) | [virtual] |
Reimplemented in LLColumnHeader.
Definition at line 551 of file llcombobox.cpp.
References BELOW, LLScrollListCtrl::calcColumnWidths(), FALSE, LLScrollListCtrl::fitContents(), LLRectBase< Type >::getHeight(), LLView::getLocalRect(), LLScrollListCtrl::getMaxContentWidth(), LLView::getRect(), LLView::getRootView(), LLWindow::getSize(), LLRectBase< Type >::getWidth(), LLView::getWindow(), gFocusMgr, llclamp(), llfloor(), llmax(), llmin(), LLView::localPointToScreen(), LLView::localRectToOtherView(), MAX_COMBO_WIDTH, LLRectBase< Type >::mBottom, mButton, LLRectBase< Type >::mLeft, mList, mListPosition, LLRectBase< Type >::mTop, LLVector2::mV, LLCoord::mY, LLScrollListCtrl::reshape(), S32, LLScrollListCtrl::setFocus(), LLRectBase< Type >::setLeftTopAndSize(), LLView::setOrigin(), LLRectBase< Type >::setOriginAndSize(), LLButton::setToggleState(), LLFocusMgr::setTopCtrl(), LLView::setUseBoundingRect(), LLView::setVisible(), LLUI::sGLScaleFactor, LLView::translate(), LLView::translateIntoRect(), TRUE, and VY.
Referenced by handleKeyHere(), handleUnicodeCharHere(), and LLColumnHeader::showList().
void LLComboBox::hideList | ( | ) | [virtual] |
Definition at line 647 of file llcombobox.cpp.
References FALSE, LLButton::getLabelSelected(), LLLineEditor::getText(), LLFocusMgr::getTopCtrl(), gFocusMgr, LLScrollListCtrl::highlightNthItem(), mAllowTextEntry, mButton, mList, mTextEntry, NULL, LLScrollListCtrl::selectItemByLabel(), LLButton::setToggleState(), LLFocusMgr::setTopCtrl(), LLView::setUseBoundingRect(), and LLView::setVisible().
Referenced by LLColumnHeader::onClick(), onFocusLost(), and onLostTop().
LLButton* LLComboBox::mButton [protected] |
Definition at line 187 of file llcombobox.h.
Referenced by clear(), LLColumnHeader::draw(), LLFlyoutButton::draw(), draw(), hideList(), LLColumnHeader::LLColumnHeader(), LLComboBox(), LLFlyoutButton::LLFlyoutButton(), setButtonVisible(), setEnabled(), LLColumnHeader::setImage(), setLabel(), LLColumnHeader::showList(), showList(), LLFlyoutButton::updateLayout(), and updateLayout().
LLScrollListCtrl* LLComboBox::mList [protected] |
Definition at line 188 of file llcombobox.h.
Referenced by add(), addColumn(), addElement(), addSeparator(), addSimpleElement(), clear(), clearColumns(), clearRows(), LLColumnHeader::draw(), getCurrentID(), getCurrentIndex(), getCurrentUserdata(), getItemCount(), getSelectedItemLabel(), getSelectedValue(), getSimple(), getValue(), getXML(), handleKeyHere(), handleUnicodeCharHere(), hideList(), isDirty(), isSelected(), LLColumnHeader::LLColumnHeader(), LLComboBox(), LLFlyoutButton::onActionButtonClick(), LLColumnHeader::onClick(), operateOnSelection(), remove(), resetDirty(), selectItemRange(), setColumnLabel(), setCurrentByID(), setCurrentByIndex(), setFocus(), setLabel(), setSelectedByValue(), setSimple(), setValue(), LLColumnHeader::showList(), showList(), sortByName(), and updateSelection().
EPreferredPosition LLComboBox::mListPosition [protected] |
Definition at line 189 of file llcombobox.h.
Referenced by LLFlyoutButton::fromXML(), LLColumnHeader::LLColumnHeader(), showList(), and LLFlyoutButton::updateLayout().
LLPointer<LLUIImage> LLComboBox::mArrowImage [protected] |
Definition at line 190 of file llcombobox.h.
Referenced by LLColumnHeader::draw(), LLComboBox(), setButtonVisible(), and updateLayout().
S32 LLComboBox::mButtonPadding [private] |
Definition at line 193 of file llcombobox.h.
LLLineEditor* LLComboBox::mTextEntry [private] |
Definition at line 194 of file llcombobox.h.
Referenced by clear(), getSimple(), getValue(), hideList(), onCommit(), onFocusLost(), setButtonVisible(), setLabel(), setTextEntry(), updateLayout(), and updateSelection().
BOOL LLComboBox::mAllowTextEntry [private] |
Definition at line 195 of file llcombobox.h.
Referenced by acceptsTextInput(), getSimple(), getValue(), getXML(), hideList(), onCommit(), onFocusLost(), setAllowTextEntry(), setLabel(), and updateLayout().
S32 LLComboBox::mMaxChars [private] |
Definition at line 196 of file llcombobox.h.
Referenced by getXML(), setAllowTextEntry(), and updateLayout().
BOOL LLComboBox::mTextEntryTentative [private] |
Definition at line 197 of file llcombobox.h.
Referenced by setAllowTextEntry(), setLabel(), and updateSelection().
void(* LLComboBox::mPrearrangeCallback)(LLUICtrl *, void *) [private] |
Referenced by setPrearrangeCallback(), and updateSelection().
void(* LLComboBox::mTextEntryCallback)(LLLineEditor *, void *) [private] |
Referenced by setTextEntryCallback().