diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llpanelinventory.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelinventory.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/linden/indra/newview/llpanelinventory.cpp b/linden/indra/newview/llpanelinventory.cpp index e39f45f..0d85e94 100644 --- a/linden/indra/newview/llpanelinventory.cpp +++ b/linden/indra/newview/llpanelinventory.cpp | |||
@@ -147,7 +147,7 @@ public: | |||
147 | virtual BOOL hasChildren() const { return FALSE; } | 147 | virtual BOOL hasChildren() const { return FALSE; } |
148 | virtual LLInventoryType::EType getInventoryType() const { return LLInventoryType::IT_NONE; } | 148 | virtual LLInventoryType::EType getInventoryType() const { return LLInventoryType::IT_NONE; } |
149 | // LLDragAndDropBridge functionality | 149 | // LLDragAndDropBridge functionality |
150 | virtual BOOL startDrag(EDragAndDropType* type, LLUUID* id); | 150 | virtual BOOL startDrag(EDragAndDropType* type, LLUUID* id) const; |
151 | virtual BOOL dragOrDrop(MASK mask, BOOL drop, | 151 | virtual BOOL dragOrDrop(MASK mask, BOOL drop, |
152 | EDragAndDropType cargo_type, | 152 | EDragAndDropType cargo_type, |
153 | void* cargo_data); | 153 | void* cargo_data); |
@@ -543,7 +543,7 @@ void LLTaskInvFVBridge::pasteFromClipboard() | |||
543 | { | 543 | { |
544 | } | 544 | } |
545 | 545 | ||
546 | BOOL LLTaskInvFVBridge::startDrag(EDragAndDropType* type, LLUUID* id) | 546 | BOOL LLTaskInvFVBridge::startDrag(EDragAndDropType* type, LLUUID* id) const |
547 | { | 547 | { |
548 | //llinfos << "LLTaskInvFVBridge::startDrag()" << llendl; | 548 | //llinfos << "LLTaskInvFVBridge::startDrag()" << llendl; |
549 | if(mPanel) | 549 | if(mPanel) |
@@ -659,9 +659,10 @@ void LLTaskInvFVBridge::buildContextMenu(LLMenuGL& menu, U32 flags) | |||
659 | for (itor = list->begin(); itor != list->end(); ++itor) | 659 | for (itor = list->begin(); itor != list->end(); ++itor) |
660 | { | 660 | { |
661 | LLString name = (*itor)->getName(); | 661 | LLString name = (*itor)->getName(); |
662 | if (name == "Task Buy" && (*itor)->getWidgetTag() == LL_MENU_ITEM_CALL_GL_TAG) | 662 | LLMenuItemCallGL* menu_itemp = dynamic_cast<LLMenuItemCallGL*>(*itor); |
663 | if (name == "Task Buy" && menu_itemp) | ||
663 | { | 664 | { |
664 | ((LLMenuItemCallGL*)(*itor))->setLabel(label); | 665 | menu_itemp->setLabel(label); |
665 | } | 666 | } |
666 | } | 667 | } |
667 | } | 668 | } |
@@ -1017,9 +1018,10 @@ void LLTaskSoundBridge::buildContextMenu(LLMenuGL& menu, U32 flags) | |||
1017 | for (itor = list->begin(); itor != list->end(); ++itor) | 1018 | for (itor = list->begin(); itor != list->end(); ++itor) |
1018 | { | 1019 | { |
1019 | LLString name = (*itor)->getName(); | 1020 | LLString name = (*itor)->getName(); |
1020 | if (name == "Task Buy" && (*itor)->getWidgetTag() == LL_MENU_ITEM_CALL_GL_TAG) | 1021 | LLMenuItemCallGL* menu_itemp = dynamic_cast<LLMenuItemCallGL*>(*itor); |
1022 | if (name == "Task Buy" && menu_itemp) | ||
1021 | { | 1023 | { |
1022 | ((LLMenuItemCallGL*)(*itor))->setLabel(label); | 1024 | menu_itemp->setLabel(label); |
1023 | } | 1025 | } |
1024 | } | 1026 | } |
1025 | } | 1027 | } |
@@ -1645,7 +1647,7 @@ void LLPanelInventory::reset() | |||
1645 | // this ensures that we never say "searching..." or "no items found" | 1647 | // this ensures that we never say "searching..." or "no items found" |
1646 | mFolders->getFilter()->setShowFolderState(LLInventoryFilter::SHOW_ALL_FOLDERS); | 1648 | mFolders->getFilter()->setShowFolderState(LLInventoryFilter::SHOW_ALL_FOLDERS); |
1647 | 1649 | ||
1648 | LLRect scroller_rect(0, mRect.getHeight(), mRect.getWidth(), 0); | 1650 | LLRect scroller_rect(0, getRect().getHeight(), getRect().getWidth(), 0); |
1649 | mScroller = new LLScrollableContainerView( | 1651 | mScroller = new LLScrollableContainerView( |
1650 | "task inventory scroller", scroller_rect, mFolders ); | 1652 | "task inventory scroller", scroller_rect, mFolders ); |
1651 | mScroller->setFollowsAll(); | 1653 | mScroller->setFollowsAll(); |
@@ -1795,8 +1797,7 @@ void LLPanelInventory::createFolderViews(LLInventoryObject* inventory_root, Inve | |||
1795 | 1797 | ||
1796 | typedef std::pair<LLInventoryObject*, LLFolderViewFolder*> obj_folder_pair; | 1798 | typedef std::pair<LLInventoryObject*, LLFolderViewFolder*> obj_folder_pair; |
1797 | 1799 | ||
1798 | // Replace LLLinkedList with std:: equivalant. | 1800 | void LLPanelInventory::createViewsForCategory(InventoryObjectList* inventory, |
1799 | void LLPanelInventory::createViewsForCategory(InventoryObjectList* inventory, //LLLinkedList<LLInventoryObject>* inventory, | ||
1800 | LLInventoryObject* parent, | 1801 | LLInventoryObject* parent, |
1801 | LLFolderViewFolder* folder) | 1802 | LLFolderViewFolder* folder) |
1802 | { | 1803 | { |
@@ -1933,7 +1934,7 @@ void LLPanelInventory::draw() | |||
1933 | if((LLUUID::null != mTaskUUID) && (!mHaveInventory)) | 1934 | if((LLUUID::null != mTaskUUID) && (!mHaveInventory)) |
1934 | { | 1935 | { |
1935 | LLFontGL::sSansSerif->renderUTF8("Loading contents...", 0, | 1936 | LLFontGL::sSansSerif->renderUTF8("Loading contents...", 0, |
1936 | (S32)(mRect.getWidth() * 0.5f), | 1937 | (S32)(getRect().getWidth() * 0.5f), |
1937 | 10, | 1938 | 10, |
1938 | LLColor4( 1, 1, 1, 1 ), | 1939 | LLColor4( 1, 1, 1, 1 ), |
1939 | LLFontGL::HCENTER, | 1940 | LLFontGL::HCENTER, |
@@ -1942,7 +1943,7 @@ void LLPanelInventory::draw() | |||
1942 | else if(mHaveInventory) | 1943 | else if(mHaveInventory) |
1943 | { | 1944 | { |
1944 | LLFontGL::sSansSerif->renderUTF8("No contents", 0, | 1945 | LLFontGL::sSansSerif->renderUTF8("No contents", 0, |
1945 | (S32)(mRect.getWidth() * 0.5f), | 1946 | (S32)(getRect().getWidth() * 0.5f), |
1946 | 10, | 1947 | 10, |
1947 | LLColor4( 1, 1, 1, 1 ), | 1948 | LLColor4( 1, 1, 1, 1 ), |
1948 | LLFontGL::HCENTER, | 1949 | LLFontGL::HCENTER, |