Definition at line 104 of file lltexturectrl.cpp.
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 | |||
) |
Definition at line 190 of file lltexturectrl.cpp.
References LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetEnabled(), LLPanel::childSetValue(), LLPanel::childSetVisible(), FALSE, findItemID(), LLControlGroup::getBOOL(), LLFolderView::getFilter(), LLSingleton< LLUICtrlFactory >::getInstance(), LLInventoryPanel::getRootFolder(), gSavedSettings, LLInventoryType::IT_SNAPSHOT, LLInventoryType::IT_TEXTURE, LLInventoryFilter::markDefault(), mCanApplyImmediately, mImageAssetID, mInventoryPanel, mNoCopyTextureSelected, mResolutionLabel, mSavedFolderState, mSearchEdit, mTentativeLabel, onApplyImmediateCheck(), onBtnCancel(), onBtnNone(), onBtnPipette(), onBtnSelect(), onBtnSetToDefault(), onBtnWhite(), onSearchEdit(), onSelectionChange(), onShowFolders(), LLInventoryPanel::setAllowMultiSelect(), LLSaveFolderState::setApply(), LLFloater::setCanMinimize(), LLInventoryPanel::setFilterPermMask(), LLInventoryPanel::setFilterTypes(), LLSearchEditor::setSearchCallback(), LLInventoryPanel::setSelectCallback(), LLInventoryPanel::setSelection(), LLInventoryPanel::setShowFolderState(), LLInventoryFilter::SHOW_NON_EMPTY_FOLDERS, TAKE_FOCUS_NO, and updateFilterPermMask().
LLFloaterTexturePicker::~LLFloaterTexturePicker | ( | ) | [virtual] |
Definition at line 284 of file lltexturectrl.cpp.
BOOL LLFloaterTexturePicker::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 359 of file lltexturectrl.cpp.
References ACCEPT_NO, ACCEPT_YES_SINGLE, LLPermissions::allowCopyBy(), LLPermissions::allowModifyBy(), LLPermissions::allowOperationBy(), commitIfImmediateSet(), DAD_TEXTURE, FALSE, gAgent, LLInventoryItem::getAssetUUID(), LLAgent::getID(), LLView::getName(), LLInventoryItem::getPermissions(), lldebugst, llendl, mImmediateFilterPermMask, PERM_COPY, PERM_MODIFY, PERM_TRANSFER, setImageID(), and TRUE.
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().
Reimplemented from LLPanel.
Definition at line 410 of file lltexturectrl.cpp.
References commitIfImmediateSet(), FALSE, LLUICtrl::focusFirstItem(), gAgent, LLFolderView::getCurSelectedItem(), LLAgent::getInventoryRootID(), LLFolderView::getItemByID(), LLInventoryPanel::getRootFolder(), LLPanel::handleKeyHere(), LLUICtrl::hasFocus(), KEY_DOWN, KEY_RETURN, KEY_UP, MASK_NONE, mInventoryPanel, mSearchEdit, LLFolderView::scrollToShowSelection(), LLFolderView::setFocus(), LLFolderView::setSelection(), and TRUE.
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().
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.
void LLFloaterTexturePicker::setImageID | ( | const LLUUID & | image_asset_id | ) |
Definition at line 288 of file lltexturectrl.cpp.
References LLPermissions::allowCopyBy(), LLPanel::childSetValue(), LLInventoryPanel::clearSelection(), FALSE, findItemID(), gAgent, LLAgent::getID(), LLInventoryModel::getItem(), LLInventoryItem::getPermissions(), gInventory, LLUUID::isNull(), mActive, mImageAssetID, mInventoryPanel, mIsDirty, mNoCopyTextureSelected, LLInventoryPanel::setSelection(), TAKE_FOCUS_NO, and TRUE.
Referenced by handleDragAndDrop(), and LLTextureCtrl::setImageAssetID().
void LLFloaterTexturePicker::updateImageStats | ( | ) |
Definition at line 341 of file lltexturectrl.cpp.
References llformat(), mResolutionLabel, mTexturep, LLPointer< Type >::notNull(), and LLTextBox::setTextArg().
Referenced by draw().
const LLUUID& LLFloaterTexturePicker::getAssetID | ( | ) | [inline] |
Definition at line 131 of file lltexturectrl.cpp.
References mImageAssetID.
Referenced by LLTextureCtrl::onFloaterCommit().
Definition at line 621 of file lltexturectrl.cpp.
References LLPermissions::allowCopyBy(), LLInventoryModel::collectDescendentsIf(), LLDynamicArray< Type, BlockSize >::count(), gAgent, LLAgent::getGroupID(), LLAgent::getID(), LLInventoryItem::getPermissions(), LLInventoryObject::getUUID(), gInventory, i, LLInventoryModel::INCLUDE_TRASH, LLUUID::null, and S32.
Referenced by LLFloaterTexturePicker(), LLTextureCtrl::onFloaterCommit(), and setImageID().
void LLFloaterTexturePicker::setCanApplyImmediately | ( | BOOL | b | ) |
Definition at line 323 of file lltexturectrl.cpp.
References LLPanel::childSetValue(), FALSE, mCanApplyImmediately, and updateFilterPermMask().
Referenced by LLTextureCtrl::setCanApplyImmediately().
void LLFloaterTexturePicker::setDirty | ( | BOOL | b | ) | [inline] |
Definition at line 135 of file lltexturectrl.cpp.
References mIsDirty.
Referenced by LLTextureCtrl::setImageAssetID().
BOOL LLFloaterTexturePicker::isDirty | ( | ) | const [inline, virtual] |
Reimplemented from LLUICtrl.
Definition at line 136 of file lltexturectrl.cpp.
References mIsDirty.
Referenced by LLTextureCtrl::onFloaterCommit().
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().
LLTextureCtrl* LLFloaterTexturePicker::getOwner | ( | ) | const [inline] |
void LLFloaterTexturePicker::setOwner | ( | LLTextureCtrl * | owner | ) | [inline] |
Definition at line 140 of file lltexturectrl.cpp.
References mOwner.
Referenced by LLTextureCtrl::closeFloater(), and LLTextureCtrl::onFloaterClose().
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().
PermissionMask LLFloaterTexturePicker::getFilterPermMask | ( | ) |
Definition at line 658 of file lltexturectrl.cpp.
References LLSD::asBoolean(), LLPanel::childGetValue(), mImmediateFilterPermMask, and mNonImmediateFilterPermMask.
void LLFloaterTexturePicker::updateFilterPermMask | ( | ) |
Definition at line 813 of file lltexturectrl.cpp.
Referenced by LLFloaterTexturePicker(), onApplyImmediateCheck(), and setCanApplyImmediately().
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().
void LLFloaterTexturePicker::onBtnSetToDefault | ( | void * | userdata | ) | [static] |
Definition at line 674 of file lltexturectrl.cpp.
Referenced by LLFloaterTexturePicker().
void LLFloaterTexturePicker::onBtnSelect | ( | void * | userdata | ) | [static] |
Definition at line 727 of file lltexturectrl.cpp.
References LLTextureCtrl::TEXTURE_SELECT.
Referenced by LLFloaterTexturePicker().
void LLFloaterTexturePicker::onBtnCancel | ( | void * | userdata | ) | [static] |
Definition at line 714 of file lltexturectrl.cpp.
References FALSE, and LLTextureCtrl::TEXTURE_CANCEL.
Referenced by LLFloaterTexturePicker().
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().
void LLFloaterTexturePicker::onBtnWhite | ( | void * | userdata | ) | [static] |
Definition at line 685 of file lltexturectrl.cpp.
Referenced by LLFloaterTexturePicker().
void LLFloaterTexturePicker::onBtnNone | ( | void * | userdata | ) | [static] |
Definition at line 694 of file lltexturectrl.cpp.
References LLUUID::null.
Referenced by LLFloaterTexturePicker().
static void LLFloaterTexturePicker::onBtnClear | ( | void * | userdata | ) | [static] |
void LLFloaterTexturePicker::onSelectionChange | ( | const std::deque< LLFolderViewItem * > & | items, | |
BOOL | user_action, | |||
void * | data | |||
) | [static] |
Definition at line 760 of file lltexturectrl.cpp.
References LLPermissions::allowCopyBy(), FALSE, gAgent, LLInventoryItem::getAssetUUID(), LLAgent::getID(), LLInventoryModel::getItem(), LLFolderViewItem::getListener(), LLInventoryItem::getPermissions(), LLFolderViewEventListener::getUUID(), gInventory, and TRUE.
Referenced by LLFloaterTexturePicker().
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().
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().
void LLFloaterTexturePicker::onSearchEdit | ( | const LLString & | search_string, | |
void * | user_data | |||
) | [static] |
Definition at line 818 of file lltexturectrl.cpp.
References LLFolderViewFolder::applyFunctorRecursively(), FALSE, LLInventoryPanel::getFilterSubString(), LLInventoryPanel::getRootFolder(), LLFolderView::isFilterModified(), mInventoryPanel, mSavedFolderState, LLFolderView::scrollToShowSelection(), LLSaveFolderState::setApply(), LLInventoryPanel::setFilterSubString(), LLStringBase< char >::toUpper(), and TRUE.
Referenced by LLFloaterTexturePicker().
void LLFloaterTexturePicker::onTextureSelect | ( | const LLTextureEntry & | te, | |
void * | data | |||
) | [static] |
Definition at line 855 of file lltexturectrl.cpp.
References LLPermissions::allowCopyBy(), FALSE, gAgent, LLAgent::getID(), LLTextureEntry::getID(), LLSingleton< LLToolPipette >::getInstance(), LLInventoryModel::getItem(), LLInventoryItem::getPermissions(), gInventory, LLUUID::notNull(), LLToolPipette::setResult(), and TRUE.
Referenced by onBtnPipette().
LLPointer<LLViewerImage> LLFloaterTexturePicker::mTexturep [protected] |
LLTextureCtrl* LLFloaterTexturePicker::mOwner [protected] |
Definition at line 163 of file lltexturectrl.cpp.
Referenced by commitIfImmediateSet(), draw(), getOwner(), onClose(), and setOwner().
LLUUID LLFloaterTexturePicker::mImageAssetID [protected] |
Definition at line 165 of file lltexturectrl.cpp.
Referenced by draw(), getAssetID(), LLFloaterTexturePicker(), and setImageID().
LLUUID LLFloaterTexturePicker::mWhiteImageAssetID [protected] |
Definition at line 168 of file lltexturectrl.cpp.
LLUUID LLFloaterTexturePicker::mOriginalImageAssetID [protected] |
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().
LLTextBox* LLFloaterTexturePicker::mTentativeLabel [protected] |
Definition at line 173 of file lltexturectrl.cpp.
Referenced by draw(), and LLFloaterTexturePicker().
LLTextBox* LLFloaterTexturePicker::mResolutionLabel [protected] |
Definition at line 174 of file lltexturectrl.cpp.
Referenced by LLFloaterTexturePicker(), and updateImageStats().
LLString LLFloaterTexturePicker::mPendingName [protected] |
Definition at line 176 of file lltexturectrl.cpp.
BOOL LLFloaterTexturePicker::mIsDirty [protected] |
Definition at line 177 of file lltexturectrl.cpp.
Referenced by draw(), isDirty(), setDirty(), and setImageID().
BOOL LLFloaterTexturePicker::mActive [protected] |
Definition at line 178 of file lltexturectrl.cpp.
Referenced by draw(), setActive(), and setImageID().
LLSearchEditor* LLFloaterTexturePicker::mSearchEdit [protected] |
Definition at line 180 of file lltexturectrl.cpp.
Referenced by draw(), handleKeyHere(), and LLFloaterTexturePicker().
LLInventoryPanel* LLFloaterTexturePicker::mInventoryPanel [protected] |
Definition at line 181 of file lltexturectrl.cpp.
Referenced by draw(), handleKeyHere(), LLFloaterTexturePicker(), onSearchEdit(), onShowFolders(), and setImageID().
Definition at line 182 of file lltexturectrl.cpp.
Referenced by getFilterPermMask(), and handleDragAndDrop().
BOOL LLFloaterTexturePicker::mCanApplyImmediately [protected] |
Definition at line 184 of file lltexturectrl.cpp.
Referenced by draw(), LLFloaterTexturePicker(), and setCanApplyImmediately().
BOOL LLFloaterTexturePicker::mNoCopyTextureSelected [protected] |
Definition at line 185 of file lltexturectrl.cpp.
Referenced by commitIfImmediateSet(), draw(), LLFloaterTexturePicker(), and setImageID().
F32 LLFloaterTexturePicker::mContextConeOpacity [protected] |
Definition at line 187 of file lltexturectrl.cpp.
Referenced by LLFloaterTexturePicker(), and onSearchEdit().