diff options
author | Merov Linden <merov@lindenlab.com> | 2014-04-21 15:26:14 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-04-21 15:26:14 -0700 |
commit | cda6ac9e9b0dc9c75746440d98a98d3556ec9b4e (patch) | |
tree | d31844606df07076fd32e01087d87f80acfccb31 /indra/newview/llfloatermarketplacelistings.cpp | |
parent | 250f05861eeec06b864e57c1fda6a996b6a94029 (diff) |
DD-71 : Implement a new item properties floater, calls the same code as the sidepanel in the inventory but with the back button hidden
Diffstat (limited to 'indra/newview/llfloatermarketplacelistings.cpp')
-rwxr-xr-x | indra/newview/llfloatermarketplacelistings.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/indra/newview/llfloatermarketplacelistings.cpp b/indra/newview/llfloatermarketplacelistings.cpp index 2cfbd97ef1..39df5f4abe 100755 --- a/indra/newview/llfloatermarketplacelistings.cpp +++ b/indra/newview/llfloatermarketplacelistings.cpp @@ -39,6 +39,7 @@ #include "llnotificationhandler.h" #include "llnotificationmanager.h" #include "llnotificationsutil.h" +#include "llsidepaneliteminfo.h" #include "lltextbox.h" #include "lltrans.h" @@ -629,7 +630,33 @@ void LLFloaterMarketplaceValidation::appendMessage(std::string& message) } } +//----------------------------------------------------------------------------- +// LLFloaterItemProperties +//----------------------------------------------------------------------------- +LLFloaterItemProperties::LLFloaterItemProperties(const LLSD& key) +: LLFloater(key) +{ +} +LLFloaterItemProperties::~LLFloaterItemProperties() +{ +} +BOOL LLFloaterItemProperties::postBuild() +{ + // On the standalone properties floater, we have no need for a back button... + LLSidepanelItemInfo* panel = getChild<LLSidepanelItemInfo>("item_panel"); + LLButton* back_btn = panel->getChild<LLButton>("back_btn"); + back_btn->setVisible(FALSE); + + return LLFloater::postBuild(); +} + +void LLFloaterItemProperties::onOpen(const LLSD& key) +{ + // Tell the panel which item it needs to visualize + LLSidepanelItemInfo* panel = getChild<LLSidepanelItemInfo>("item_panel"); + panel->setItemID(key["id"].asUUID()); +} |