summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2013-01-16 19:22:36 -0800
committerMerov Linden <merov@lindenlab.com>2013-01-16 19:22:36 -0800
commit90adfec715eb93663b424a2ac28a70e965247df4 (patch)
tree890584d6d4ecb5015af9ff627bff7884050530f6 /indra
parent2f551019921ca12f9dd94f474a4d684e04d73dd7 (diff)
CHUI-682 : WIP : Instrument the menu display (or lack thereof).
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpaneloutfitedit.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llpaneloutfitedit.cpp b/indra/newview/llpaneloutfitedit.cpp
index d690a18477..c11539353a 100644
--- a/indra/newview/llpaneloutfitedit.cpp
+++ b/indra/newview/llpaneloutfitedit.cpp
@@ -155,6 +155,8 @@ class LLPanelOutfitEditGearMenu
public:
static LLToggleableMenu* create()
{
+ llinfos << "Merov debug : Create wearable gear menu" << llendl;
+
LLUICtrl::CommitCallbackRegistry::ScopedRegistrar registrar;
registrar.add("Wearable.Create", boost::bind(onCreate, _2));
@@ -169,6 +171,12 @@ public:
return menu;
}
+
+ static void pressed(LLToggleableMenu* menu)
+ {
+ menu->toggleVisibility();
+ llinfos << "Merov debug : The button is pressed! Show the menu!!!" << llendl;
+ }
private:
static void onCreate(const LLSD& param)
@@ -189,6 +197,8 @@ private:
LLView* menu_clothes = gMenuHolder->getChildView("COF.Gear.New_Clothes", FALSE);
LLView* menu_bp = gMenuHolder->getChildView("COF.Geear.New_Body_Parts", FALSE);
+ llinfos << "Merov debug : Populate wearable gear menu" << llendl;
+
for (U8 i = LLWearableType::WT_SHAPE; i != (U8) LLWearableType::WT_COUNT; ++i)
{
LLWearableType::EType type = (LLWearableType::EType) i;
@@ -197,6 +207,7 @@ private:
LLMenuItemCallGL::Params p;
p.name = type_name;
p.label = LLTrans::getString(LLWearableType::getTypeDefaultNewName(type));
+ llinfos << "Merov debug : menu label = " << LLTrans::getString(LLWearableType::getTypeDefaultNewName(type)) << llendl;
p.on_click.function_name = "Wearable.Create";
p.on_click.parameter = LLSD(type_name);
@@ -204,6 +215,8 @@ private:
menu_clothes : menu_bp;
LLUICtrlFactory::create<LLMenuItemCallGL>(p, parent);
}
+
+ llinfos << "Merov debug : clothes size = " << menu_clothes->getChildCount() << ", body part size = " << menu_bp->getChildCount() << llendl;
}
};
@@ -564,6 +577,7 @@ BOOL LLPanelOutfitEdit::postBuild()
mWearablesGearMenuBtn->setMenu(mAddWearablesGearMenu);
mGearMenu = LLPanelOutfitEditGearMenu::create();
+ mGearMenuBtn->setMouseDownCallback(boost::bind(&LLPanelOutfitEditGearMenu::pressed, mGearMenu));
mGearMenuBtn->setMenu(mGearMenu);
mSaveComboBtn.reset(new LLSaveOutfitComboBtn(this));