Alchemy llcharacter and llcommon merge pass.
This commit is contained in:
@@ -1518,7 +1518,7 @@ BOOL LLAgent::getAFK() const
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLAgent::setDoNotDisturb(bool pIsDoNotDisturb)
|
||||
{
|
||||
sendAnimationRequest(ANIM_AGENT_BUSY, pIsDoNotDisturb ? ANIM_REQUEST_START : ANIM_REQUEST_STOP);
|
||||
sendAnimationRequest(ANIM_AGENT_DO_NOT_DISTURB, pIsDoNotDisturb ? ANIM_REQUEST_START : ANIM_REQUEST_STOP);
|
||||
mIsDoNotDisturb = pIsDoNotDisturb;
|
||||
if (gBusyMenu)
|
||||
{
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
virtual void move( LLFolderViewEventListener* parent_listener ) = 0;
|
||||
virtual BOOL isItemCopyable() const = 0;
|
||||
virtual BOOL copyToClipboard() const = 0;
|
||||
virtual void cutToClipboard() = 0;
|
||||
virtual BOOL cutToClipboard() = 0;
|
||||
virtual BOOL isClipboardPasteable() const = 0;
|
||||
virtual void pasteFromClipboard(bool only_copies = false) = 0;
|
||||
virtual void pasteLinkFromClipboard() = 0;
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
// MAX ITEMS is based on (sizeof(uuid)+2) * count must be < MTUBYTES
|
||||
// or 18 * count < 1200 => count < 1200/18 => 66. I've cut it down a
|
||||
// bit from there to give some pad.
|
||||
const size_t MAX_ITEMS = 42;
|
||||
const size_t MAX_ITEMS = 50;
|
||||
|
||||
class LLGiveable : public LLInventoryCollectFunctor
|
||||
{
|
||||
|
||||
@@ -275,12 +275,14 @@ BOOL LLInvFVBridge::isLibraryItem() const
|
||||
/**
|
||||
* @brief Adds this item into clipboard storage
|
||||
*/
|
||||
void LLInvFVBridge::cutToClipboard()
|
||||
BOOL LLInvFVBridge::cutToClipboard()
|
||||
{
|
||||
if(isItemMovable())
|
||||
{
|
||||
LLInventoryClipboard::instance().cut(mUUID);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
BOOL LLInvFVBridge::copyToClipboard() const
|
||||
@@ -1450,7 +1452,7 @@ bool LLInvFVBridge::canListOnMarketplaceNow() const
|
||||
// +=================================================+
|
||||
// | InventoryFVBridgeBuilder |
|
||||
// +=================================================+
|
||||
LLInvFVBridge* LLInventoryFVBridgeBuilder::createBridge(LLAssetType::EType asset_type,
|
||||
LLInvFVBridge* LLInventoryFolderViewModelBuilder::createBridge(LLAssetType::EType asset_type,
|
||||
LLAssetType::EType actual_asset_type,
|
||||
LLInventoryType::EType inv_type,
|
||||
LLInventoryPanel* inventory,
|
||||
@@ -2490,6 +2492,7 @@ BOOL LLFolderBridge::dragCategoryIntoFolder(LLInventoryCategory* inv_cat,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if target is an outfit or current outfit folder we use link
|
||||
if (move_is_into_current_outfit || move_is_into_outfit)
|
||||
{
|
||||
@@ -3278,18 +3281,18 @@ void LLFolderBridge::pasteFromClipboard(bool only_copies)
|
||||
NULL);
|
||||
}
|
||||
// [/SL:KB]
|
||||
else
|
||||
{
|
||||
copy_inventory_item(
|
||||
gAgent.getID(),
|
||||
item->getPermissions().getOwner(),
|
||||
item->getUUID(),
|
||||
parent_id,
|
||||
std::string(),
|
||||
LLPointer<LLInventoryCallback>(NULL));
|
||||
else
|
||||
{
|
||||
copy_inventory_item(
|
||||
gAgent.getID(),
|
||||
item->getPermissions().getOwner(),
|
||||
item->getUUID(),
|
||||
parent_id,
|
||||
std::string(),
|
||||
LLPointer<LLInventoryCallback>(NULL));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Change mode to copy for next paste
|
||||
LLInventoryClipboard::instance().setCutMode(false);
|
||||
@@ -6796,7 +6799,7 @@ LLInvFVBridge* LLRecentInventoryBridgeBuilder::createBridge(
|
||||
}
|
||||
else
|
||||
{
|
||||
new_listener = LLInventoryFVBridgeBuilder::createBridge(asset_type,
|
||||
new_listener = LLInventoryFolderViewModelBuilder::createBridge(asset_type,
|
||||
actual_asset_type,
|
||||
inv_type,
|
||||
inventory,
|
||||
|
||||
@@ -111,7 +111,7 @@ public:
|
||||
virtual void move(LLFolderViewEventListener* new_parent_bridge) {}
|
||||
virtual BOOL isItemCopyable() const { return FALSE; }
|
||||
virtual BOOL copyToClipboard() const;
|
||||
virtual void cutToClipboard();
|
||||
virtual BOOL cutToClipboard();
|
||||
virtual BOOL isClipboardPasteable() const;
|
||||
bool isClipboardPasteableAsCopy() const;
|
||||
virtual BOOL isClipboardPasteableAsLink() const;
|
||||
@@ -187,11 +187,11 @@ class AIFilePicker;
|
||||
// This class intended to build Folder View Bridge via LLInvFVBridge::createBridge.
|
||||
// It can be overridden with another way of creation necessary Inventory-Folder-View-Bridge.
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
class LLInventoryFVBridgeBuilder
|
||||
class LLInventoryFolderViewModelBuilder
|
||||
{
|
||||
public:
|
||||
LLInventoryFVBridgeBuilder() {}
|
||||
virtual ~LLInventoryFVBridgeBuilder() {}
|
||||
LLInventoryFolderViewModelBuilder() {}
|
||||
virtual ~LLInventoryFolderViewModelBuilder() {}
|
||||
virtual LLInvFVBridge* createBridge(LLAssetType::EType asset_type,
|
||||
LLAssetType::EType actual_asset_type,
|
||||
LLInventoryType::EType inv_type,
|
||||
@@ -631,7 +631,7 @@ public:
|
||||
};
|
||||
|
||||
// Bridge builder to create Inventory-Folder-View-Bridge for Recent Inventory Panel
|
||||
class LLRecentInventoryBridgeBuilder : public LLInventoryFVBridgeBuilder
|
||||
class LLRecentInventoryBridgeBuilder : public LLInventoryFolderViewModelBuilder
|
||||
{
|
||||
public:
|
||||
LLRecentInventoryBridgeBuilder() {}
|
||||
|
||||
@@ -58,7 +58,7 @@ const std::string LLInventoryPanel::DEFAULT_SORT_ORDER = std::string("InventoryS
|
||||
const std::string LLInventoryPanel::RECENTITEMS_SORT_ORDER = std::string("RecentItemsSortOrder");
|
||||
const std::string LLInventoryPanel::WORNITEMS_SORT_ORDER = std::string("WornItemsSortOrder");
|
||||
const std::string LLInventoryPanel::INHERIT_SORT_ORDER = std::string("");
|
||||
static const LLInventoryFVBridgeBuilder INVENTORY_BRIDGE_BUILDER;
|
||||
static const LLInventoryFolderViewModelBuilder INVENTORY_BRIDGE_BUILDER;
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -52,7 +52,7 @@ class LLFolderViewItem;
|
||||
class LLInventoryFilter;
|
||||
class LLInventoryModel;
|
||||
class LLInvFVBridge;
|
||||
class LLInventoryFVBridgeBuilder;
|
||||
class LLInventoryFolderViewModelBuilder;
|
||||
class LLMenuBarGL;
|
||||
class LLCheckBoxCtrl;
|
||||
class LLSpinCtrl;
|
||||
@@ -172,13 +172,13 @@ protected:
|
||||
|
||||
LLPointer<LLFolderViewGroupedItemBridge> mGroupedItemBridge;
|
||||
/**
|
||||
* Pointer to LLInventoryFVBridgeBuilder.
|
||||
* Pointer to LLInventoryFolderViewModelBuilder.
|
||||
*
|
||||
* It is set in LLInventoryPanel's constructor and can be overridden in derived classes with
|
||||
* another implementation.
|
||||
* Take into account it will not be deleted by LLInventoryPanel itself.
|
||||
*/
|
||||
const LLInventoryFVBridgeBuilder* mInvFVBridgeBuilder;
|
||||
const LLInventoryFolderViewModelBuilder* mInvFVBridgeBuilder;
|
||||
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
@@ -130,7 +130,7 @@ public:
|
||||
virtual void move(LLFolderViewEventListener* parent_listener);
|
||||
virtual BOOL isItemCopyable() const;
|
||||
virtual BOOL copyToClipboard() const;
|
||||
virtual void cutToClipboard();
|
||||
virtual BOOL cutToClipboard();
|
||||
virtual BOOL isClipboardPasteable() const;
|
||||
virtual void pasteFromClipboard(bool only_copies = false);
|
||||
virtual void pasteLinkFromClipboard();
|
||||
@@ -596,8 +596,9 @@ BOOL LLTaskInvFVBridge::copyToClipboard() const
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void LLTaskInvFVBridge::cutToClipboard()
|
||||
BOOL LLTaskInvFVBridge::cutToClipboard()
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL LLTaskInvFVBridge::isClipboardPasteable() const
|
||||
|
||||
@@ -1577,7 +1577,7 @@ void LLVOAvatar::initInstance(void)
|
||||
if (LLCharacter::sInstances.size() == 1)
|
||||
{
|
||||
LLKeyframeMotion::setVFS(gStaticVFS);
|
||||
registerMotion( ANIM_AGENT_BUSY, LLNullMotion::create );
|
||||
registerMotion(ANIM_AGENT_DO_NOT_DISTURB, LLNullMotion::create );
|
||||
registerMotion( ANIM_AGENT_CROUCH, LLKeyframeStandMotion::create );
|
||||
registerMotion( ANIM_AGENT_CROUCHWALK, LLKeyframeWalkMotion::create );
|
||||
registerMotion( ANIM_AGENT_EXPRESS_AFRAID, LLEmote::create );
|
||||
@@ -3583,7 +3583,7 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name)
|
||||
bool fRlvShowNames = gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES);
|
||||
// [/RLVa:KB]
|
||||
bool is_away = mSignaledAnimations.find(ANIM_AGENT_AWAY) != mSignaledAnimations.end();
|
||||
bool is_busy = mSignaledAnimations.find(ANIM_AGENT_BUSY) != mSignaledAnimations.end();
|
||||
bool is_busy = mSignaledAnimations.find(ANIM_AGENT_DO_NOT_DISTURB) != mSignaledAnimations.end();
|
||||
bool is_appearance = mSignaledAnimations.find(ANIM_AGENT_CUSTOMIZE) != mSignaledAnimations.end();
|
||||
bool is_muted;
|
||||
if (isSelf())
|
||||
@@ -6030,10 +6030,10 @@ BOOL LLVOAvatar::processSingleAnimationStateChange( const LLUUID& anim_id, BOOL
|
||||
{
|
||||
sitDown(FALSE);
|
||||
}
|
||||
if ((anim_id == ANIM_AGENT_BUSY) && gAgent.isDoNotDisturb())
|
||||
if ((anim_id == ANIM_AGENT_DO_NOT_DISTURB) && gAgent.isDoNotDisturb())
|
||||
{
|
||||
// re-assert DND tag animation
|
||||
gAgent.sendAnimationRequest(ANIM_AGENT_BUSY, ANIM_REQUEST_START);
|
||||
gAgent.sendAnimationRequest(ANIM_AGENT_DO_NOT_DISTURB, ANIM_REQUEST_START);
|
||||
return result;
|
||||
}
|
||||
stopMotion(anim_id);
|
||||
|
||||
Reference in New Issue
Block a user