diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2011-07-29 17:01:24 -0700 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2011-07-29 17:01:24 -0700 |
commit | ed02d0c1fccbfd25ed54f6be5b051736834d2e27 (patch) | |
tree | 94090f29d253a7aa9a5ceed6d850e7e6df1b4e40 /indra/newview/llpanelmarketplaceoutbox.cpp | |
parent | 0b9327df241e1a5a4693c690810ce8c330e196ad (diff) |
EXP-843 Enable drag and drop to and from the outbox, with conditional warnings based on permissions
EXP-1034 Add confirmation dialog for moving no-copy items to outbox
Diffstat (limited to 'indra/newview/llpanelmarketplaceoutbox.cpp')
-rw-r--r-- | indra/newview/llpanelmarketplaceoutbox.cpp | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/indra/newview/llpanelmarketplaceoutbox.cpp b/indra/newview/llpanelmarketplaceoutbox.cpp index 74d0de3b30..9e1b28f168 100644 --- a/indra/newview/llpanelmarketplaceoutbox.cpp +++ b/indra/newview/llpanelmarketplaceoutbox.cpp @@ -38,7 +38,7 @@ #include "llsidepanelinventory.h" #include "llsidetray.h" #include "lltimer.h" - +#include "llfolderview.h" static LLRegisterPanelClassWrapper<LLPanelMarketplaceOutbox> t_panel_marketplace_outbox("panel_marketplace_outbox"); @@ -136,6 +136,27 @@ void LLPanelMarketplaceOutbox::setupInventoryPanel() outbox_inventory_placeholder->setVisible(FALSE); } +BOOL LLPanelMarketplaceOutbox::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, + EDragAndDropType cargo_type, + void* cargo_data, + EAcceptance* accept, + std::string& tooltip_msg) +{ + BOOL handled = LLPanel::handleDragAndDrop(x, y, mask, drop, cargo_type, cargo_data, accept, tooltip_msg); + + if (!handled && mInventoryPanel->getRootFolder()) + { + handled = mInventoryPanel->getRootFolder()->handleDragAndDropFromChild(mask,drop,cargo_type,cargo_data,accept,tooltip_msg); + } + + if (handled && mInventoryPanel->getRootFolder()) + { + mInventoryPanel->getRootFolder()->setDragAndDropThisFrame(); + } + + return handled; +} + bool LLPanelMarketplaceOutbox::isOutboxEmpty() const { // TODO: Check for contents of outbox @@ -170,9 +191,9 @@ void timeDelay(LLCoros::self& self, LLPanelMarketplaceOutbox* outboxPanel) } void LLPanelMarketplaceOutbox::onSyncButtonClicked() -{ +{ // TODO: Actually trigger sync to marketplace - + mSyncInProgress = true; updateSyncButtonStatus(); |