LLFloaterTexturePicker Class Reference

Inheritance diagram for LLFloaterTexturePicker:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterTexturePicker:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFloaterTexturePicker (LLTextureCtrl *owner, const LLRect &rect, const std::string &label, PermissionMask immediate_filter_perm_mask, PermissionMask non_immediate_filter_perm_mask, BOOL can_apply_immediately)
virtual ~LLFloaterTexturePicker ()
virtual BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
virtual void draw ()
virtual BOOL handleKeyHere (KEY key, MASK mask)
virtual void onClose (bool app_quitting)
virtual BOOL postBuild ()
void setImageID (const LLUUID &image_asset_id)
void updateImageStats ()
const LLUUIDgetAssetID ()
const LLUUIDfindItemID (const LLUUID &asset_id, BOOL copyable_only)
void setCanApplyImmediately (BOOL b)
void setDirty (BOOL b)
BOOL isDirty () const
void setActive (BOOL active)
LLTextureCtrlgetOwner () const
void setOwner (LLTextureCtrl *owner)
void stopUsingPipette ()
PermissionMask getFilterPermMask ()
void updateFilterPermMask ()
void commitIfImmediateSet ()

Static Public Member Functions

static void onBtnSetToDefault (void *userdata)
static void onBtnSelect (void *userdata)
static void onBtnCancel (void *userdata)
static void onBtnPipette (void *userdata)
static void onBtnWhite (void *userdata)
static void onBtnNone (void *userdata)
static void onBtnClear (void *userdata)
static void onSelectionChange (const std::deque< LLFolderViewItem * > &items, BOOL user_action, void *data)
static void onShowFolders (LLUICtrl *ctrl, void *userdata)
static void onApplyImmediateCheck (LLUICtrl *ctrl, void *userdata)
static void onSearchEdit (const LLString &search_string, void *user_data)
static void onTextureSelect (const LLTextureEntry &te, void *data)

Protected Attributes

LLPointer< LLViewerImagemTexturep
LLTextureCtrlmOwner
LLUUID mImageAssetID
LLUUID mWhiteImageAssetID
LLUUID mSpecialCurrentImageAssetID
LLUUID mOriginalImageAssetID
std::string mLabel
LLTextBoxmTentativeLabel
LLTextBoxmResolutionLabel
LLString mPendingName
BOOL mIsDirty
BOOL mActive
LLSearchEditormSearchEdit
LLInventoryPanelmInventoryPanel
PermissionMask mImmediateFilterPermMask
PermissionMask mNonImmediateFilterPermMask
BOOL mCanApplyImmediately
BOOL mNoCopyTextureSelected
F32 mContextConeOpacity
LLSaveFolderState mSavedFolderState


Detailed Description

Definition at line 104 of file lltexturectrl.cpp.


Constructor & Destructor Documentation

LLFloaterTexturePicker::LLFloaterTexturePicker ( LLTextureCtrl owner,
const LLRect rect,
const std::string &  label,
PermissionMask  immediate_filter_perm_mask,
PermissionMask  non_immediate_filter_perm_mask,
BOOL  can_apply_immediately 
)

LLFloaterTexturePicker::~LLFloaterTexturePicker (  )  [virtual]

Definition at line 284 of file lltexturectrl.cpp.


Member Function Documentation

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

void LLFloaterTexturePicker::draw ( void   )  [virtual]

Reimplemented from LLFloater.

Definition at line 475 of file lltexturectrl.cpp.

References LLGLImmediate::begin(), LLColor4::black, LLViewerImage::BOOST_PREVIEW, BORDER_PAD, LLFocusMgr::childHasKeyboardFocus(), LLFocusMgr::childHasMouseCapture(), LLPanel::childSetEnabled(), LLPanel::childSetValue(), LLGLImmediate::color4f(), CONTEXT_CONE_IN_ALPHA, CONTEXT_CONE_OUT_ALPHA, CONTEXT_FADE_TIME, LLFloater::draw(), LLView::drawChild(), LLGLImmediate::end(), FALSE, FOOTER_HEIGHT, LLTextureCtrl::getAllowNoTexture(), LLTextureCtrl::getDefaultImageAssetID(), LLFloater::getDragHandle(), LLControlGroup::getF32(), LLInventoryPanel::getFilterSubString(), LLRectBase< Type >::getHeight(), LLViewerImageList::getImage(), LLSingleton< LLToolPipette >::getInstance(), LLSingleton< LLToolMgr >::getInstance(), LLCriticalDamp::getInterpolant(), LLView::getLocalRect(), LLView::getRect(), LLUICtrl::getTentative(), LLRectBase< Type >::getWidth(), gFocusMgr, gGL, gImageList, gl_draw_scaled_image(), gl_draw_x(), gl_rect_2d(), gl_rect_2d_checkerboard(), LLColor4::grey, gSavedSettings, HPAD, IMMEDIATE_NO, LLView::isInVisibleChain(), LLFloater::isMinimized(), LLUUID::isNull(), lerp(), LLFLOATER_HEADER_SIZE, LLView::localRectToOtherView(), mActive, LLRectBase< Type >::mBottom, mCanApplyImmediately, mContextConeOpacity, mImageAssetID, mInventoryPanel, MIPMAP_YES, mIsDirty, LLRectBase< Type >::mLeft, mNoCopyTextureSelected, mOwner, LLRectBase< Type >::mRight, mSearchEdit, mTentativeLabel, mTexturep, LLRectBase< Type >::mTop, mWhiteImageAssetID, LLUUID::notNull(), NULL, LLVertexBuffer::QUADS, LLSearchEditor::setText(), LLView::setVisible(), LLRectBase< Type >::stretch(), TEX_PICKER_MIN_HEIGHT, TEX_PICKER_MIN_WIDTH, TEXTURE_INVENTORY_PADDING, TRUE, updateImageStats(), and LLGLImmediate::vertex2i().

Here is the call graph for this function:

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

void LLFloaterTexturePicker::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 449 of file lltexturectrl.cpp.

References LLFloater::destroy(), mOwner, LLTextureCtrl::onFloaterClose(), and stopUsingPipette().

Here is the call graph for this function:

BOOL LLFloaterTexturePicker::postBuild ( void   )  [virtual]

Reimplemented from LLPanel.

Definition at line 460 of file lltexturectrl.cpp.

References LLPanel::getString(), mLabel, LLPanel::postBuild(), LLFloater::setTitle(), and TRUE.

Here is the call graph for this function:

void LLFloaterTexturePicker::setImageID ( const LLUUID image_asset_id  ) 

void LLFloaterTexturePicker::updateImageStats (  ) 

Definition at line 341 of file lltexturectrl.cpp.

References llformat(), mResolutionLabel, mTexturep, LLPointer< Type >::notNull(), and LLTextBox::setTextArg().

Referenced by draw().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLUUID& LLFloaterTexturePicker::getAssetID (  )  [inline]

Definition at line 131 of file lltexturectrl.cpp.

References mImageAssetID.

Referenced by LLTextureCtrl::onFloaterCommit().

Here is the caller graph for this function:

const LLUUID & LLFloaterTexturePicker::findItemID ( const LLUUID asset_id,
BOOL  copyable_only 
)

void LLFloaterTexturePicker::setCanApplyImmediately ( BOOL  b  ) 

Definition at line 323 of file lltexturectrl.cpp.

References LLPanel::childSetValue(), FALSE, mCanApplyImmediately, and updateFilterPermMask().

Referenced by LLTextureCtrl::setCanApplyImmediately().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterTexturePicker::setDirty ( BOOL  b  )  [inline]

Definition at line 135 of file lltexturectrl.cpp.

References mIsDirty.

Referenced by LLTextureCtrl::setImageAssetID().

Here is the caller graph for this function:

BOOL LLFloaterTexturePicker::isDirty (  )  const [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 136 of file lltexturectrl.cpp.

References mIsDirty.

Referenced by LLTextureCtrl::onFloaterCommit().

Here is the caller graph for this function:

void LLFloaterTexturePicker::setActive ( BOOL  active  ) 

Definition at line 314 of file lltexturectrl.cpp.

References LLPanel::childGetValue(), mActive, and stopUsingPipette().

Referenced by LLTextureCtrl::setEnabled(), and LLTextureCtrl::setValid().

Here is the call graph for this function:

Here is the caller graph for this function:

LLTextureCtrl* LLFloaterTexturePicker::getOwner (  )  const [inline]

Definition at line 139 of file lltexturectrl.cpp.

References mOwner.

void LLFloaterTexturePicker::setOwner ( LLTextureCtrl owner  )  [inline]

Definition at line 140 of file lltexturectrl.cpp.

References mOwner.

Referenced by LLTextureCtrl::closeFloater(), and LLTextureCtrl::onFloaterClose().

Here is the caller graph for this function:

void LLFloaterTexturePicker::stopUsingPipette (  ) 

Definition at line 333 of file lltexturectrl.cpp.

References LLToolMgr::clearTransientTool(), LLSingleton< LLToolPipette >::getInstance(), and LLSingleton< LLToolMgr >::getInstance().

Referenced by onClose(), and setActive().

Here is the call graph for this function:

Here is the caller graph for this function:

PermissionMask LLFloaterTexturePicker::getFilterPermMask (  ) 

Definition at line 658 of file lltexturectrl.cpp.

References LLSD::asBoolean(), LLPanel::childGetValue(), mImmediateFilterPermMask, and mNonImmediateFilterPermMask.

Here is the call graph for this function:

void LLFloaterTexturePicker::updateFilterPermMask (  ) 

Definition at line 813 of file lltexturectrl.cpp.

Referenced by LLFloaterTexturePicker(), onApplyImmediateCheck(), and setCanApplyImmediately().

Here is the caller graph for this function:

void LLFloaterTexturePicker::commitIfImmediateSet (  ) 

Definition at line 664 of file lltexturectrl.cpp.

References LLSD::asBoolean(), LLPanel::childGetValue(), mNoCopyTextureSelected, mOwner, LLTextureCtrl::onFloaterCommit(), and LLTextureCtrl::TEXTURE_CHANGE.

Referenced by handleDragAndDrop(), handleKeyHere(), and onApplyImmediateCheck().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterTexturePicker::onBtnSetToDefault ( void *  userdata  )  [static]

Definition at line 674 of file lltexturectrl.cpp.

Referenced by LLFloaterTexturePicker().

Here is the caller graph for this function:

void LLFloaterTexturePicker::onBtnSelect ( void *  userdata  )  [static]

Definition at line 727 of file lltexturectrl.cpp.

References LLTextureCtrl::TEXTURE_SELECT.

Referenced by LLFloaterTexturePicker().

Here is the caller graph for this function:

void LLFloaterTexturePicker::onBtnCancel ( void *  userdata  )  [static]

Definition at line 714 of file lltexturectrl.cpp.

References FALSE, and LLTextureCtrl::TEXTURE_CANCEL.

Referenced by LLFloaterTexturePicker().

Here is the caller graph for this function:

void LLFloaterTexturePicker::onBtnPipette ( void *  userdata  )  [static]

Definition at line 738 of file lltexturectrl.cpp.

References LLToolMgr::clearTransientTool(), LLSingleton< LLToolMgr >::getInstance(), LLSingleton< LLToolPipette >::getInstance(), onTextureSelect(), LLToolPipette::setSelectCallback(), and LLToolMgr::setTransientTool().

Referenced by LLFloaterTexturePicker().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterTexturePicker::onBtnWhite ( void *  userdata  )  [static]

Definition at line 685 of file lltexturectrl.cpp.

Referenced by LLFloaterTexturePicker().

Here is the caller graph for this function:

void LLFloaterTexturePicker::onBtnNone ( void *  userdata  )  [static]

Definition at line 694 of file lltexturectrl.cpp.

References LLUUID::null.

Referenced by LLFloaterTexturePicker().

Here is the caller graph for this function:

static void LLFloaterTexturePicker::onBtnClear ( void *  userdata  )  [static]

void LLFloaterTexturePicker::onSelectionChange ( const std::deque< LLFolderViewItem * > &  items,
BOOL  user_action,
void *  data 
) [static]

void LLFloaterTexturePicker::onShowFolders ( LLUICtrl ctrl,
void *  userdata 
) [static]

Definition at line 786 of file lltexturectrl.cpp.

References LLCheckBoxCtrl::get(), mInventoryPanel, LLInventoryPanel::setShowFolderState(), LLInventoryFilter::SHOW_NO_FOLDERS, and LLInventoryFilter::SHOW_NON_EMPTY_FOLDERS.

Referenced by LLFloaterTexturePicker().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterTexturePicker::onApplyImmediateCheck ( LLUICtrl ctrl,
void *  userdata 
) [static]

Definition at line 802 of file lltexturectrl.cpp.

References commitIfImmediateSet(), LLCheckBoxCtrl::get(), gSavedSettings, LLControlGroup::setBOOL(), and updateFilterPermMask().

Referenced by LLFloaterTexturePicker().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterTexturePicker::onSearchEdit ( const LLString search_string,
void *  user_data 
) [static]

void LLFloaterTexturePicker::onTextureSelect ( const LLTextureEntry te,
void *  data 
) [static]


Member Data Documentation

Definition at line 162 of file lltexturectrl.cpp.

Referenced by draw(), and updateImageStats().

Definition at line 163 of file lltexturectrl.cpp.

Referenced by commitIfImmediateSet(), draw(), getOwner(), onClose(), and setOwner().

Definition at line 165 of file lltexturectrl.cpp.

Referenced by draw(), getAssetID(), LLFloaterTexturePicker(), and setImageID().

Definition at line 167 of file lltexturectrl.cpp.

Referenced by draw().

Definition at line 168 of file lltexturectrl.cpp.

Definition at line 169 of file lltexturectrl.cpp.

std::string LLFloaterTexturePicker::mLabel [protected]

Reimplemented from LLPanel.

Definition at line 171 of file lltexturectrl.cpp.

Referenced by postBuild().

Definition at line 173 of file lltexturectrl.cpp.

Referenced by draw(), and LLFloaterTexturePicker().

Definition at line 174 of file lltexturectrl.cpp.

Referenced by LLFloaterTexturePicker(), and updateImageStats().

Definition at line 176 of file lltexturectrl.cpp.

Definition at line 177 of file lltexturectrl.cpp.

Referenced by draw(), isDirty(), setDirty(), and setImageID().

Definition at line 178 of file lltexturectrl.cpp.

Referenced by draw(), setActive(), and setImageID().

Definition at line 180 of file lltexturectrl.cpp.

Referenced by draw(), handleKeyHere(), and LLFloaterTexturePicker().

Definition at line 182 of file lltexturectrl.cpp.

Referenced by getFilterPermMask(), and handleDragAndDrop().

Definition at line 183 of file lltexturectrl.cpp.

Referenced by getFilterPermMask().

Definition at line 184 of file lltexturectrl.cpp.

Referenced by draw(), LLFloaterTexturePicker(), and setCanApplyImmediately().

Definition at line 185 of file lltexturectrl.cpp.

Referenced by commitIfImmediateSet(), draw(), LLFloaterTexturePicker(), and setImageID().

Definition at line 186 of file lltexturectrl.cpp.

Referenced by draw().

Definition at line 187 of file lltexturectrl.cpp.

Referenced by LLFloaterTexturePicker(), and onSearchEdit().


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

Generated on Fri May 16 08:46:46 2008 for SecondLife by  doxygen 1.5.5