aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llinventoryview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llinventoryview.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-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/llinventoryview.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/linden/indra/newview/llinventoryview.cpp b/linden/indra/newview/llinventoryview.cpp
index c6c8548..340608b 100644
--- a/linden/indra/newview/llinventoryview.cpp
+++ b/linden/indra/newview/llinventoryview.cpp
@@ -453,7 +453,7 @@ LLInventoryView::LLInventoryView(const LLString& name,
453 LLFloater(name, rect, "Inventory", RESIZE_YES, 453 LLFloater(name, rect, "Inventory", RESIZE_YES,
454 INV_MIN_WIDTH, INV_MIN_HEIGHT, DRAG_ON_TOP, 454 INV_MIN_WIDTH, INV_MIN_HEIGHT, DRAG_ON_TOP,
455 MINIMIZE_NO, CLOSE_YES) 455 MINIMIZE_NO, CLOSE_YES)
456 //LLViewHandle mFinderHandle takes care of its own initialization 456 //LLHandle<LLFloater> mFinderHandle takes care of its own initialization
457{ 457{
458 init(inventory); 458 init(inventory);
459} 459}
@@ -464,7 +464,7 @@ LLInventoryView::LLInventoryView(const LLString& name,
464 LLFloater(name, rect, "Inventory", RESIZE_YES, 464 LLFloater(name, rect, "Inventory", RESIZE_YES,
465 INV_MIN_WIDTH, INV_MIN_HEIGHT, DRAG_ON_TOP, 465 INV_MIN_WIDTH, INV_MIN_HEIGHT, DRAG_ON_TOP,
466 MINIMIZE_NO, CLOSE_YES) 466 MINIMIZE_NO, CLOSE_YES)
467 //LLViewHandle mFinderHandle takes care of its own initialization 467 //LLHandle<LLFloater> mFinderHandle takes care of its own initialization
468{ 468{
469 init(inventory); 469 init(inventory);
470 setRect(rect); // override XML 470 setRect(rect); // override XML
@@ -767,6 +767,7 @@ void LLInventoryView::changed(U32 mask)
767 } 767 }
768 title << mFilterText; 768 title << mFilterText;
769 setTitle(title.str()); 769 setTitle(title.str());
770
770} 771}
771 772
772// static 773// static
@@ -884,7 +885,7 @@ void LLInventoryView::toggleFindOptions()
884 if (!floater) 885 if (!floater)
885 { 886 {
886 LLInventoryViewFinder * finder = new LLInventoryViewFinder("Inventory Finder", 887 LLInventoryViewFinder * finder = new LLInventoryViewFinder("Inventory Finder",
887 LLRect(mRect.mLeft - INV_FINDER_WIDTH, mRect.mTop, mRect.mLeft, mRect.mTop - INV_FINDER_HEIGHT), 888 LLRect(getRect().mLeft - INV_FINDER_WIDTH, getRect().mTop, getRect().mLeft, getRect().mTop - INV_FINDER_HEIGHT),
888 this); 889 this);
889 mFinderHandle = finder->getHandle(); 890 mFinderHandle = finder->getHandle();
890 finder->open(); /*Flawfinder: ignore*/ 891 finder->open(); /*Flawfinder: ignore*/
@@ -1067,7 +1068,7 @@ BOOL LLInventoryView::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
1067 { 1068 {
1068 if(needsToScroll) 1069 if(needsToScroll)
1069 { 1070 {
1070 mFilterTabs->setDragAndDropDelayTimer(); 1071 mFilterTabs->startDragAndDropDelayTimer();
1071 } 1072 }
1072 } 1073 }
1073 1074
@@ -1235,13 +1236,13 @@ BOOL LLInventoryPanel::postBuild()
1235 1236
1236 LLRect folder_rect(0, 1237 LLRect folder_rect(0,
1237 0, 1238 0,
1238 mRect.getWidth(), 1239 getRect().getWidth(),
1239 0); 1240 0);
1240 mFolders = new LLFolderView(mName, NULL, folder_rect, LLUUID::null, this); 1241 mFolders = new LLFolderView(getName(), NULL, folder_rect, LLUUID::null, this);
1241 mFolders->setAllowMultiSelect(mAllowMultiSelect); 1242 mFolders->setAllowMultiSelect(mAllowMultiSelect);
1242 1243
1243 // scroller 1244 // scroller
1244 LLRect scroller_view_rect = mRect; 1245 LLRect scroller_view_rect = getRect();
1245 scroller_view_rect.translate(-scroller_view_rect.mLeft, -scroller_view_rect.mBottom); 1246 scroller_view_rect.translate(-scroller_view_rect.mLeft, -scroller_view_rect.mBottom);
1246 mScroller = new LLScrollableContainerView("Inventory Scroller", 1247 mScroller = new LLScrollableContainerView("Inventory Scroller",
1247 scroller_view_rect, 1248 scroller_view_rect,