#include <lltexturectrl.h>
Inheritance diagram for LLTextureCtrl:
Definition at line 55 of file lltexturectrl.h.
Definition at line 59 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 890 of file lltexturectrl.cpp.
References LLView::addChild(), LLViewBorder::BEVEL_IN, BTN_HEIGHT_SMALL, FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLFontGL::HCENTER, llround(), mBorder, mCaption, LLView::mRect, mTentativeLabel, NULL, S32, setEnabled(), LLView::setFollows(), LLView::setFollowsAll(), LLTextBox::setHAlign(), LLFontGL::sSansSerifSmall, and TRUE.
Referenced by fromXML().
LLTextureCtrl::~LLTextureCtrl | ( | ) | [virtual] |
BOOL LLTextureCtrl::allowDrop | ( | LLInventoryItem * | item | ) | [private] |
Definition at line 1328 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().
void LLTextureCtrl::clear | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 1090 of file lltexturectrl.cpp.
References LLUUID::null, and setImageAssetID().
Referenced by LLPanelLandMedia::refresh().
void LLTextureCtrl::closeFloater | ( | ) |
Definition at line 1139 of file lltexturectrl.cpp.
References LLFloater::close(), LLFloater::getFloaterByHandle(), mFloaterHandle, NULL, and LLFloaterTexturePicker::setOwner().
Referenced by setEnabled(), setVisible(), and ~LLTextureCtrl().
BOOL LLTextureCtrl::doDrop | ( | LLInventoryItem * | item | ) | [private] |
Definition at line 1360 of file lltexturectrl.cpp.
References LLInventoryItem::getAssetUUID(), LLInventoryObject::getUUID(), LLUICtrl::mCallbackUserData, mDropCallback, mImageItemID, setImageAssetID(), and TRUE.
Referenced by handleDragAndDrop().
void LLTextureCtrl::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 1280 of file lltexturectrl.cpp.
References LLColor4::black, LLViewerImage::BOOST_PREVIEW, border, BTN_HEIGHT_SMALL, LLView::draw(), FALSE, LLRectBase< Type >::getHeight(), LLViewerImageList::getImage(), LLView::getVisible(), 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, LLView::mRect, LLUICtrl::mTentative, mTentativeLabel, mTexturep, mValid, NULL, LLViewBorder::setKeyboardFocusHighlight(), LLView::setVisible(), LLRectBase< Type >::stretch(), and TRUE.
LLView * LLTextureCtrl::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Definition at line 968 of file lltexturectrl.cpp.
References LLView::createRect(), FALSE, LLUICtrl::initFromXML(), LLTextureCtrl(), setAllowNoTexture(), and setCanApplyImmediately().
bool LLTextureCtrl::getAllowNoTexture | ( | ) | const [inline] |
Definition at line 111 of file lltexturectrl.h.
References mAllowNoTexture.
Referenced by LLFloaterTexturePicker::draw().
const LLUUID& LLTextureCtrl::getDefaultImageAssetID | ( | ) | const [inline] |
Definition at line 121 of file lltexturectrl.h.
References mDefaultImageAssetID.
Referenced by LLFloaterTexturePicker::draw().
const LLString& LLTextureCtrl::getDefaultImageName | ( | ) | const [inline] |
Definition at line 120 of file lltexturectrl.h.
References mDefaultImageName.
Referenced by getXML().
const LLUUID& LLTextureCtrl::getImageAssetID | ( | ) | const [inline] |
Definition at line 116 of file lltexturectrl.h.
References mImageAssetID.
Referenced by LLPanelGroupGeneral::apply(), getValue(), LLPanelObject::onSelectSculpt(), LLPanelEditWearable::onTextureCommit(), LLPanelGroupGeneral::postBuild(), LLPanelAvatar::sendAvatarPropertiesUpdate(), LLPanelClassified::sendClassifiedInfoUpdate(), LLPanelPick::sendPickInfoUpdate(), LLPanelObject::sendSculpt(), LLPanelFace::sendTexture(), LLPanelRegionTextureInfo::sendUpdate(), and LLPanelRegionTextureInfo::validateTextureSizes().
const LLUUID& LLTextureCtrl::getImageItemID | ( | ) | [inline] |
Definition at line 113 of file lltexturectrl.h.
References mImageItemID.
Referenced by LLPanelFace::sendTexture().
PermissionMask LLTextureCtrl::getImmediateFilterPermMask | ( | ) | [inline] |
PermissionMask LLTextureCtrl::getNonImmediateFilterPermMask | ( | ) | [inline] |
LLSD LLTextureCtrl::getValue | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 1391 of file lltexturectrl.cpp.
References getImageAssetID().
virtual LLString LLTextureCtrl::getWidgetTag | ( | ) | const [inline, virtual] |
virtual EWidgetType LLTextureCtrl::getWidgetType | ( | ) | const [inline, virtual] |
Implements LLView.
Definition at line 76 of file lltexturectrl.h.
References WIDGET_TYPE_TEXTURE_PICKER.
LLXMLNodePtr LLTextureCtrl::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 953 of file lltexturectrl.cpp.
References getDefaultImageName(), getLabel(), LLUICtrl::getXML(), mAllowNoTexture, mCanApplyImmediately, and TRUE.
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::getName(), lldebugst, llendl, LLView::mEnabled, 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 1170 of file lltexturectrl.cpp.
References LLAssetType::AT_TEXTURE, FALSE, LLInventoryModel::findCategoryUUIDForType(), gInventory, LLView::handleMouseDown(), showPicker(), and LLInventoryModel::startBackgroundFetch().
Reimplemented from LLView.
Definition at line 1376 of file lltexturectrl.cpp.
References LLView::getVisible(), LLView::handleUnicodeCharHere(), LLView::mEnabled, showPicker(), and TRUE.
BOOL LLTextureCtrl::isDirty | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 1077 of file lltexturectrl.cpp.
References mDirty.
Referenced by LLPanelClassified::checkDirty().
void LLTextureCtrl::onFloaterClose | ( | ) |
Definition at line 1185 of file lltexturectrl.cpp.
References LLFloater::getFloaterByHandle(), LLView::getRect(), 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(), LLFloaterTexturePicker::getAssetID(), LLFloater::getFloaterByHandle(), LLFloaterTexturePicker::isDirty(), lldebugs, llendl, LLUICtrl::mCallbackUserData, mDirty, LLView::mEnabled, mFloaterHandle, mImageAssetID, mImageItemID, mOnCancelCallback, mOnSelectCallback, LLUICtrl::onCommit(), LLUICtrl::setTentative(), TEXTURE_CANCEL, and TEXTURE_SELECT.
Referenced by LLFloaterTexturePicker::commitIfImmediateSet().
void LLTextureCtrl::resetDirty | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 1083 of file lltexturectrl.cpp.
Referenced by LLPanelClassified::confirmPublish().
Definition at line 110 of file lltexturectrl.h.
References mAllowNoTexture.
Referenced by LLPanelEditWearable::addTextureDropTarget(), fromXML(), LLPanelLandMedia::postBuild(), and LLPanelLandOptions::postBuild().
Definition at line 1019 of file lltexturectrl.cpp.
References LLFloater::getFloaterByHandle(), mCanApplyImmediately, mFloaterHandle, and LLFloaterTexturePicker::setCanApplyImmediately().
Referenced by fromXML(), LLPanelFace::getState(), LLPanelObject::postBuild(), and LLPanelFace::postBuild().
Definition at line 118 of file lltexturectrl.h.
References mDefaultImageAssetID.
Referenced by LLPanelEditWearable::addTextureDropTarget(), LLPanelObject::postBuild(), and LLPanelFace::postBuild().
void LLTextureCtrl::setDragCallback | ( | drag_n_drop_callback | cb | ) | [inline] |
Definition at line 140 of file lltexturectrl.h.
References mDragCallback.
Referenced by LLPanelFace::postBuild().
void LLTextureCtrl::setDropCallback | ( | drag_n_drop_callback | cb | ) | [inline] |
Definition at line 145 of file lltexturectrl.h.
References mDropCallback.
Referenced by LLPanelObject::postBuild().
Reimplemented from LLView.
Definition at line 1038 of file lltexturectrl.cpp.
References closeFloater(), LLFloater::getFloaterByHandle(), mCaption, mFloaterHandle, LLFloaterTexturePicker::setActive(), LLView::setEnabled(), and LLView::setToolTip().
Referenced by LLPanelObject::getState(), LLPanelFace::getState(), LLTextureCtrl(), LLPanelPlace::postBuild(), LLPanelPick::refresh(), LLPanelClassified::refresh(), LLPanelLandMedia::refresh(), LLPanelLandOptions::refresh(), and LLPanelGroupGeneral::update().
Definition at line 1228 of file lltexturectrl.cpp.
References FALSE, LLView::getEnabled(), LLFloater::getFloaterByHandle(), mFloaterHandle, mImageAssetID, mImageItemID, LLFloaterTexturePicker::setDirty(), LLFloaterTexturePicker::setImageID(), and LLUUID::setNull().
Referenced by clear(), LLPanelAvatarSecondLife::clearControls(), LLPanelPlace::displayParcelInfo(), doDrop(), 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(), LLPanelGroupGeneral::update(), update_texture_ctrl(), LLFloaterEventLog::updateList(), and LLFloaterEventLog::updateSelectedEventInfo().
void LLTextureCtrl::setImmediateFilterPermMask | ( | PermissionMask | mask | ) | [inline] |
Definition at line 126 of file lltexturectrl.h.
References mImmediateFilterPermMask.
Referenced by LLPanelEditWearable::addTextureDropTarget(), LLPanelObject::postBuild(), LLPanelFace::postBuild(), LLPanelLandMedia::postBuild(), and LLPanelLandOptions::postBuild().
Definition at line 1095 of file lltexturectrl.cpp.
References mCaption, mLabel, and LLTextBox::setText().
void LLTextureCtrl::setNonImmediateFilterPermMask | ( | PermissionMask | mask | ) | [inline] |
Definition at line 128 of file lltexturectrl.h.
References mNonImmediateFilterPermMask.
Referenced by LLPanelEditWearable::addTextureDropTarget(), LLPanelObject::postBuild(), LLPanelFace::postBuild(), LLPanelLandMedia::postBuild(), and LLPanelLandOptions::postBuild().
void LLTextureCtrl::setOnCancelCallback | ( | LLUICtrlCallback | cb | ) | [inline] |
Definition at line 147 of file lltexturectrl.h.
References mOnCancelCallback.
Referenced by LLPanelObject::postBuild(), and LLPanelFace::postBuild().
void LLTextureCtrl::setOnSelectCallback | ( | LLUICtrlCallback | cb | ) | [inline] |
Definition at line 149 of file lltexturectrl.h.
References mOnSelectCallback.
Referenced by LLPanelObject::postBuild(), and LLPanelFace::postBuild().
Definition at line 1063 of file lltexturectrl.cpp.
References FALSE, LLFloater::getFloaterByHandle(), mFloaterHandle, mValid, and LLFloaterTexturePicker::setActive().
Definition at line 1386 of file lltexturectrl.cpp.
References LLSD::asUUID(), and setImageAssetID().
Reimplemented from LLView.
Definition at line 1029 of file lltexturectrl.cpp.
References closeFloater(), and LLView::setVisible().
Referenced by LLPanelObject::getState().
Definition at line 1101 of file lltexturectrl.cpp.
References LLFloater::addDependentFloater(), LLFloater::getFloaterByHandle(), LLPanel::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().
BOOL LLTextureCtrl::mAllowNoTexture [private] |
Definition at line 170 of file lltexturectrl.h.
Referenced by getAllowNoTexture(), getXML(), and setAllowNoTexture().
LLViewBorder* LLTextureCtrl::mBorder [private] |
LLColor4 LLTextureCtrl::mBorderColor [private] |
BOOL LLTextureCtrl::mCanApplyImmediately [private] |
Definition at line 174 of file lltexturectrl.h.
Referenced by getXML(), setCanApplyImmediately(), and showPicker().
LLTextBox* LLTextureCtrl::mCaption [private] |
Definition at line 168 of file lltexturectrl.h.
Referenced by LLTextureCtrl(), setCaption(), setEnabled(), and setLabel().
LLUUID LLTextureCtrl::mDefaultImageAssetID [private] |
Definition at line 164 of file lltexturectrl.h.
Referenced by getDefaultImageAssetID(), and setDefaultImageAssetID().
LLString LLTextureCtrl::mDefaultImageName [private] |
BOOL LLTextureCtrl::mDirty [private] |
Definition at line 178 of file lltexturectrl.h.
Referenced by isDirty(), onFloaterCommit(), and resetDirty().
LLViewHandle LLTextureCtrl::mFloaterHandle [private] |
Definition at line 166 of file lltexturectrl.h.
Referenced by closeFloater(), onFloaterClose(), onFloaterCommit(), setCanApplyImmediately(), setEnabled(), setImageAssetID(), setValid(), and showPicker().
LLUUID LLTextureCtrl::mImageAssetID [private] |
Definition at line 163 of file lltexturectrl.h.
Referenced by draw(), getImageAssetID(), onFloaterCommit(), and setImageAssetID().
LLUUID LLTextureCtrl::mImageItemID [private] |
Definition at line 162 of file lltexturectrl.h.
Referenced by doDrop(), getImageItemID(), onFloaterCommit(), and setImageAssetID().
Definition at line 172 of file lltexturectrl.h.
Referenced by allowDrop(), getImmediateFilterPermMask(), setImmediateFilterPermMask(), and showPicker().
LLString LLTextureCtrl::mLabel [private] |
Definition at line 169 of file lltexturectrl.h.
Referenced by getLabel(), setLabel(), and showPicker().
LLCoordGL LLTextureCtrl::mLastFloaterLeftTop [private] |
BOOL LLTextureCtrl::mNeedsRawImageData [private] |
Definition at line 175 of file lltexturectrl.h.
Definition at line 173 of file lltexturectrl.h.
Referenced by getNonImmediateFilterPermMask(), setNonImmediateFilterPermMask(), and showPicker().
Definition at line 158 of file lltexturectrl.h.
Referenced by onFloaterCommit(), and setOnCancelCallback().
Definition at line 159 of file lltexturectrl.h.
Referenced by onFloaterCommit(), and setOnSelectCallback().
LLTextBox* LLTextureCtrl::mTentativeLabel [private] |
LLPointer<LLViewerImage> LLTextureCtrl::mTexturep [private] |
BOOL LLTextureCtrl::mValid [private] |