#include <lltexturectrl.h>
Definition at line 56 of file lltexturectrl.h.
Definition at line 60 of file lltexturectrl.h.
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 | |||
) |
Definition at line 887 of file lltexturectrl.cpp.
References LLView::addChild(), LLViewBorder::BEVEL_IN, BTN_HEIGHT_SMALL, FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, LLRectBase< Type >::getHeight(), LLView::getRect(), LLFontGL::HCENTER, llround(), mBorder, LLRectBase< Type >::mBottom, mCaption, mTentativeLabel, S32, setEnabled(), LLView::setFollows(), LLView::setFollowsAll(), LLTextBox::setHAlign(), LLFontGL::sSansSerifSmall, and TRUE.
Referenced by fromXML().
LLTextureCtrl::~LLTextureCtrl | ( | ) | [virtual] |
Definition at line 945 of file lltexturectrl.cpp.
References closeFloater().
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.
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().
Reimplemented from LLView.
Definition at line 1170 of file lltexturectrl.cpp.
References LLAssetType::AT_TEXTURE, FALSE, LLInventoryModel::findCategoryUUIDForType(), gInventory, LLView::handleMouseDown(), showPicker(), and LLInventoryModel::startBackgroundFetch().
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.
Reimplemented from LLView.
Definition at line 1163 of file lltexturectrl.cpp.
References LLView::getWindow(), LLWindow::setCursor(), TRUE, and UI_CURSOR_HAND.
Reimplemented from LLView.
Definition at line 1373 of file lltexturectrl.cpp.
References LLView::handleUnicodeCharHere(), showPicker(), and TRUE.
void LLTextureCtrl::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 1280 of file lltexturectrl.cpp.
References LLColor4::black, LLViewerImage::BOOST_PREVIEW, BTN_HEIGHT_SMALL, LLView::draw(), FALSE, LLRectBase< Type >::getHeight(), LLViewerImageList::getImage(), LLView::getRect(), LLUICtrl::getTentative(), LLRectBase< Type >::getWidth(), gImageList, gl_draw_scaled_image(), gl_draw_x(), gl_rect_2d(), gl_rect_2d_checkerboard(), LLColor4::grey, LLUICtrl::hasFocus(), IMMEDIATE_NO, LLPointer< Type >::isNull(), LLUUID::isNull(), mBorder, mBorderColor, LLRectBase< Type >::mBottom, mImageAssetID, MIPMAP_YES, LLRectBase< Type >::mLeft, mTentativeLabel, mTexturep, mValid, NULL, LLViewBorder::setKeyboardFocusHighlight(), LLView::setVisible(), LLRectBase< Type >::stretch(), and TRUE.
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().
void LLTextureCtrl::setEnabled | ( | BOOL | enabled | ) | [virtual] |
Reimplemented from LLView.
Definition at line 1036 of file lltexturectrl.cpp.
References closeFloater(), LLHandle< T >::get(), LLPanel::getUIString(), mCaption, mFloaterHandle, LLFloaterTexturePicker::setActive(), LLView::setEnabled(), and LLView::setToolTip().
Referenced by LLPanelObject::getState(), LLPanelFace::getState(), LLTextureCtrl(), LLPanelPlace::postBuild(), LLPanelPick::refresh(), LLPanelLandMedia::refresh(), LLPanelClassified::refresh(), LLPanelLandOptions::refresh(), and LLPanelGroupGeneral::update().
BOOL LLTextureCtrl::isDirty | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 1077 of file lltexturectrl.cpp.
References mDirty.
Referenced by LLPanelClassified::checkDirty().
void LLTextureCtrl::resetDirty | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 1083 of file lltexturectrl.cpp.
Referenced by LLPanelClassified::resetDirty().
void LLTextureCtrl::setValid | ( | BOOL | valid | ) |
Definition at line 1063 of file lltexturectrl.cpp.
References FALSE, LLHandle< T >::get(), mFloaterHandle, mValid, and LLFloaterTexturePicker::setActive().
void LLTextureCtrl::clear | ( | void | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 1090 of file lltexturectrl.cpp.
References LLUUID::null, and setImageAssetID().
void LLTextureCtrl::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLView.
Definition at line 1383 of file lltexturectrl.cpp.
References LLSD::asUUID(), and setImageAssetID().
LLSD LLTextureCtrl::getValue | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 1388 of file lltexturectrl.cpp.
References getImageAssetID().
void LLTextureCtrl::showPicker | ( | BOOL | take_focus | ) |
Definition at line 1101 of file lltexturectrl.cpp.
References LLFloater::addDependentFloater(), LLHandle< T >::get(), LLFloater::getHandle(), LLFloaterView::getNewFloaterPosition(), LLFloaterView::getParentFloater(), LLControlGroup::getRect(), gFloaterView, gSavedSettings, mCanApplyImmediately, mFloaterHandle, mImmediateFilterPermMask, mLabel, mLastFloaterLeftTop, LLRectBase< Type >::mLeft, mNonImmediateFilterPermMask, LLRectBase< Type >::mTop, LLCoord::mX, LLCoord::mY, LLFloater::open(), LLFloater::setFocus(), LLRectBase< Type >::translate(), and TRUE.
Referenced by handleMouseDown(), and handleUnicodeCharHere().
void LLTextureCtrl::setLabel | ( | const LLString & | label | ) |
Definition at line 1095 of file lltexturectrl.cpp.
References mCaption, mLabel, and LLTextBox::setText().
const LLString& LLTextureCtrl::getLabel | ( | void | ) | const [inline] |
Definition at line 107 of file lltexturectrl.h.
References mLabel.
Referenced by getXML().
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().
bool LLTextureCtrl::getAllowNoTexture | ( | ) | const [inline] |
Definition at line 110 of file lltexturectrl.h.
References mAllowNoTexture.
Referenced by LLFloaterTexturePicker::draw().
const LLUUID& LLTextureCtrl::getImageItemID | ( | ) | [inline] |
Definition at line 112 of file lltexturectrl.h.
References mImageItemID.
Referenced by LLPanelFace::sendTexture().
void LLTextureCtrl::setImageAssetID | ( | const LLUUID & | image_asset_id | ) |
Definition at line 1228 of file lltexturectrl.cpp.
References FALSE, LLHandle< T >::get(), LLView::getEnabled(), mFloaterHandle, mImageAssetID, mImageItemID, LLFloaterTexturePicker::setDirty(), LLFloaterTexturePicker::setImageID(), and LLUUID::setNull().
Referenced by clear(), LLPanelAvatarSecondLife::clearControls(), LLPanelPlace::displayParcelInfo(), doDrop(), LLPanelEditWearable::draw(), LLPanelObject::getState(), LLPanelFace::getState(), LLPanelClassified::initNewClassified(), LLPanelPick::initNewPick(), LLPanelObject::onCancelSculpt(), LLPanelObject::onDropSculpt(), LLPanelAvatar::processAvatarPropertiesReply(), LLPanelLandMedia::refresh(), LLPanelLandOptions::refresh(), LLPanelRegionTextureInfo::refreshFromRegion(), LLFloaterSellLandUI::refreshUI(), LLFloaterBuyLandUI::refreshUI(), LLPanelPlace::setSnapshot(), setValue(), LLFloaterWater::syncMenu(), LLPanelGroupGeneral::update(), and update_texture_ctrl().
const LLUUID& LLTextureCtrl::getImageAssetID | ( | ) | const [inline] |
Definition at line 115 of file lltexturectrl.h.
References mImageAssetID.
Referenced by LLPanelGroupGeneral::apply(), getValue(), LLFloaterWater::onNormalMapPicked(), LLPanelObject::onSelectSculpt(), LLPanelEditWearable::onTextureCommit(), LLPanelAvatar::sendAvatarPropertiesUpdate(), LLPanelClassified::sendClassifiedInfoUpdate(), LLPanelPick::sendPickInfoUpdate(), LLPanelObject::sendSculpt(), LLPanelFace::sendTexture(), LLPanelRegionTextureInfo::sendUpdate(), and LLPanelRegionTextureInfo::validateTextureSizes().
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().
const LLString& LLTextureCtrl::getDefaultImageName | ( | ) | const [inline] |
Definition at line 119 of file lltexturectrl.h.
References mDefaultImageName.
Referenced by getXML().
const LLUUID& LLTextureCtrl::getDefaultImageAssetID | ( | ) | const [inline] |
Definition at line 120 of file lltexturectrl.h.
References mDefaultImageAssetID.
Referenced by LLFloaterTexturePicker::draw().
void LLTextureCtrl::setCaption | ( | const LLString & | caption | ) |
Definition at line 1012 of file lltexturectrl.cpp.
References mCaption, and LLTextBox::setText().
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().
void LLTextureCtrl::setImmediateFilterPermMask | ( | PermissionMask | mask | ) | [inline] |
Definition at line 125 of file lltexturectrl.h.
References mImmediateFilterPermMask.
Referenced by LLPanelEditWearable::addTextureDropTarget(), LLPanelObject::postBuild(), LLPanelLandMedia::postBuild(), LLPanelFace::postBuild(), and LLPanelLandOptions::postBuild().
void LLTextureCtrl::setNonImmediateFilterPermMask | ( | PermissionMask | mask | ) | [inline] |
Definition at line 127 of file lltexturectrl.h.
References mNonImmediateFilterPermMask.
Referenced by LLPanelEditWearable::addTextureDropTarget(), LLPanelObject::postBuild(), LLPanelLandMedia::postBuild(), LLPanelFace::postBuild(), and LLPanelLandOptions::postBuild().
PermissionMask LLTextureCtrl::getImmediateFilterPermMask | ( | ) | [inline] |
PermissionMask LLTextureCtrl::getNonImmediateFilterPermMask | ( | ) | [inline] |
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().
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().
void LLTextureCtrl::onFloaterCommit | ( | ETexturePickOp | op | ) |
Definition at line 1198 of file lltexturectrl.cpp.
References FALSE, LLFloaterTexturePicker::findItemID(), LLHandle< T >::get(), LLFloaterTexturePicker::getAssetID(), LLView::getEnabled(), LLFloaterTexturePicker::isDirty(), lldebugs, llendl, LLUICtrl::mCallbackUserData, mDirty, mFloaterHandle, mImageAssetID, mImageItemID, mOnCancelCallback, mOnSelectCallback, LLUICtrl::onCommit(), LLUICtrl::setTentative(), TEXTURE_CANCEL, and TEXTURE_SELECT.
Referenced by LLFloaterTexturePicker::commitIfImmediateSet().
void LLTextureCtrl::setDragCallback | ( | drag_n_drop_callback | cb | ) | [inline] |
Definition at line 139 of file lltexturectrl.h.
References mDragCallback.
Referenced by LLPanelFace::postBuild().
void LLTextureCtrl::setDropCallback | ( | drag_n_drop_callback | cb | ) | [inline] |
Definition at line 144 of file lltexturectrl.h.
References mDropCallback.
Referenced by LLPanelObject::postBuild().
void LLTextureCtrl::setOnCancelCallback | ( | LLUICtrlCallback | cb | ) | [inline] |
Definition at line 146 of file lltexturectrl.h.
References mOnCancelCallback.
Referenced by LLPanelObject::postBuild(), and LLPanelFace::postBuild().
void LLTextureCtrl::setOnSelectCallback | ( | LLUICtrlCallback | cb | ) | [inline] |
Definition at line 148 of file lltexturectrl.h.
References mOnSelectCallback.
Referenced by LLPanelObject::postBuild(), and LLPanelFace::postBuild().
BOOL LLTextureCtrl::allowDrop | ( | LLInventoryItem * | item | ) | [private] |
Definition at line 1325 of file lltexturectrl.cpp.
References LLPermissions::allowCopyBy(), LLPermissions::allowModifyBy(), LLPermissions::allowOperationBy(), FALSE, gAgent, LLAgent::getID(), LLInventoryItem::getPermissions(), LLUICtrl::mCallbackUserData, mDragCallback, mImmediateFilterPermMask, PERM_COPY, PERM_MODIFY, PERM_TRANSFER, and TRUE.
Referenced by handleDragAndDrop().
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().
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().
LLPointer<LLViewerImage> LLTextureCtrl::mTexturep [private] |
LLColor4 LLTextureCtrl::mBorderColor [private] |
LLUUID LLTextureCtrl::mImageItemID [private] |
Definition at line 161 of file lltexturectrl.h.
Referenced by doDrop(), getImageItemID(), onFloaterCommit(), and setImageAssetID().
LLUUID LLTextureCtrl::mImageAssetID [private] |
Definition at line 162 of file lltexturectrl.h.
Referenced by draw(), getImageAssetID(), onFloaterCommit(), and setImageAssetID().
LLUUID LLTextureCtrl::mDefaultImageAssetID [private] |
Definition at line 163 of file lltexturectrl.h.
Referenced by getDefaultImageAssetID(), and setDefaultImageAssetID().
LLString LLTextureCtrl::mDefaultImageName [private] |
LLHandle<LLFloater> LLTextureCtrl::mFloaterHandle [private] |
Definition at line 165 of file lltexturectrl.h.
Referenced by closeFloater(), onFloaterClose(), onFloaterCommit(), setCanApplyImmediately(), setEnabled(), setImageAssetID(), setValid(), and showPicker().
LLTextBox* LLTextureCtrl::mTentativeLabel [private] |
LLTextBox* LLTextureCtrl::mCaption [private] |
Definition at line 167 of file lltexturectrl.h.
Referenced by LLTextureCtrl(), setCaption(), setEnabled(), and setLabel().
LLString LLTextureCtrl::mLabel [private] |
Definition at line 168 of file lltexturectrl.h.
Referenced by getLabel(), setLabel(), and showPicker().
BOOL LLTextureCtrl::mAllowNoTexture [private] |
Definition at line 169 of file lltexturectrl.h.
Referenced by getAllowNoTexture(), getXML(), and setAllowNoTexture().
LLCoordGL LLTextureCtrl::mLastFloaterLeftTop [private] |
Definition at line 171 of file lltexturectrl.h.
Referenced by allowDrop(), getImmediateFilterPermMask(), setImmediateFilterPermMask(), and showPicker().
Definition at line 172 of file lltexturectrl.h.
Referenced by getNonImmediateFilterPermMask(), setNonImmediateFilterPermMask(), and showPicker().
BOOL LLTextureCtrl::mCanApplyImmediately [private] |
Definition at line 173 of file lltexturectrl.h.
Referenced by getXML(), setCanApplyImmediately(), and showPicker().
BOOL LLTextureCtrl::mNeedsRawImageData [private] |
Definition at line 174 of file lltexturectrl.h.
LLViewBorder* LLTextureCtrl::mBorder [private] |
BOOL LLTextureCtrl::mValid [private] |
BOOL LLTextureCtrl::mDirty [private] |
Definition at line 177 of file lltexturectrl.h.
Referenced by isDirty(), onFloaterCommit(), and resetDirty().