LLTextureCtrl Class Reference

#include <lltexturectrl.h>

Inheritance diagram for LLTextureCtrl:

Inheritance graph
[legend]
Collaboration diagram for LLTextureCtrl:

Collaboration graph
[legend]

List of all members.

Public Types

enum  e_texture_pick_op { TEXTURE_CHANGE, TEXTURE_SELECT, TEXTURE_CANCEL }
typedef enum
LLTextureCtrl::e_texture_pick_op 
ETexturePickOp

Public Member Functions

 LLTextureCtrl (const std::string &name, const LLRect &rect, const std::string &label, const LLUUID &image_id, const LLUUID &default_image_id, const std::string &default_image_name)
virtual ~LLTextureCtrl ()
virtual LLXMLNodePtr getXML (bool save_children=true) const
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleUnicodeCharHere (llwchar uni_char)
virtual void draw ()
virtual void setVisible (BOOL visible)
virtual void setEnabled (BOOL enabled)
virtual BOOL isDirty () const
virtual void resetDirty ()
void setValid (BOOL valid)
virtual void clear ()
virtual void setValue (const LLSD &value)
virtual LLSD getValue () const
void showPicker (BOOL take_focus)
void setLabel (const LLString &label)
const LLStringgetLabel () const
void setAllowNoTexture (BOOL b)
bool getAllowNoTexture () const
const LLUUIDgetImageItemID ()
void setImageAssetID (const LLUUID &image_asset_id)
const LLUUIDgetImageAssetID () const
void setDefaultImageAssetID (const LLUUID &id)
const LLStringgetDefaultImageName () const
const LLUUIDgetDefaultImageAssetID () const
void setCaption (const LLString &caption)
void setCanApplyImmediately (BOOL b)
void setImmediateFilterPermMask (PermissionMask mask)
void setNonImmediateFilterPermMask (PermissionMask mask)
PermissionMask getImmediateFilterPermMask ()
PermissionMask getNonImmediateFilterPermMask ()
void closeFloater ()
void onFloaterClose ()
void onFloaterCommit (ETexturePickOp op)
void setDragCallback (drag_n_drop_callback cb)
void setDropCallback (drag_n_drop_callback cb)
void setOnCancelCallback (LLUICtrlCallback cb)
void setOnSelectCallback (LLUICtrlCallback cb)

Static Public Member Functions

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

Private Member Functions

BOOL allowDrop (LLInventoryItem *item)
BOOL doDrop (LLInventoryItem *item)

Private Attributes

drag_n_drop_callback mDragCallback
drag_n_drop_callback mDropCallback
LLUICtrlCallback mOnCancelCallback
LLUICtrlCallback mOnSelectCallback
LLPointer< LLViewerImagemTexturep
LLColor4 mBorderColor
LLUUID mImageItemID
LLUUID mImageAssetID
LLUUID mDefaultImageAssetID
LLString mDefaultImageName
LLHandle< LLFloatermFloaterHandle
LLTextBoxmTentativeLabel
LLTextBoxmCaption
LLString mLabel
BOOL mAllowNoTexture
LLCoordGL mLastFloaterLeftTop
PermissionMask mImmediateFilterPermMask
PermissionMask mNonImmediateFilterPermMask
BOOL mCanApplyImmediately
BOOL mNeedsRawImageData
LLViewBordermBorder
BOOL mValid
BOOL mDirty


Detailed Description

Definition at line 56 of file lltexturectrl.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
TEXTURE_CHANGE 
TEXTURE_SELECT 
TEXTURE_CANCEL 

Definition at line 60 of file lltexturectrl.h.


Constructor & Destructor Documentation

LLTextureCtrl::LLTextureCtrl ( const std::string &  name,
const LLRect rect,
const std::string &  label,
const LLUUID image_id,
const LLUUID default_image_id,
const std::string &  default_image_name 
)

LLTextureCtrl::~LLTextureCtrl (  )  [virtual]

Definition at line 945 of file lltexturectrl.cpp.

References closeFloater().

Here is the call graph for this function:


Member Function Documentation

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

Reimplemented from LLUICtrl.

Definition at line 951 of file lltexturectrl.cpp.

References getDefaultImageName(), getLabel(), LLUICtrl::getXML(), mAllowNoTexture, mCanApplyImmediately, and TRUE.

Here is the call graph for this function:

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

Reimplemented from LLUICtrl.

Definition at line 966 of file lltexturectrl.cpp.

References LLView::createRect(), FALSE, LLUICtrl::initFromXML(), LLTextureCtrl(), setAllowNoTexture(), and setCanApplyImmediately().

Here is the call graph for this function:

BOOL LLTextureCtrl::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLTextureCtrl::handleDragAndDrop ( S32  x,
S32  y,
MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void *  cargo_data,
EAcceptance accept,
LLString tooltip_msg 
) [virtual]

Reimplemented from LLView.

Definition at line 1243 of file lltexturectrl.cpp.

References ACCEPT_NO, ACCEPT_YES_SINGLE, allowDrop(), DAD_TEXTURE, doDrop(), FALSE, LLView::getEnabled(), LLView::getName(), lldebugst, llendl, LLUICtrl::onCommit(), LLUICtrl::setTentative(), and TRUE.

Here is the call graph for this function:

BOOL LLTextureCtrl::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1163 of file lltexturectrl.cpp.

References LLView::getWindow(), LLWindow::setCursor(), TRUE, and UI_CURSOR_HAND.

Here is the call graph for this function:

BOOL LLTextureCtrl::handleUnicodeCharHere ( llwchar  uni_char  )  [virtual]

Reimplemented from LLView.

Definition at line 1373 of file lltexturectrl.cpp.

References LLView::handleUnicodeCharHere(), showPicker(), and TRUE.

Here is the call graph for this function:

void LLTextureCtrl::draw ( void   )  [virtual]

void LLTextureCtrl::setVisible ( BOOL  visible  )  [virtual]

Reimplemented from LLView.

Definition at line 1027 of file lltexturectrl.cpp.

References closeFloater(), and LLView::setVisible().

Referenced by LLPanelObject::getState().

Here is the call graph for this function:

Here is the caller graph for this function:

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

BOOL LLTextureCtrl::isDirty (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 1077 of file lltexturectrl.cpp.

References mDirty.

Referenced by LLPanelClassified::checkDirty().

Here is the caller graph for this function:

void LLTextureCtrl::resetDirty (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 1083 of file lltexturectrl.cpp.

References FALSE, and mDirty.

Referenced by LLPanelClassified::resetDirty().

Here is the caller graph for this function:

void LLTextureCtrl::setValid ( BOOL  valid  ) 

Definition at line 1063 of file lltexturectrl.cpp.

References FALSE, LLHandle< T >::get(), mFloaterHandle, mValid, and LLFloaterTexturePicker::setActive().

Here is the call graph for this function:

void LLTextureCtrl::clear ( void   )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 1090 of file lltexturectrl.cpp.

References LLUUID::null, and setImageAssetID().

Here is the call graph for this function:

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

Reimplemented from LLView.

Definition at line 1383 of file lltexturectrl.cpp.

References LLSD::asUUID(), and setImageAssetID().

Here is the call graph for this function:

LLSD LLTextureCtrl::getValue (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 1388 of file lltexturectrl.cpp.

References getImageAssetID().

Here is the call graph for this function:

void LLTextureCtrl::showPicker ( BOOL  take_focus  ) 

void LLTextureCtrl::setLabel ( const LLString label  ) 

Definition at line 1095 of file lltexturectrl.cpp.

References mCaption, mLabel, and LLTextBox::setText().

Here is the call graph for this function:

const LLString& LLTextureCtrl::getLabel ( void   )  const [inline]

Definition at line 107 of file lltexturectrl.h.

References mLabel.

Referenced by getXML().

Here is the caller graph for this function:

void LLTextureCtrl::setAllowNoTexture ( BOOL  b  )  [inline]

Definition at line 109 of file lltexturectrl.h.

References mAllowNoTexture.

Referenced by LLPanelEditWearable::addTextureDropTarget(), fromXML(), LLPanelLandMedia::postBuild(), and LLPanelLandOptions::postBuild().

Here is the caller graph for this function:

bool LLTextureCtrl::getAllowNoTexture (  )  const [inline]

Definition at line 110 of file lltexturectrl.h.

References mAllowNoTexture.

Referenced by LLFloaterTexturePicker::draw().

Here is the caller graph for this function:

const LLUUID& LLTextureCtrl::getImageItemID (  )  [inline]

Definition at line 112 of file lltexturectrl.h.

References mImageItemID.

Referenced by LLPanelFace::sendTexture().

Here is the caller graph for this function:

void LLTextureCtrl::setImageAssetID ( const LLUUID image_asset_id  ) 

const LLUUID& LLTextureCtrl::getImageAssetID (  )  const [inline]

void LLTextureCtrl::setDefaultImageAssetID ( const LLUUID id  )  [inline]

Definition at line 117 of file lltexturectrl.h.

References mDefaultImageAssetID.

Referenced by LLPanelEditWearable::addTextureDropTarget(), LLFloaterWater::initCallbacks(), LLPanelObject::postBuild(), and LLPanelFace::postBuild().

Here is the caller graph for this function:

const LLString& LLTextureCtrl::getDefaultImageName (  )  const [inline]

Definition at line 119 of file lltexturectrl.h.

References mDefaultImageName.

Referenced by getXML().

Here is the caller graph for this function:

const LLUUID& LLTextureCtrl::getDefaultImageAssetID (  )  const [inline]

Definition at line 120 of file lltexturectrl.h.

References mDefaultImageAssetID.

Referenced by LLFloaterTexturePicker::draw().

Here is the caller graph for this function:

void LLTextureCtrl::setCaption ( const LLString caption  ) 

Definition at line 1012 of file lltexturectrl.cpp.

References mCaption, and LLTextBox::setText().

Here is the call graph for this function:

void LLTextureCtrl::setCanApplyImmediately ( BOOL  b  ) 

Definition at line 1017 of file lltexturectrl.cpp.

References LLHandle< T >::get(), mCanApplyImmediately, mFloaterHandle, and LLFloaterTexturePicker::setCanApplyImmediately().

Referenced by fromXML(), LLPanelFace::getState(), LLPanelObject::postBuild(), and LLPanelFace::postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextureCtrl::setImmediateFilterPermMask ( PermissionMask  mask  )  [inline]

void LLTextureCtrl::setNonImmediateFilterPermMask ( PermissionMask  mask  )  [inline]

PermissionMask LLTextureCtrl::getImmediateFilterPermMask (  )  [inline]

Definition at line 129 of file lltexturectrl.h.

References mImmediateFilterPermMask.

PermissionMask LLTextureCtrl::getNonImmediateFilterPermMask (  )  [inline]

Definition at line 130 of file lltexturectrl.h.

References mNonImmediateFilterPermMask.

void LLTextureCtrl::closeFloater (  ) 

Definition at line 1139 of file lltexturectrl.cpp.

References LLFloater::close(), LLHandle< T >::get(), mFloaterHandle, NULL, and LLFloaterTexturePicker::setOwner().

Referenced by setEnabled(), setVisible(), and ~LLTextureCtrl().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextureCtrl::onFloaterClose (  ) 

Definition at line 1185 of file lltexturectrl.cpp.

References LLHandle< T >::get(), LLView::getRect(), LLHandle< T >::markDead(), mFloaterHandle, mLastFloaterLeftTop, LLRectBase< Type >::mLeft, LLRectBase< Type >::mTop, NULL, LLCoord::set(), and LLFloaterTexturePicker::setOwner().

Referenced by LLFloaterTexturePicker::onClose().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextureCtrl::onFloaterCommit ( ETexturePickOp  op  ) 

void LLTextureCtrl::setDragCallback ( drag_n_drop_callback  cb  )  [inline]

Definition at line 139 of file lltexturectrl.h.

References mDragCallback.

Referenced by LLPanelFace::postBuild().

Here is the caller graph for this function:

void LLTextureCtrl::setDropCallback ( drag_n_drop_callback  cb  )  [inline]

Definition at line 144 of file lltexturectrl.h.

References mDropCallback.

Referenced by LLPanelObject::postBuild().

Here is the caller graph for this function:

void LLTextureCtrl::setOnCancelCallback ( LLUICtrlCallback  cb  )  [inline]

Definition at line 146 of file lltexturectrl.h.

References mOnCancelCallback.

Referenced by LLPanelObject::postBuild(), and LLPanelFace::postBuild().

Here is the caller graph for this function:

void LLTextureCtrl::setOnSelectCallback ( LLUICtrlCallback  cb  )  [inline]

Definition at line 148 of file lltexturectrl.h.

References mOnSelectCallback.

Referenced by LLPanelObject::postBuild(), and LLPanelFace::postBuild().

Here is the caller graph for this function:

BOOL LLTextureCtrl::allowDrop ( LLInventoryItem item  )  [private]

BOOL LLTextureCtrl::doDrop ( LLInventoryItem item  )  [private]

Definition at line 1357 of file lltexturectrl.cpp.

References LLInventoryItem::getAssetUUID(), LLInventoryObject::getUUID(), LLUICtrl::mCallbackUserData, mDropCallback, mImageItemID, setImageAssetID(), and TRUE.

Referenced by handleDragAndDrop().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 155 of file lltexturectrl.h.

Referenced by allowDrop(), and setDragCallback().

Definition at line 156 of file lltexturectrl.h.

Referenced by doDrop(), and setDropCallback().

Definition at line 157 of file lltexturectrl.h.

Referenced by onFloaterCommit(), and setOnCancelCallback().

Definition at line 158 of file lltexturectrl.h.

Referenced by onFloaterCommit(), and setOnSelectCallback().

Definition at line 159 of file lltexturectrl.h.

Referenced by draw().

Definition at line 160 of file lltexturectrl.h.

Referenced by draw().

Definition at line 161 of file lltexturectrl.h.

Referenced by doDrop(), getImageItemID(), onFloaterCommit(), and setImageAssetID().

Definition at line 162 of file lltexturectrl.h.

Referenced by draw(), getImageAssetID(), onFloaterCommit(), and setImageAssetID().

Definition at line 163 of file lltexturectrl.h.

Referenced by getDefaultImageAssetID(), and setDefaultImageAssetID().

Definition at line 164 of file lltexturectrl.h.

Referenced by getDefaultImageName().

Definition at line 166 of file lltexturectrl.h.

Referenced by draw(), and LLTextureCtrl().

Definition at line 167 of file lltexturectrl.h.

Referenced by LLTextureCtrl(), setCaption(), setEnabled(), and setLabel().

Definition at line 168 of file lltexturectrl.h.

Referenced by getLabel(), setLabel(), and showPicker().

Definition at line 169 of file lltexturectrl.h.

Referenced by getAllowNoTexture(), getXML(), and setAllowNoTexture().

Definition at line 170 of file lltexturectrl.h.

Referenced by onFloaterClose(), and showPicker().

Definition at line 173 of file lltexturectrl.h.

Referenced by getXML(), setCanApplyImmediately(), and showPicker().

Definition at line 174 of file lltexturectrl.h.

Definition at line 175 of file lltexturectrl.h.

Referenced by draw(), and LLTextureCtrl().

Definition at line 176 of file lltexturectrl.h.

Referenced by draw(), and setValid().

Definition at line 177 of file lltexturectrl.h.

Referenced by isDirty(), onFloaterCommit(), and resetDirty().


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

Generated on Fri May 16 09:14:36 2008 for SecondLife by  doxygen 1.5.5