summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2013-04-11 19:02:16 -0700
committerMerov Linden <merov@lindenlab.com>2013-04-11 19:02:16 -0700
commitb05bf882dbf5cdcb4683b4c6201ea50a38491a7b (patch)
tree233f0aaead89eec311c888a350bc1a9ff3e79481
parent21d7c1d0ba7fa548e5ea88010bb72e47656a53f5 (diff)
CHUI-912 : WIP : Fix resize test when folder is empty, add more traces (to be deleted)
-rw-r--r--indra/llui/llfolderview.cpp4
-rwxr-xr-xindra/llui/llfolderviewitem.cpp6
-rw-r--r--indra/newview/llinventorypanel.cpp6
3 files changed, 13 insertions, 3 deletions
diff --git a/indra/llui/llfolderview.cpp b/indra/llui/llfolderview.cpp
index c6868c9538..5bca589bc4 100644
--- a/indra/llui/llfolderview.cpp
+++ b/indra/llui/llfolderview.cpp
@@ -662,7 +662,7 @@ void LLFolderView::draw()
// get preferable text height...
S32 pixel_height = mStatusTextBox->getTextPixelHeight();
- bool height_changed = local_rect.getHeight() != pixel_height;
+ bool height_changed = (local_rect.getHeight() < pixel_height);
if (height_changed)
{
// ... if it does not match current height, lets rearrange current view.
@@ -1616,7 +1616,7 @@ void LLFolderView::update()
{
getFolderViewModel()->getFilter().clearModified();
}
- llinfos << "Merov : LLFolderView::update: modified = " << getFolderViewModel()->getFilter().isModified() << ", default = " << getFolderViewModel()->getFilter().isNotDefault() << ", count = " << getFolderViewModel()->getFilter().getFilterCount() << llendl;
+ llinfos << "Merov : LLFolderView::update: parent = " << mParentPanel->getName() << ", modified = " << getFolderViewModel()->getFilter().isModified() << ", not default = " << getFolderViewModel()->getFilter().isNotDefault() << ", count = " << getFolderViewModel()->getFilter().getFilterCount() << llendl;
// automatically show matching items, and select first one if we had a selection
if (mNeedsAutoSelect)
diff --git a/indra/llui/llfolderviewitem.cpp b/indra/llui/llfolderviewitem.cpp
index 3693920e05..43267b428e 100755
--- a/indra/llui/llfolderviewitem.cpp
+++ b/indra/llui/llfolderviewitem.cpp
@@ -795,6 +795,12 @@ void LLFolderViewItem::drawLabel(const LLFontGL * font, const F32 x, const F32 y
void LLFolderViewItem::draw()
{
+ LLFolderViewModelItem& vmi = *getViewModelItem();
+ if (vmi.getSearchableName() == "A NOUNOURS")
+ {
+ llinfos << "Merov : LLFolderViewItem::draw : Special NOUNOURS, draw it!" << llendl;
+ }
+
const BOOL show_context = (getRoot() ? getRoot()->getShowSelectionContext() : FALSE);
const BOOL filled = show_context || (getRoot() ? getRoot()->getParentPanel()->hasFocus() : FALSE); // If we have keyboard focus, draw selection filled
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp
index 1430d9fe3a..17dd3024ea 100644
--- a/indra/newview/llinventorypanel.cpp
+++ b/indra/newview/llinventorypanel.cpp
@@ -194,7 +194,9 @@ LLFolderView * LLInventoryPanel::createFolderRoot(LLUUID root_id )
p.show_item_link_overlays = mShowItemLinkOverlays;
p.root = NULL;
p.options_menu = "menu_inventory.xml";
-
+
+ llinfos << "Merov : LLInventoryPanel::createFolderRoot, name = " << getName() << ", label = " << getLabel() << ", root id = " << root_id << llendl;
+
return LLUICtrlFactory::create<LLFolderView>(p);
}
@@ -403,6 +405,8 @@ void LLInventoryPanel::modelChanged(U32 mask)
static LLFastTimer::DeclareTimer FTM_REFRESH("Inventory Refresh");
LLFastTimer t2(FTM_REFRESH);
+ llinfos << "Merov : LLInventoryPanel::modelChanged, mask = " << mask << ", name = " << getName() << ", label = " << getLabel() << llendl;
+
bool handled = false;
if (!mViewsInitialized) return;