diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-02-17 18:54:50 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-02-17 23:09:52 +0200 |
commit | 8fdd6849995748b144b811d2e9585aeb2c56562d (patch) | |
tree | dbfe292dea37082f5da28021b25f1b99b9dd8e9a /indra/newview/llsidepaneliteminfo.cpp | |
parent | f2d46651b92d949a63d2b3a5dd774dce6a6752c7 (diff) |
SL-19108 WIP Managing inventory thumbnail #3
Diffstat (limited to 'indra/newview/llsidepaneliteminfo.cpp')
-rw-r--r-- | indra/newview/llsidepaneliteminfo.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/llsidepaneliteminfo.cpp b/indra/newview/llsidepaneliteminfo.cpp index 7d9fb6565c..312dee8c93 100644 --- a/indra/newview/llsidepaneliteminfo.cpp +++ b/indra/newview/llsidepaneliteminfo.cpp @@ -36,6 +36,7 @@ #include "llcallbacklist.h" #include "llcombobox.h" #include "llfloater.h" +#include "llfloaterreg.h" #include "llgroupactions.h" #include "llgroupmgr.h" #include "lliconctrl.h" @@ -160,6 +161,8 @@ BOOL LLSidepanelItemInfo::postBuild() getChild<LLLineEditor>("LabelItemName")->setPrevalidate(&LLTextValidate::validateASCIIPrintableNoPipe); getChild<LLUICtrl>("LabelItemName")->setCommitCallback(boost::bind(&LLSidepanelItemInfo::onCommitName,this)); getChild<LLUICtrl>("LabelItemDesc")->setCommitCallback(boost::bind(&LLSidepanelItemInfo:: onCommitDescription, this)); + // Thumnail edition + getChild<LLUICtrl>("change_thumbnail_btn")->setCommitCallback(boost::bind(&LLSidepanelItemInfo::onEditThumbnail, this)); // acquired date // owner permissions // Permissions debug text @@ -1022,7 +1025,14 @@ void LLSidepanelItemInfo::updatePermissions() } } -// static +void LLSidepanelItemInfo::onEditThumbnail() +{ + LLSD data; + data["task_id"] = mObjectID; + data["item_id"] = mItemID; + LLFloaterReg::showInstance("change_item_thumbnail", data); +} + void LLSidepanelItemInfo::onCommitSaleInfo(LLUICtrl* ctrl) { if (ctrl) |