LLUICtrl Class Reference

#include <lluictrl.h>

Inheritance diagram for LLUICtrl:

Inheritance graph
[legend]
Collaboration diagram for LLUICtrl:

Collaboration graph
[legend]

List of all members.

Public Types

typedef void(* LLUICtrlCallback )(LLUICtrl *ctrl, void *userdata)
typedef BOOL(* LLUICtrlValidate )(LLUICtrl *ctrl, void *userdata)

Public Member Functions

 LLUICtrl ()
 LLUICtrl (const LLString &name, const LLRect &rect, BOOL mouse_opaque, LLUICtrlCallback callback, void *callback_userdata, U32 reshape=FOLLOWS_NONE)
 ~LLUICtrl ()
void initFromXML (LLXMLNodePtr node, LLView *parent)
LLXMLNodePtr getXML (bool save_children=true) const
BOOL setLabelArg (const LLString &key, const LLStringExplicit &text)
void onFocusReceived ()
void onFocusLost ()
BOOL isCtrl () const
void setTentative (BOOL b)
BOOL getTentative () const
void setFocus (BOOL b)
BOOL hasFocus () const
virtual class
LLCtrlSelectionInterface
getSelectionInterface ()
virtual class LLCtrlListInterfacegetListInterface ()
virtual class
LLCtrlScrollInterface
getScrollInterface ()
virtual LLSD getValue () const
virtual BOOL setTextArg (const LLString &key, const LLStringExplicit &text)
virtual void setIsChrome (BOOL is_chrome)
virtual BOOL acceptsTextInput () const
virtual BOOL isDirty () const
virtual void resetDirty ()
virtual void onLostTop ()
virtual void onCommit ()
virtual void onTabInto ()
virtual void clear ()
virtual void setDoubleClickCallback (void(*cb)(void *))
virtual void setColor (const LLColor4 &color)
virtual void setMinValue (LLSD min_value)
virtual void setMaxValue (LLSD max_value)
BOOL focusNextItem (BOOL text_entry_only)
BOOL focusPrevItem (BOOL text_entry_only)
BOOL focusFirstItem (BOOL prefer_text_fields=FALSE, BOOL focus_flash=TRUE)
BOOL focusLastItem (BOOL prefer_text_fields=FALSE)
BOOL getIsChrome () const
void setTabStop (BOOL b)
BOOL hasTabStop () const
class LLPanelgetParentPanel () const
class LLUICtrlgetParentUICtrl () const
void * getCallbackUserData () const
void setCallbackUserData (void *data)
void setCommitCallback (void(*cb)(LLUICtrl *, void *))
void setValidateBeforeCommit (BOOL(*cb)(LLUICtrl *, void *))
void setLostTopCallback (void(*cb)(LLUICtrl *, void *))
LLUICtrlfindRootMostFocusRoot () const

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, class LLUICtrlFactory *factory)

Protected Attributes

void(* mCommitCallback )(LLUICtrl *ctrl, void *userdata)
void(* mLostTopCallback )(LLUICtrl *ctrl, void *userdata)
BOOL(* mValidateCallback )(LLUICtrl *ctrl, void *userdata)
void * mCallbackUserData

Private Attributes

BOOL mTabStop
BOOL mIsChrome
BOOL mTentative

Classes

class  DefaultTabGroupFirstSorter
class  LLTextInputFilter


Detailed Description

Definition at line 64 of file lluictrl.h.


Member Typedef Documentation

typedef void(* LLUICtrl::LLUICtrlCallback)(LLUICtrl *ctrl, void *userdata)

typedef BOOL(* LLUICtrl::LLUICtrlValidate)(LLUICtrl *ctrl, void *userdata)


Constructor & Destructor Documentation

LLUICtrl::LLUICtrl (  ) 

Definition at line 90 of file lluictrl.cpp.

Referenced by fromXML().

Here is the caller graph for this function:

LLUICtrl::LLUICtrl ( const LLString name,
const LLRect rect,
BOOL  mouse_opaque,
LLUICtrlCallback  callback,
void *  callback_userdata,
U32  reshape = FOLLOWS_NONE 
)

LLUICtrl::~LLUICtrl (  ) 


Member Function Documentation

void LLUICtrl::initFromXML ( LLXMLNodePtr  node,
LLView parent 
) [virtual]

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

BOOL LLUICtrl::setLabelArg ( const LLString key,
const LLStringExplicit text 
) [virtual]

Reimplemented from LLView.

Reimplemented in LLButton, LLCheckBoxCtrl, LLSearchEditor, LLMultiSliderCtrl, and LLSliderCtrl.

Definition at line 156 of file lluictrl.cpp.

References FALSE.

void LLUICtrl::onFocusReceived (  )  [virtual]

void LLUICtrl::onFocusLost (  )  [virtual]

BOOL LLUICtrl::isCtrl (  )  const [virtual]

Reimplemented from LLView.

Definition at line 138 of file lluictrl.cpp.

References TRUE.

Referenced by LLFloaterView::getFocusedFloater(), and LLViewerWindow::handlePerFrameHover().

Here is the caller graph for this function:

void LLUICtrl::setTentative ( BOOL  b  )  [virtual]

BOOL LLUICtrl::getTentative (  )  const [virtual]

Reimplemented from LLView.

Reimplemented in LLCheckBoxCtrl.

Definition at line 593 of file lluictrl.cpp.

References mTentative.

Referenced by LLPanelFaceSetTEFunctor::apply(), LLTextureCtrl::draw(), LLFloaterTexturePicker::draw(), LLLineEditor::draw(), LLButton::draw(), LLCheckBoxCtrl::getTentative(), and LLPanelFace::sendTexture().

Here is the caller graph for this function:

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

BOOL LLUICtrl::hasFocus (  )  const [virtual]

LLCtrlSelectionInterface * LLUICtrl::getSelectionInterface (  )  [virtual]

Reimplemented in LLComboBox, LLRadioGroup, and LLScrollListCtrl.

Definition at line 162 of file lluictrl.cpp.

References NULL.

Referenced by LLPanel::childGetSelectionInterface(), LLPrefsVoiceLogic::init(), and LLPrefsVoiceLogic::onEarLocationCommit().

Here is the caller graph for this function:

LLCtrlListInterface * LLUICtrl::getListInterface (  )  [virtual]

Reimplemented in LLComboBox, and LLScrollListCtrl.

Definition at line 168 of file lluictrl.cpp.

References NULL.

Referenced by LLPanel::childGetListInterface().

Here is the caller graph for this function:

LLCtrlScrollInterface * LLUICtrl::getScrollInterface (  )  [virtual]

Reimplemented in LLScrollListCtrl.

Definition at line 174 of file lluictrl.cpp.

References NULL.

Referenced by LLPanel::childGetScrollInterface().

Here is the caller graph for this function:

LLSD LLUICtrl::getValue (  )  const [virtual]

BOOL LLUICtrl::setTextArg ( const LLString key,
const LLStringExplicit text 
) [virtual]

Reimplemented in LLSearchEditor, and LLTextBox.

Definition at line 150 of file lluictrl.cpp.

References FALSE.

Referenced by LLPanel::childSetTextArg().

Here is the caller graph for this function:

void LLUICtrl::setIsChrome ( BOOL  is_chrome  )  [virtual]

BOOL LLUICtrl::acceptsTextInput (  )  const [virtual]

BOOL LLUICtrl::isDirty (  )  const [virtual]

Reimplemented in LLCheckBoxCtrl, LLComboBox, LLLineEditor, LLScrollListCtrl, LLSpinCtrl, LLTextEditor, LLPanelEditWearable, LLFloaterCustomize, LLFloaterLandmark, LLFloaterTexturePicker, and LLTextureCtrl.

Definition at line 278 of file lluictrl.cpp.

References FALSE.

Referenced by LLPanelGroupGeneral::updateChanged().

Here is the caller graph for this function:

void LLUICtrl::resetDirty (  )  [virtual]

void LLUICtrl::onLostTop (  )  [virtual]

Reimplemented in LLComboBox.

Definition at line 250 of file lluictrl.cpp.

References mCallbackUserData, and mLostTopCallback.

Referenced by LLFocusMgr::setTopCtrl().

Here is the caller graph for this function:

void LLUICtrl::onCommit (  )  [virtual]

void LLUICtrl::onTabInto (  )  [virtual]

Reimplemented in LLLineEditor, LLMultiSliderCtrl, LLSliderCtrl, LLSpinCtrl, and LLTextEditor.

Definition at line 289 of file lluictrl.cpp.

Referenced by focusFirstItem(), focusLastItem(), LLView::focusNext(), and LLView::focusPrev().

Here is the caller graph for this function:

void LLUICtrl::clear ( void   )  [virtual]

void LLUICtrl::setDoubleClickCallback ( void(*)(void *)  cb  )  [virtual]

Reimplemented in LLScrollListCtrl.

Definition at line 599 of file lluictrl.cpp.

Referenced by LLPanel::childSetDoubleClickCallback(), and LLPanelGroupMembersSubTab::postBuildSubTab().

Here is the caller graph for this function:

void LLUICtrl::setColor ( const LLColor4 color  )  [virtual]

Reimplemented in LLButton, LLIconCtrl, and LLTextBox.

Definition at line 604 of file lluictrl.cpp.

Referenced by LLPanel::childSetColor(), LLGroupNotifyBox::LLGroupNotifyBox(), and LLPanelVolume::onLightCancelColor().

Here is the caller graph for this function:

void LLUICtrl::setMinValue ( LLSD  min_value  )  [virtual]

Reimplemented in LLMultiSlider, LLMultiSliderCtrl, LLSlider, LLSliderCtrl, and LLSpinCtrl.

Definition at line 608 of file lluictrl.cpp.

Referenced by LLPanel::childSetMinValue().

Here is the caller graph for this function:

void LLUICtrl::setMaxValue ( LLSD  max_value  )  [virtual]

Reimplemented in LLMultiSlider, LLMultiSliderCtrl, LLSlider, LLSliderCtrl, and LLSpinCtrl.

Definition at line 612 of file lluictrl.cpp.

Referenced by LLPanel::childSetMaxValue().

Here is the caller graph for this function:

BOOL LLUICtrl::focusNextItem ( BOOL  text_entry_only  ) 

Definition at line 454 of file lluictrl.cpp.

References LLViewQuery::addPreFilter(), LLView::focusNext(), LLSingleton< T >::getInstance(), LLView::getTabOrderQuery(), and LLUI::sConfigGroup.

Referenced by LLPanel::handleKeyHere(), and LLAlertDialog::handleKeyHere().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLUICtrl::focusPrevItem ( BOOL  text_entry_only  ) 

Definition at line 466 of file lluictrl.cpp.

References LLViewQuery::addPreFilter(), LLView::focusPrev(), LLSingleton< T >::getInstance(), LLView::getTabOrderQuery(), and LLUI::sConfigGroup.

Referenced by LLPanel::handleKeyHere(), and LLAlertDialog::handleKeyHere().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLUICtrl::focusFirstItem ( BOOL  prefer_text_fields = FALSE,
BOOL  focus_flash = TRUE 
)

BOOL LLUICtrl::focusLastItem ( BOOL  prefer_text_fields = FALSE  ) 

BOOL LLUICtrl::getIsChrome (  )  const

Definition at line 305 of file lluictrl.cpp.

References LLView::getParent(), LLView::isCtrl(), and mIsChrome.

Referenced by LLFloater::draw(), LLSlider::handleMouseDown(), LLMultiSlider::handleMouseDown(), LLButton::handleMouseDown(), LLViewerWindow::handlePerFrameHover(), LLFloater::initFloater(), and LLFloater::setFocus().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLUICtrl::setTabStop ( BOOL  b  ) 

BOOL LLUICtrl::hasTabStop (  )  const

Definition at line 266 of file lluictrl.cpp.

References mTabStop.

Referenced by getXML(), LLViewerTextEditor::handleMouseDown(), LLTextEditor::handleMouseDown(), LLButton::handleMouseDown(), LLViewerWindow::handlePerFrameHover(), and initFromXML().

Here is the caller graph for this function:

LLPanel * LLUICtrl::getParentPanel (  )  const

Definition at line 556 of file lluictrl.cpp.

References LLView::getParent().

Here is the call graph for this function:

LLUICtrl * LLUICtrl::getParentUICtrl (  )  const

Definition at line 569 of file lluictrl.cpp.

References LLView::getParent(), LLView::isCtrl(), and NULL.

Referenced by findRootMostFocusRoot(), and LLViewerWindow::handlePerFrameHover().

Here is the call graph for this function:

Here is the caller graph for this function:

void* LLUICtrl::getCallbackUserData (  )  const [inline]

Definition at line 137 of file lluictrl.h.

References mCallbackUserData.

Referenced by LLPanelGroupSubTab::buildActionCategory(), and LLScrollListCtrl::onClickColumn().

Here is the caller graph for this function:

void LLUICtrl::setCallbackUserData ( void *  data  )  [inline]

Reimplemented in LLTextBox.

Definition at line 138 of file lluictrl.h.

References mCallbackUserData.

Referenced by LLTabContainer::addTabPanel(), LLPanelGroupSubTab::buildActionCategory(), LLPanel::childSetCommitCallback(), LLPanel::childSetDoubleClickCallback(), LLPanel::childSetKeystrokeCallback(), LLPanel::childSetUserData(), LLPanelGroupMembersSubTab::handleMemberSelect(), LLColumnHeader::LLColumnHeader(), LLJoystick::LLJoystick(), LLVoiceRemoteCtrl::postBuild(), LLPreviewGesture::postBuild(), LLPanelPlace::postBuild(), LLPanelPick::postBuild(), LLPanelObject::postBuild(), LLPanelLandMedia::postBuild(), LLPanelGroupVoting::postBuild(), LLPanelGroupSubTab::postBuild(), LLPanelGroupNotices::postBuild(), LLPanelGroupLandMoney::postBuild(), LLPanelGroupInvite::postBuild(), LLPanelGroupGeneral::postBuild(), LLPanelGroup::postBuild(), LLPanelGroupTab::postBuild(), LLPanelFace::postBuild(), LLPanelEvent::postBuild(), LLPanelDisplay::postBuild(), LLPanelClassified::postBuild(), LLFloaterIMPanel::postBuild(), LLFloaterSettingsDebug::postBuild(), LLFloaterNewIM::postBuild(), LLPanelLandOptions::postBuild(), LLFloaterMediaBrowser::postBuild(), LLFloaterColorPicker::postBuild(), LLFloaterAnimPreview::postBuild(), LLPanelActiveSpeakers::postBuild(), LLChatBar::postBuild(), LLPanelGroupActionsSubTab::postBuildSubTab(), LLPanelGroupRolesSubTab::postBuildSubTab(), LLPanelGroupMembersSubTab::postBuildSubTab(), LLCurrencyUIManager::Impl::prepare(), LLChatBar::setGestureCombo(), LLDebugVarMessageBox::show(), and LLFloaterBuyLandUI::updateCovenantInfo().

Here is the caller graph for this function:

void LLUICtrl::setCommitCallback ( void(*)(LLUICtrl *, void *)  cb  )  [inline]

void LLUICtrl::setValidateBeforeCommit ( BOOL(*)(LLUICtrl *, void *)  cb  )  [inline]

Definition at line 141 of file lluictrl.h.

References mValidateCallback.

Referenced by LLPanel::childSetValidate(), and LLPanelObject::postBuild().

Here is the caller graph for this function:

void LLUICtrl::setLostTopCallback ( void(*)(LLUICtrl *, void *)  cb  )  [inline]

Definition at line 142 of file lluictrl.h.

References mLostTopCallback.

Referenced by LLFolderView::startRenamingSelectedItem().

Here is the caller graph for this function:

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

LLUICtrl * LLUICtrl::findRootMostFocusRoot (  )  const

Definition at line 478 of file lluictrl.cpp.

References getParentUICtrl(), LLView::isFocusRoot(), and NULL.

Referenced by LLWebBrowserCtrl::draw(), LLPanel::handleKeyHere(), and LLViewerWindow::handlePerFrameHover().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

void(* LLUICtrl::mCommitCallback)(LLUICtrl *ctrl, void *userdata) [protected]

Reimplemented in LLWearableSaveAsDialog, and LLMakeOutfitDialog.

Referenced by onCommit(), and setCommitCallback().

void(* LLUICtrl::mLostTopCallback)(LLUICtrl *ctrl, void *userdata) [protected]

Referenced by onLostTop(), and setLostTopCallback().

BOOL(* LLUICtrl::mValidateCallback)(LLUICtrl *ctrl, void *userdata) [protected]

Referenced by setValidateBeforeCommit().

void* LLUICtrl::mCallbackUserData [protected]

Definition at line 166 of file lluictrl.h.

Referenced by hasTabStop(), and setTabStop().

Definition at line 167 of file lluictrl.h.

Referenced by getIsChrome(), and setIsChrome().

Definition at line 168 of file lluictrl.h.

Referenced by getTentative(), and setTentative().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:19:37 2008 for SecondLife by  doxygen 1.5.5