Skip to content
Snippets Groups Projects
Commit d60a5745 authored by Yuri Chebotarev's avatar Yuri Chebotarev
Browse files

merge

--HG--
branch : product-engine
parents 5689f288 d8617683
No related branches found
No related tags found
No related merge requests found
...@@ -900,14 +900,12 @@ void LLFloaterInventoryFinder::selectNoTypes(void* user_data) ...@@ -900,14 +900,12 @@ void LLFloaterInventoryFinder::selectNoTypes(void* user_data)
void LLPanelMainInventory::initListCommandsHandlers() void LLPanelMainInventory::initListCommandsHandlers()
{ {
mListCommands = getChild<LLPanel>("bottom_panel"); childSetAction("options_gear_btn", boost::bind(&LLPanelMainInventory::onGearButtonClick, this));
childSetAction("trash_btn", boost::bind(&LLPanelMainInventory::onTrashButtonClick, this));
childSetAction("add_btn", boost::bind(&LLPanelMainInventory::onAddButtonClick, this));
mListCommands->childSetAction("options_gear_btn", boost::bind(&LLPanelMainInventory::onGearButtonClick, this)); mTrashButton = getChild<LLDragAndDropButton>("trash_btn");
mListCommands->childSetAction("trash_btn", boost::bind(&LLPanelMainInventory::onTrashButtonClick, this)); mTrashButton->setDragAndDropHandler(boost::bind(&LLPanelMainInventory::handleDragAndDropToTrash, this
mListCommands->childSetAction("add_btn", boost::bind(&LLPanelMainInventory::onAddButtonClick, this));
LLDragAndDropButton* trash_btn = mListCommands->getChild<LLDragAndDropButton>("trash_btn");
trash_btn->setDragAndDropHandler(boost::bind(&LLPanelMainInventory::handleDragAndDropToTrash, this
, _4 // BOOL drop , _4 // BOOL drop
, _5 // EDragAndDropType cargo_type , _5 // EDragAndDropType cargo_type
, _7 // EAcceptance* accept , _7 // EAcceptance* accept
...@@ -923,7 +921,7 @@ void LLPanelMainInventory::updateListCommands() ...@@ -923,7 +921,7 @@ void LLPanelMainInventory::updateListCommands()
{ {
bool trash_enabled = isActionEnabled("delete"); bool trash_enabled = isActionEnabled("delete");
mListCommands->childSetEnabled("trash_btn", trash_enabled); mTrashButton->setEnabled(trash_enabled);
} }
void LLPanelMainInventory::onGearButtonClick() void LLPanelMainInventory::onGearButtonClick()
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "llpanel.h" #include "llpanel.h"
#include "llinventoryobserver.h" #include "llinventoryobserver.h"
#include "lldndbutton.h"
#include "llfolderview.h" #include "llfolderview.h"
...@@ -145,7 +146,7 @@ class LLPanelMainInventory : public LLPanel, LLInventoryObserver ...@@ -145,7 +146,7 @@ class LLPanelMainInventory : public LLPanel, LLInventoryObserver
*/ */
void setUploadCostIfNeeded(); void setUploadCostIfNeeded();
private: private:
LLPanel* mListCommands; LLDragAndDropButton* mTrashButton;
LLMenuGL* mMenuGearDefault; LLMenuGL* mMenuGearDefault;
LLMenuGL* mMenuAdd; LLMenuGL* mMenuAdd;
......
...@@ -538,6 +538,7 @@ ...@@ -538,6 +538,7 @@
<button <button
follows="right|bottom" follows="right|bottom"
height="23" height="23"
image_unselected="PushButton_On"
label="Teleport" label="Teleport"
layout="topleft" layout="topleft"
left="25" left="25"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment