LLComboBox Class Reference

#include <llcombobox.h>

Inheritance diagram for LLComboBox:

Inheritance graph
[legend]
Collaboration diagram for LLComboBox:

Collaboration graph
[legend]
List of all members.

Public Types

typedef enum LLComboBox::e_preferred_position EPreferredPosition
 ABOVE
 BELOW
enum  e_preferred_position { ABOVE, BELOW }

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 EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual LLXMLNodePtr getXML (bool save_children=true) const
virtual void draw ()
virtual void onFocusLost ()
virtual void setEnabled (BOOL enabled)
virtual BOOL handleToolTip (S32 x, S32 y, LLString &msg, LLRect *sticky_rect)
virtual BOOL handleKeyHere (KEY key, MASK mask, BOOL called_from_parent)
virtual BOOL handleUnicodeCharHere (llwchar uni_char, BOOL called_from_parent)
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)
void add (const LLString &name, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE)
void add (const LLString &name, const LLUUID &id, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE)
void add (const LLString &name, void *userdata, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE)
void add (const LLString &name, LLSD value, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE)
BOOL remove (S32 index)
void removeall ()
void sortByName ()
BOOL setSimple (const LLStringExplicit &name)
const LLStringgetSimple () const
const LLStringgetSimpleSelectedItem (S32 column=0) const
void setLabel (const LLStringExplicit &name)
BOOL remove (const LLString &name)
BOOL setCurrentByIndex (S32 index)
S32 getCurrentIndex () const
LLCtrlSelectionInterfacegetSelectionInterface ()
LLCtrlListInterfacegetListInterface ()
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 LLScrollListItemaddElement (const LLSD &value, EAddPosition pos=ADD_BOTTOM, void *userdata=NULL)
virtual LLScrollListItemaddSimpleElement (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 S32 getFirstSelectedIndex () const
virtual BOOL setCurrentByID (const LLUUID &id)
virtual LLUUID getCurrentID ()
virtual BOOL setSelectedByValue (LLSD value, BOOL selected)
virtual LLSD getSimpleSelectedValue ()
virtual BOOL isSelected (LLSD value)
virtual BOOL operateOnSelection (EOperation op)
virtual BOOL operateOnAll (EOperation op)
voidgetCurrentUserdata ()
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 LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
static void onButtonDown (void *userdata)
static void onItemSelected (LLUICtrl *item, void *userdata)
static void onListFocusChanged (LLUICtrl *item, void *userdata)
static void onTextEntry (LLLineEditor *line_editor, void *user_data)
static void onTextCommit (LLUICtrl *caller, void *user_data)

Protected Attributes

LLButtonmButton
LLScrollListCtrlmList
LLViewBordermBorder
BOOL mKeyboardFocusOnClick
BOOL mDrawArrow
LLLineEditormTextEntry
LLPointer< LLImageGLmArrowImage
S32 mArrowImageWidth
BOOL mAllowTextEntry
S32 mMaxChars
BOOL mTextEntryTentative
EPreferredPosition mListPosition
void(* mPrearrangeCallback )(LLUICtrl *, void *)
void(* mTextEntryCallback )(LLLineEditor *, void *)

Detailed Description

Definition at line 56 of file llcombobox.h.


Member Typedef Documentation

typedef enum LLComboBox::e_preferred_position LLComboBox::EPreferredPosition


Member Enumeration Documentation

enum LLComboBox::e_preferred_position

Enumerator:
ABOVE 
BELOW 

Definition at line 60 of file llcombobox.h.


Constructor & Destructor Documentation

LLComboBox::LLComboBox ( const LLString name,
const LLRect rect,
const LLString label,
void(*)(LLUICtrl *, void *)  commit_callback = NULL,
void callback_userdata = NULL 
)

Definition at line 59 of file llcombobox.cpp.

References LLView::addChild(), FALSE, FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, FOLLOWS_TOP, LLRectBase< Type >::getHeight(), LLImageProviderInterface::getUIImageByID(), LLRectBase< Type >::getWidth(), LLFontGL::LEFT, llmax(), mArrowImage, mArrowImageWidth, mBorder, mButton, mKeyboardFocusOnClick, mList, LLView::mRect, LLStringBase< char >::null, NULL, onButtonDown(), onItemSelected(), onListFocusChanged(), r, S32, LLUI::sAssetsGroup, SCROLLBAR_SIZE, LLScrollListCtrl::setBgWriteableColor(), LLScrollListCtrl::setCommitOnKeyboardMovement(), LLUICtrl::setFocusChangedCallback(), LLView::setFollows(), LLButton::setFont(), LLButton::setHAlign(), LLButton::setMouseDownCallback(), LLButton::setRightHPad(), LLView::setVisible(), LLUI::sImageProvider, LLFontGL::sSansSerifSmall, and TRUE.

Referenced by fromXML().

LLComboBox::~LLComboBox (  )  [virtual]

Definition at line 128 of file llcombobox.cpp.


Member Function Documentation

virtual BOOL LLComboBox::acceptsTextInput (  )  const [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 93 of file llcombobox.h.

References mAllowTextEntry.

void LLComboBox::add ( const LLString name,
LLSD  value,
EAddPosition  pos = ADD_BOTTOM,
BOOL  enabled = TRUE 
)

Definition at line 297 of file llcombobox.cpp.

References LLScrollListCtrl::addSimpleItem(), mList, and LLScrollListCtrl::selectFirstItem().

void LLComboBox::add ( const LLString name,
void userdata,
EAddPosition  pos = ADD_BOTTOM,
BOOL  enabled = TRUE 
)

Definition at line 289 of file llcombobox.cpp.

References LLScrollListCtrl::addSimpleItem(), mList, LLScrollListCtrl::selectFirstItem(), and LLScrollListItem::setUserdata().

void LLComboBox::add ( const LLString name,
const LLUUID id,
EAddPosition  pos = ADD_BOTTOM,
BOOL  enabled = TRUE 
)

Definition at line 282 of file llcombobox.cpp.

References LLScrollListCtrl::addSimpleItem(), mList, and LLScrollListCtrl::selectFirstItem().

void LLComboBox::add ( const LLString name,
EAddPosition  pos = ADD_BOTTOM,
BOOL  enabled = TRUE 
)

Definition at line 275 of file llcombobox.cpp.

References LLScrollListCtrl::addSimpleItem(), mList, and LLScrollListCtrl::selectFirstItem().

Referenced by LLPreviewGesture::addAnimations(), LLScriptEdCore::addHelpItemToHistory(), LLPreviewGesture::addKeys(), LLPreviewGesture::addModifiers(), LLPanelGroupInvite::impl::addRoleNames(), LLPanelLogin::addServer(), LLPreviewGesture::addSounds(), fromXML(), LLPanelObject::getState(), LLFloaterTestImpl::LLFloaterTestImpl(), LLPanelLogin::LLPanelLogin(), LLScriptEdCore::onBtnDynamicHelp(), LLFloaterSettingsDebug::postBuild(), LLPanelObject::postBuild(), LLPanelGeneral::postBuild(), LLPanelDisplay::postBuild(), LLPanelClassified::postBuild(), LLPanelDeviceSettings::refresh(), LLFloaterBuyLandUI::refreshUI(), LLPanelGroupInvite::update(), and LLFloaterTools::updatePopup().

void LLComboBox::addColumn ( const LLSD column,
EAddPosition  pos = ADD_BOTTOM 
) [virtual]

Implements LLCtrlListInterface.

Definition at line 1007 of file llcombobox.cpp.

References LLScrollListCtrl::addColumn(), LLScrollListCtrl::clearColumns(), and mList.

LLScrollListItem * LLComboBox::addElement ( const LLSD value,
EAddPosition  pos = ADD_BOTTOM,
void userdata = NULL 
) [virtual]

Implements LLCtrlListInterface.

Definition at line 1023 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 1028 of file llcombobox.cpp.

References LLScrollListCtrl::addSimpleElement(), and mList.

void LLComboBox::clear (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 228 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(), and LLPanelGroupInvite::updateLists().

void LLComboBox::clearColumns (  )  [virtual]

Implements LLCtrlListInterface.

Definition at line 1013 of file llcombobox.cpp.

References LLScrollListCtrl::clearColumns(), and mList.

void LLComboBox::clearRows (  )  [virtual]

Implements LLCtrlListInterface.

Definition at line 1033 of file llcombobox.cpp.

References LLScrollListCtrl::clearRows(), and mList.

Referenced by operateOnAll(), and removeall().

void LLComboBox::draw (  )  [virtual]

Reimplemented from LLView.

Reimplemented in LLColumnHeader.

Definition at line 452 of file llcombobox.cpp.

References LLView::draw(), LLRectBase< Type >::getHeight(), LLControlGroup::getS32(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gl_draw_scaled_image(), LLUICtrl::hasFocus(), LLPointer< Type >::isNull(), left, llmin(), llround(), mArrowImage, mBorder, mButton, mDrawArrow, LLView::mEnabled, LLView::mRect, S32, LLUI::sConfigGroup, LLView::setEnabled(), LLViewBorder::setKeyboardFocusHighlight(), and LLColor4::white.

Referenced by LLColumnHeader::draw().

LLView * LLComboBox::fromXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory 
) [static]

Definition at line 166 of file llcombobox.cpp.

References add(), LLView::createRect(), FALSE, LLUICtrl::initFromXML(), LLComboBox(), llendl, llerrs, LLPointer< Type >::notNull(), NULL, S32, selectFirstItem(), and setAllowTextEntry().

virtual BOOL LLComboBox::getCanSelect (  )  const [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 152 of file llcombobox.h.

References TRUE.

LLUUID LLComboBox::getCurrentID (  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 1057 of file llcombobox.cpp.

References LLScrollListCtrl::getStringUUIDSelectedItem(), and mList.

Referenced by LLFloaterChat::onClickMute(), LLPanelGroupInvite::impl::submitInvitations(), and LLPanelGroupInvite::update().

S32 LLComboBox::getCurrentIndex (  )  const

Definition at line 489 of file llcombobox.cpp.

References LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getItemIndex(), and mList.

Referenced by LLScriptEdCore::addHelpItemToHistory(), LLPanelFaceSetTEFunctor::apply(), LLPanelDisplay::applyResolution(), commit_grid_mode(), LLPreviewGesture::createGesture(), 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(), LLPanelFace::sendShiny(), LLPanelFace::sendTexGen(), LLFloaterBuyLandUI::startBuyPreConfirm(), and LLFloaterTools::updatePopup().

void * LLComboBox::getCurrentUserdata (  ) 

Definition at line 500 of file llcombobox.cpp.

References LLScrollListCtrl::getFirstSelected(), LLScrollListItem::getUserdata(), mList, and NULL.

Referenced by LLFloaterSettingsDebug::draw(), LLFloaterSettingsDebug::onClickDefault(), LLFloaterSettingsDebug::onCommitSettings(), and LLFloaterSettingsDebug::onSettingSelect().

virtual S32 LLComboBox::getFirstSelectedIndex (  )  const [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 155 of file llcombobox.h.

References getCurrentIndex().

S32 LLComboBox::getItemCount (  )  const [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 1002 of file llcombobox.cpp.

References LLScrollListCtrl::getItemCount(), and mList.

Referenced by LLFloaterSnapshot::Impl::comboSetCustom(), LLPanelObject::getState(), LLPanelObject::postBuild(), remove(), LLPanelGroupInvite::updateLists(), and LLPanelDisplay::~LLPanelDisplay().

LLCtrlListInterface* LLComboBox::getListInterface (  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 137 of file llcombobox.h.

Referenced by LLChatBar::refresh(), and LLChatBar::refreshGestures().

LLCtrlSelectionInterface* LLComboBox::getSelectionInterface (  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 136 of file llcombobox.h.

const LLString & LLComboBox::getSimple (  )  const

Definition at line 338 of file llcombobox.cpp.

References LLScrollListCtrl::getSimpleSelectedItem(), LLLineEditor::getText(), mAllowTextEntry, mList, and mTextEntry.

Referenced by LLPanelDeviceSettings::apply(), LLPanelDisplay::applyResolution(), LLPreviewGesture::createGesture(), LLFloaterWorldMap::onAvatarComboCommit(), LLFloaterChat::onClickMute(), onCommit(), LLFloaterTestImpl::onCommitCombo(), and LLFloaterWorldMap::trackLandmark().

const LLString & LLComboBox::getSimpleSelectedItem ( S32  column = 0  )  const

Definition at line 351 of file llcombobox.cpp.

References LLScrollListCtrl::getSimpleSelectedItem(), and mList.

Referenced by LLFloaterReporter::gatherReport().

LLSD LLComboBox::getSimpleSelectedValue (  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 1071 of file llcombobox.cpp.

References LLScrollListCtrl::getSimpleSelectedValue(), and mList.

Referenced by LLFloaterSnapshot::Impl::onCommitResolution().

LLSD LLComboBox::getValue (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 357 of file llcombobox.cpp.

References LLScrollListCtrl::getFirstSelected(), LLLineEditor::getValue(), LLScrollListItem::getValue(), mAllowTextEntry, mList, and mTextEntry.

Referenced by LLPanelDisplay::applyResolution(), LLPanelLogin::getLocation(), LLPanelLogin::getServer(), LLFloaterTestImpl::onCommitCombo(), LLPanelGeneral::refresh(), and LLChatBar::refreshGestures().

virtual LLString LLComboBox::getWidgetTag (  )  const [inline, virtual]

Implements LLView.

Definition at line 77 of file llcombobox.h.

References LL_COMBO_BOX_TAG.

virtual EWidgetType LLComboBox::getWidgetType (  )  const [inline, virtual]

Implements LLView.

Definition at line 76 of file llcombobox.h.

References WIDGET_TYPE_COMBO_BOX.

LLXMLNodePtr LLComboBox::getXML ( bool  save_children = true  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 134 of file llcombobox.cpp.

References LLSD::asString(), FALSE, LLScrollListCtrl::getAllData(), LLScrollListCell::getText(), LLUICtrl::getXML(), mAllowTextEntry, mList, mMaxChars, and TRUE.

BOOL LLComboBox::handleKeyHere ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 748 of file llcombobox.cpp.

References LLFocusMgr::childHasKeyboardFocus(), FALSE, LLScrollListCtrl::getItemIndex(), LLScrollListCtrl::getLastSelectedItem(), gFocusMgr, LLScrollListCtrl::handleKeyHere(), LLScrollListCtrl::highlightNthItem(), mList, and showList().

BOOL LLComboBox::handleToolTip ( S32  x,
S32  y,
LLString msg,
LLRect sticky_rect 
) [virtual]

Reimplemented from LLView.

Definition at line 715 of file llcombobox.cpp.

References FALSE, LLRectBase< Type >::getHeight(), LLView::getShowNamesToolTip(), LLView::getVisible(), LLRectBase< Type >::getWidth(), LLView::localPointToScreen(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLView::mRect, LLRectBase< Type >::mRight, LLView::mToolTipMsg, LLRectBase< Type >::mTop, LLView::pointInView(), LLUI::sShowXUINames, and TRUE.

BOOL LLComboBox::handleUnicodeCharHere ( llwchar  uni_char,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 770 of file llcombobox.cpp.

References LLFocusMgr::childHasKeyboardFocus(), FALSE, LLScrollListCtrl::getItemIndex(), LLScrollListCtrl::getLastSelectedItem(), gFocusMgr, LLScrollListCtrl::handleUnicodeCharHere(), LLScrollListCtrl::highlightNthItem(), mList, and showList().

void LLComboBox::hideList (  )  [virtual]

Definition at line 610 of file llcombobox.cpp.

References FALSE, LLFocusMgr::getTopCtrl(), gFocusMgr, LLScrollListCtrl::highlightNthItem(), mButton, mList, NULL, LLButton::setToggleState(), LLFocusMgr::setTopCtrl(), and LLView::setVisible().

Referenced by LLColumnHeader::onClick(), and onFocusLost().

BOOL LLComboBox::isDirty (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 254 of file llcombobox.cpp.

References FALSE, LLScrollListCtrl::isDirty(), and mList.

Referenced by LLPanelClassified::checkDirty(), and LLPanelLogin::getServer().

BOOL LLComboBox::isSelected ( LLSD  value  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 1076 of file llcombobox.cpp.

References LLScrollListCtrl::isSelected(), and mList.

void LLComboBox::onButtonDown ( void userdata  )  [static]

Definition at line 630 of file llcombobox.cpp.

References TRUE.

Referenced by LLComboBox().

void LLComboBox::onCommit (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 241 of file llcombobox.cpp.

References FALSE, getCurrentIndex(), getSimple(), mAllowTextEntry, mTextEntry, LLUICtrl::onCommit(), LLUICtrl::setTentative(), and LLLineEditor::setValue().

void LLComboBox::onFocusLost (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 425 of file llcombobox.cpp.

References getCurrentIndex(), hideList(), mAllowTextEntry, mTextEntry, LLUICtrl::onFocusLost(), and LLLineEditor::selectAll().

void LLComboBox::onItemSelected ( LLUICtrl item,
void userdata 
) [static]

Definition at line 670 of file llcombobox.cpp.

References gFocusMgr, NULL, S32, and LLFocusMgr::setKeyboardFocus().

Referenced by LLComboBox().

void LLComboBox::onListFocusChanged ( LLUICtrl item,
void userdata 
) [static]

Definition at line 699 of file llcombobox.cpp.

References FALSE, and list.

Referenced by LLComboBox().

void LLComboBox::onTextCommit ( LLUICtrl caller,
void user_data 
) [static]

Definition at line 980 of file llcombobox.cpp.

Referenced by setAllowTextEntry().

void LLComboBox::onTextEntry ( LLLineEditor line_editor,
void user_data 
) [static]

Definition at line 865 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 setAllowTextEntry().

BOOL LLComboBox::operateOnAll ( EOperation  op  )  [virtual]

Definition at line 1091 of file llcombobox.cpp.

References clearRows(), FALSE, LLCtrlSelectionInterface::OP_DELETE, and TRUE.

BOOL LLComboBox::operateOnSelection ( EOperation  op  )  [virtual]

Definition at line 1081 of file llcombobox.cpp.

References LLScrollListCtrl::deleteSelectedItems(), FALSE, mList, LLCtrlSelectionInterface::OP_DELETE, and TRUE.

BOOL LLComboBox::remove ( const LLString name  ) 

Definition at line 398 of file llcombobox.cpp.

References LLScrollListCtrl::deleteSingleItem(), LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getItemIndex(), mList, and LLScrollListCtrl::selectSimpleItem().

BOOL LLComboBox::remove ( S32  index  ) 

Definition at line 414 of file llcombobox.cpp.

References LLScrollListCtrl::deleteSingleItem(), FALSE, getItemCount(), mList, and TRUE.

Referenced by LLScriptEdCore::addHelpItemToHistory(), LLPanelObject::getState(), and LLPanelLogin::LLPanelLogin().

void LLComboBox::removeall (  )  [inline]

Definition at line 115 of file llcombobox.h.

References clearRows().

Referenced by LLPreviewGesture::addAnimations(), LLPreviewGesture::addSounds(), LLPanelGroupInvite::clear(), LLPanelObject::postBuild(), LLPanelDeviceSettings::refresh(), LLFloaterBuyLandUI::refreshUI(), LLPanelGroupInvite::update(), LLPanelGroupInvite::updateLists(), and LLFloaterTools::updatePopup().

void LLComboBox::resetDirty (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 265 of file llcombobox.cpp.

References mList, and LLScrollListCtrl::resetDirty().

Referenced by LLPanelClassified::confirmPublish().

virtual BOOL LLComboBox::selectFirstItem (  )  [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 153 of file llcombobox.h.

References setCurrentByIndex().

Referenced by LLScriptEdCore::addHelpItemToHistory(), fromXML(), and LLFloaterWorldMap::postBuild().

virtual BOOL LLComboBox::selectNthItem ( S32  index  )  [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 154 of file llcombobox.h.

References setCurrentByIndex().

Referenced by LLFloaterSnapshot::Impl::updateControls().

void LLComboBox::setAllowTextEntry ( BOOL  allow,
S32  max_chars = 50,
BOOL  make_tentative = TRUE 
)

Definition at line 794 of file llcombobox.cpp.

References LLView::addChild(), LLViewBorder::BEVEL_NONE, FALSE, FOLLOWS_BOTTOM, FOLLOWS_RIGHT, FOLLOWS_TOP, LLRectBase< Type >::getHeight(), LLButton::getLabelSelected(), LLControlGroup::getS32(), LLRectBase< Type >::getWidth(), mAllowTextEntry, mArrowImageWidth, LLRectBase< Type >::mBottom, mButton, mMaxChars, LLView::mRect, LLRectBase< Type >::mRight, mTextEntry, mTextEntryTentative, LLRectBase< Type >::mTop, NULL, LLStringBase< char >::null, onTextCommit(), onTextEntry(), S32, LLUI::sConfigGroup, LLLineEditor::setCommitOnFocusLost(), LLView::setFollows(), LLView::setFollowsAll(), LLLineEditor::setHandleEditKeysDirectly(), LLLineEditor::setIgnoreTab(), setLabel(), LLView::setRect(), LLLineEditor::setSelectAllonFocusReceived(), LLUICtrl::setTabStop(), LLLineEditor::setText(), LLView::setVisible(), LLFontGL::sSansSerifSmall, LLViewBorder::STYLE_LINE, and TRUE.

Referenced by fromXML(), and LLPanelLogin::LLPanelLogin().

void LLComboBox::setButtonVisible ( BOOL  visible  ) 

Definition at line 436 of file llcombobox.cpp.

References LLRectBase< Type >::getHeight(), LLControlGroup::getS32(), LLRectBase< Type >::getWidth(), mArrowImageWidth, mButton, mDrawArrow, LLView::mRect, mTextEntry, LLLineEditor::reshape(), LLUI::sConfigGroup, LLView::setVisible(), and TRUE.

void LLComboBox::setColumnLabel ( const LLString column,
const LLString label 
) [virtual]

Implements LLCtrlListInterface.

Definition at line 1018 of file llcombobox.cpp.

References mList, and LLScrollListCtrl::setColumnLabel().

BOOL LLComboBox::setCurrentByID ( const LLUUID id  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 1045 of file llcombobox.cpp.

References LLScrollListCtrl::getSimpleSelectedItem(), mList, LLScrollListCtrl::selectByID(), and setLabel().

Referenced by LLPreviewGesture::refresh(), LLPanelGroupInvite::update(), and LLPanelGroupInvite::updateLists().

BOOL LLComboBox::setCurrentByIndex ( S32  index  ) 

Definition at line 479 of file llcombobox.cpp.

References LLScrollListCtrl::getSimpleSelectedItem(), mList, LLScrollListCtrl::selectNthItem(), and setLabel().

Referenced by LLPreviewGesture::addKeys(), LLPreviewGesture::addModifiers(), LLPanelLogin::addServer(), LLFloaterSnapshot::Impl::comboSetCustom(), LLPanelObject::getState(), LLToolsUseSelectionForGrid::handleEvent(), LLPanelClassified::initNewClassified(), LLPanelLogin::LLPanelLogin(), LLPreviewGesture::loadUIFromGesture(), LLPanelPermissions::onCommitClickAction(), LLPanelGeneral::postBuild(), LLPanelDisplay::postBuild(), LLPanelClassified::postBuild(), LLFloaterTools::postBuild(), LLPanelPermissions::refresh(), LLPanelGeneral::refresh(), LLPanelLandOptions::refresh(), LLPanelLogin::refreshLocation(), LLFloaterBuyLandUI::refreshUI(), selectFirstItem(), selectNthItem(), LLFloaterTools::updatePopup(), and LLPanelDisplay::~LLPanelDisplay().

void LLComboBox::setEnabled ( BOOL  enabled  )  [virtual]

Reimplemented from LLView.

Definition at line 222 of file llcombobox.cpp.

References mButton, and LLView::setEnabled().

Referenced by LLPanelObject::clearCtrls(), LLPanelLandOptions::draw(), LLPanelObject::getState(), LLPreviewLSL::loadAsset(), LLPanelDisplay::onCommitWindowedMode(), LLPanelDisplay::postBuild(), LLPreviewGesture::refresh(), LLPanelPermissions::refresh(), LLPanelClassified::refresh(), LLPanelLandOptions::refresh(), and LLFloaterTools::updatePopup().

void LLComboBox::setFocus ( BOOL  b  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 989 of file llcombobox.cpp.

References LLScrollListCtrl::clearSearchString(), mList, and LLUICtrl::setFocus().

void LLComboBox::setLabel ( const LLStringExplicit name  ) 

Definition at line 374 of file llcombobox.cpp.

References FALSE, mAllowTextEntry, mButton, mList, mTextEntry, mTextEntryTentative, LLScrollListCtrl::selectSimpleItem(), LLButton::setDisabledLabel(), LLButton::setDisabledSelectedLabel(), LLButton::setLabelSelected(), LLButton::setLabelUnselected(), LLUICtrl::setTentative(), and LLLineEditor::setText().

Referenced by LLScrollListCtrl::addColumn(), LLPanelDisplay::onCommitAutoDetectAspect(), LLColumnHeader::onSelectSort(), setAllowTextEntry(), setCurrentByID(), setCurrentByIndex(), setSelectedByValue(), setSimple(), and setValue().

void LLComboBox::setPrearrangeCallback ( void(*)(LLUICtrl *, void *)  cb  )  [inline]

Definition at line 168 of file llcombobox.h.

References mPrearrangeCallback.

Referenced by LLFloaterWorldMap::postBuild().

BOOL LLComboBox::setSelectedByValue ( LLSD  value,
BOOL  selected 
) [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 1061 of file llcombobox.cpp.

References LLScrollListCtrl::getSimpleSelectedItem(), mList, setLabel(), and LLScrollListCtrl::setSelectedByValue().

BOOL LLComboBox::setSimple ( const LLStringExplicit name  ) 

Definition at line 312 of file llcombobox.cpp.

References FALSE, mList, LLScrollListCtrl::selectSimpleItem(), and setLabel().

Referenced by LLScriptEdCore::addHelpItemToHistory(), LLPanelDeviceSettings::cancel(), LLPanelObject::getState(), LLPreviewGesture::loadUIFromGesture(), LLPanelDeviceSettings::refresh(), and LLPanelLandOptions::refresh().

void LLComboBox::setTextEntry ( const LLStringExplicit text  ) 

Definition at line 855 of file llcombobox.cpp.

References mTextEntry, LLLineEditor::setText(), and updateSelection().

Referenced by LLPanelLogin::LLPanelLogin(), LLPanelGeneral::postBuild(), and LLPanelLogin::refreshLocation().

void LLComboBox::setTextEntryCallback ( void(*)(LLLineEditor *, void *)  cb  )  [inline]

Definition at line 169 of file llcombobox.h.

References mTextEntryCallback.

Referenced by LLPanelDisplay::postBuild().

void LLComboBox::setValue ( const LLSD value  )  [virtual]

Reimplemented from LLView.

Definition at line 325 of file llcombobox.cpp.

References LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getSimpleSelectedItem(), mList, LLCtrlSelectionInterface::selectByValue(), and setLabel().

void LLComboBox::showList (  )  [virtual]

Reimplemented in LLColumnHeader.

Definition at line 511 of file llcombobox.cpp.

References LLScrollListCtrl::arrange(), BELOW, FALSE, LLScrollListCtrl::getFirstSelected(), LLRectBase< Type >::getHeight(), LLView::getLocalRect(), LLView::getRect(), LLView::getRootView(), LLWindow::getSize(), LLRectBase< Type >::getWidth(), LLView::getWindow(), gFocusMgr, LLView::hasMouseCapture(), llfloor(), llmin(), LLView::localPointToScreen(), LLView::localRectToOtherView(), LLRectBase< Type >::mBottom, mButton, LLRectBase< Type >::mLeft, mList, mListPosition, LLView::mRect, LLRectBase< Type >::mTop, LLVector2::mV, LLCoord::mY, LLScrollListCtrl::reshape(), S32, SCROLLBAR_SIZE, LLScrollListCtrl::selectFirstItem(), LLScrollListCtrl::setFocus(), LLRectBase< Type >::setLeftTopAndSize(), LLFocusMgr::setMouseCapture(), LLView::setOrigin(), LLRectBase< Type >::setOriginAndSize(), LLButton::setToggleState(), LLFocusMgr::setTopCtrl(), LLView::setVisible(), LLUI::sGLScaleFactor, LLView::translate(), LLView::translateIntoRect(), TRUE, VY, x, and y.

Referenced by handleKeyHere(), handleUnicodeCharHere(), and LLColumnHeader::showList().

void LLComboBox::sortByColumn ( LLString  name,
BOOL  ascending 
) [virtual]

Implements LLCtrlListInterface.

Definition at line 1038 of file llcombobox.cpp.

void LLComboBox::sortByName (  ) 

Definition at line 304 of file llcombobox.cpp.

References mList, LLScrollListCtrl::sortByColumn(), and TRUE.

Referenced by LLScriptEdCore::onBtnDynamicHelp(), and LLFloaterSettingsDebug::postBuild().

void LLComboBox::updateSelection (  ) 

Definition at line 939 of file llcombobox.cpp.

References LLScrollListCtrl::deselectAllItems(), LLLineEditor::endSelection(), FALSE, LLLineEditor::getCursor(), LLScrollListCtrl::getSimpleSelectedItem(), LLLineEditor::getText(), LLLineEditor::getWText(), LLLineEditor::hasSelection(), LLUICtrl::mCallbackUserData, mList, mPrearrangeCallback, mTextEntry, mTextEntryTentative, LLScrollListCtrl::selectSimpleItem(), LLScrollListCtrl::selectSimpleItemByPrefix(), LLLineEditor::setSelection(), LLUICtrl::setTentative(), LLLineEditor::setText(), utf8str_to_wstring(), and wstring_to_utf8str().

Referenced by LLFloaterSettingsDebug::postBuild(), and setTextEntry().


Member Data Documentation

BOOL LLComboBox::mAllowTextEntry [protected]

Definition at line 192 of file llcombobox.h.

Referenced by acceptsTextInput(), getSimple(), getValue(), getXML(), onCommit(), onFocusLost(), setAllowTextEntry(), and setLabel().

LLPointer<LLImageGL> LLComboBox::mArrowImage [protected]

Definition at line 190 of file llcombobox.h.

Referenced by LLColumnHeader::draw(), draw(), and LLComboBox().

S32 LLComboBox::mArrowImageWidth [protected]

Definition at line 191 of file llcombobox.h.

Referenced by LLComboBox(), setAllowTextEntry(), and setButtonVisible().

LLViewBorder* LLComboBox::mBorder [protected]

Definition at line 186 of file llcombobox.h.

Referenced by draw(), and LLComboBox().

LLButton* LLComboBox::mButton [protected]

Definition at line 184 of file llcombobox.h.

Referenced by clear(), draw(), hideList(), LLColumnHeader::LLColumnHeader(), LLComboBox(), setAllowTextEntry(), setButtonVisible(), setEnabled(), LLColumnHeader::setImage(), setLabel(), LLColumnHeader::showList(), and showList().

BOOL LLComboBox::mDrawArrow [protected]

Definition at line 188 of file llcombobox.h.

Referenced by LLColumnHeader::draw(), draw(), and setButtonVisible().

BOOL LLComboBox::mKeyboardFocusOnClick [protected]

Definition at line 187 of file llcombobox.h.

Referenced by LLComboBox().

LLScrollListCtrl* LLComboBox::mList [protected]

Definition at line 185 of file llcombobox.h.

Referenced by add(), addColumn(), addElement(), addSimpleElement(), clear(), clearColumns(), clearRows(), LLColumnHeader::draw(), getCurrentID(), getCurrentIndex(), getCurrentUserdata(), getItemCount(), getSimple(), getSimpleSelectedItem(), getSimpleSelectedValue(), getValue(), getXML(), handleKeyHere(), handleUnicodeCharHere(), hideList(), isDirty(), isSelected(), LLColumnHeader::LLColumnHeader(), LLComboBox(), LLColumnHeader::onClick(), operateOnSelection(), remove(), resetDirty(), setColumnLabel(), setCurrentByID(), setCurrentByIndex(), setFocus(), setLabel(), setSelectedByValue(), setSimple(), setValue(), LLColumnHeader::showList(), showList(), sortByName(), and updateSelection().

EPreferredPosition LLComboBox::mListPosition [protected]

Definition at line 195 of file llcombobox.h.

Referenced by LLColumnHeader::LLColumnHeader(), and showList().

S32 LLComboBox::mMaxChars [protected]

Definition at line 193 of file llcombobox.h.

Referenced by getXML(), and setAllowTextEntry().

void(* LLComboBox::mPrearrangeCallback)(LLUICtrl *, void *) [protected]

Referenced by setPrearrangeCallback(), and updateSelection().

LLLineEditor* LLComboBox::mTextEntry [protected]

Definition at line 189 of file llcombobox.h.

Referenced by clear(), getSimple(), getValue(), onCommit(), onFocusLost(), setAllowTextEntry(), setButtonVisible(), setLabel(), setTextEntry(), and updateSelection().

void(* LLComboBox::mTextEntryCallback)(LLLineEditor *, void *) [protected]

Referenced by setTextEntryCallback().

BOOL LLComboBox::mTextEntryTentative [protected]

Definition at line 194 of file llcombobox.h.

Referenced by setAllowTextEntry(), setLabel(), and updateSelection().


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