LLPanelDummyClothingListItem::LLPanelDummyClothingListItem(LLWearableType::EType w_type, const LLPanelDummyClothingListItem::Params& params) : LLPanelWearableListItem(NULL, params), mWearableType(w_type) { LLPanel::Params panel_params(params.add_panel); applyXUILayout(panel_params, this); LLPanel* add_panelp = LLUICtrlFactory::create<LLPanel>(panel_params); addChild(add_panelp); if (add_panelp) { LLButton::Params button_params(params.add_btn); applyXUILayout(button_params, this); add_panelp->addChild(LLUICtrlFactory::create<LLButton>(button_params)); } setSeparatorVisible(true); }
LLSearchComboBox::LLSearchComboBox(const Params&p) : LLComboBox(p) { S32 btn_top = p.search_button.top_pad + p.search_button.rect.height; S32 btn_right = p.search_button.rect.width + p.search_button.left_pad; LLRect search_btn_rect(p.search_button.left_pad, btn_top, btn_right, p.search_button.top_pad); LLButton::Params button_params(p.search_button); button_params.name(std::string("search_btn")); button_params.rect(search_btn_rect) ; button_params.follows.flags(FOLLOWS_LEFT|FOLLOWS_TOP); button_params.tab_stop(false); button_params.click_callback.function(boost::bind(&LLSearchComboBox::onSelectionCommit, this)); mSearchButton = LLUICtrlFactory::create<LLButton>(button_params); mTextEntry->addChild(mSearchButton); mTextEntry->setPassDelete(TRUE); setButtonVisible(p.dropdown_button_visible); mTextEntry->setCommitCallback(boost::bind(&LLComboBox::onTextCommit, this, _2)); mTextEntry->setKeystrokeCallback(boost::bind(&LLComboBox::onTextEntry, this, _1), NULL); setCommitCallback(boost::bind(&LLSearchComboBox::onSelectionCommit, this)); setPrearrangeCallback(boost::bind(&LLSearchComboBox::onSearchPrearrange, this, _2)); mSearchButton->setCommitCallback(boost::bind(&LLSearchComboBox::onTextCommit, this, _2)); }