diff options
| -rw-r--r-- | indra/newview/llfolderview.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/llfolderview.h | 3 | ||||
| -rw-r--r-- | indra/newview/llfolderviewitem.cpp | 7 | ||||
| -rw-r--r-- | indra/newview/llinventorypanel.cpp | 5 | ||||
| -rw-r--r-- | indra/newview/llinventorypanel.h | 7 | ||||
| -rw-r--r-- | indra/newview/lloutfitslist.cpp | 15 | ||||
| -rw-r--r-- | indra/newview/lloutfitslist.h | 1 | ||||
| -rw-r--r-- | indra/newview/llwearableitemslist.cpp | 24 | ||||
| -rw-r--r-- | indra/newview/llwearableitemslist.h | 16 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/panel_outfits_inventory.xml | 23 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/panel_scrolling_param.xml | 4 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/widgets/flat_list_view.xml | 2 | 
12 files changed, 40 insertions, 70 deletions
| diff --git a/indra/newview/llfolderview.cpp b/indra/newview/llfolderview.cpp index 74034cfbf7..f241d18a21 100644 --- a/indra/newview/llfolderview.cpp +++ b/indra/newview/llfolderview.cpp @@ -185,6 +185,7 @@ LLFolderView::LLFolderView(const Params& p)  	mRenameItem( NULL ),  	mNeedsScroll( FALSE ),  	mEnableScroll( true ), +	mUseLabelSuffix(p.use_label_suffix),  	mPinningSelectedItem(FALSE),  	mNeedsAutoSelect( FALSE ),  	mAutoSelectOverride(FALSE), @@ -961,7 +962,7 @@ void LLFolderView::draw()  		}  		mStatusTextBox->setValue(mStatusText);  		mStatusTextBox->setVisible( TRUE ); - +		  		// firstly reshape message textbox with current size. This is necessary to  		// LLTextBox::getTextPixelHeight works properly  		const LLRect local_rect = getLocalRect(); diff --git a/indra/newview/llfolderview.h b/indra/newview/llfolderview.h index 0dfdbd364b..55eb543f5f 100644 --- a/indra/newview/llfolderview.h +++ b/indra/newview/llfolderview.h @@ -96,6 +96,7 @@ public:  		Mandatory<LLPanel*>	    parent_panel;  		Optional<LLUUID>        task_id;  		Optional<std::string>   title; +		Optional<bool>			use_label_suffix;  	};  	LLFolderView(const Params&);  	virtual ~LLFolderView( void ); @@ -273,6 +274,7 @@ public:  	virtual S32	notify(const LLSD& info) ;  	void setEnableScroll(bool enable_scroll) { mEnableScroll = enable_scroll; } +	bool useLabelSuffix() { return mUseLabelSuffix; }  private:  	void updateRenamerPosition(); @@ -309,6 +311,7 @@ protected:  	BOOL							mNeedsAutoSelect;  	BOOL							mAutoSelectOverride;  	BOOL							mNeedsAutoRename; +	bool							mUseLabelSuffix;  	BOOL							mDebugFilters;  	U32								mSortOrder; diff --git a/indra/newview/llfolderviewitem.cpp b/indra/newview/llfolderviewitem.cpp index 0c437cf035..50b35bfc69 100644 --- a/indra/newview/llfolderviewitem.cpp +++ b/indra/newview/llfolderviewitem.cpp @@ -289,8 +289,11 @@ void LLFolderViewItem::refreshFromListener()  			mCreationDate = mListener->getCreationDate();  			dirtyFilter();  		} -		mLabelStyle = mListener->getLabelStyle(); -		mLabelSuffix = mListener->getLabelSuffix(); +		if (mRoot->useLabelSuffix()) +		{ +			mLabelStyle = mListener->getLabelStyle(); +			mLabelSuffix = mListener->getLabelSuffix(); +		}  	}  } diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index 83c57d5bb2..5e88140848 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -110,7 +110,7 @@ LLInventoryPanel::LLInventoryPanel(const LLInventoryPanel::Params& p) :  	}  } -BOOL LLInventoryPanel::postBuild() +void LLInventoryPanel::initFromParams(const LLInventoryPanel::Params& params)  {  	LLMemType mt(LLMemType::MTYPE_INVENTORY_POST_BUILD); @@ -128,6 +128,7 @@ BOOL LLInventoryPanel::postBuild()  		p.rect = folder_rect;  		p.parent_panel = this;  		p.tool_tip = p.name; +		p.use_label_suffix = params.use_label_suffix;  		mFolderRoot = LLUICtrlFactory::create<LLFolderView>(p);  		mFolderRoot->setAllowMultiSelect(mAllowMultiSelect);  	} @@ -174,8 +175,6 @@ BOOL LLInventoryPanel::postBuild()  		setSortOrder(gSavedSettings.getU32(DEFAULT_SORT_ORDER));  	}  	mFolderRoot->setSortOrder(getFilter()->getSortOrder()); - -	return TRUE;  }  LLInventoryPanel::~LLInventoryPanel() diff --git a/indra/newview/llinventorypanel.h b/indra/newview/llinventorypanel.h index 52e9ef799e..84603e8b4f 100644 --- a/indra/newview/llinventorypanel.h +++ b/indra/newview/llinventorypanel.h @@ -87,6 +87,7 @@ public:  		Optional<bool>						show_item_link_overlays;  		Optional<Filter>					filter;  		Optional<std::string>               start_folder; +		Optional<bool>						use_label_suffix;  		Params()  		:	sort_order_setting("sort_order_setting"), @@ -94,7 +95,8 @@ public:  			allow_multi_select("allow_multi_select", true),  			show_item_link_overlays("show_item_link_overlays", false),  			filter("filter"), -			start_folder("start_folder") +			start_folder("start_folder"), +			use_label_suffix("use_label_suffix", true)  		{}  	}; @@ -103,6 +105,7 @@ public:  	//--------------------------------------------------------------------  protected:  	LLInventoryPanel(const Params&); +	void initFromParams(const Params&);  	friend class LLUICtrlFactory;  public:  	virtual ~LLInventoryPanel(); @@ -110,8 +113,6 @@ public:  public:  	LLInventoryModel* getModel() { return mInventory; } -	BOOL postBuild(); -  	// LLView methods  	void draw();  	BOOL handleHover(S32 x, S32 y, MASK mask); diff --git a/indra/newview/lloutfitslist.cpp b/indra/newview/lloutfitslist.cpp index 03df2d2b20..de074d6aaf 100644 --- a/indra/newview/lloutfitslist.cpp +++ b/indra/newview/lloutfitslist.cpp @@ -278,9 +278,6 @@ void LLOutfitsList::refreshList(const LLUUID& category_id)  		tab->setRightMouseDownCallback(boost::bind(&LLOutfitsList::onAccordionTabRightClick, this,  			_1, _2, _3, cat_id)); -		tab->setDoubleClickCallback(boost::bind(&LLOutfitsList::onAccordionTabDoubleClick, this, -			_1, _2, _3, cat_id)); -  		// Setting tab focus callback to monitor currently selected outfit.  		tab->setFocusReceivedCallback(boost::bind(&LLOutfitsList::changeOutfitSelection, this, list, cat_id)); @@ -632,18 +629,6 @@ void LLOutfitsList::onAccordionTabRightClick(LLUICtrl* ctrl, S32 x, S32 y, const  	}  } -void LLOutfitsList::onAccordionTabDoubleClick(LLUICtrl* ctrl, S32 x, S32 y, const LLUUID& cat_id) -{ -	LLAccordionCtrlTab* tab = dynamic_cast<LLAccordionCtrlTab*>(ctrl); -	if(is_tab_header_clicked(tab, y) && cat_id.notNull()) -	{ -		LLViewerInventoryCategory* cat = gInventory.getCategory(cat_id); -		if (!cat) return; - -		LLAppearanceMgr::instance().wearInventoryCategory( cat, FALSE, FALSE ); -	} -} -  void LLOutfitsList::onWearableItemsListRightClick(LLUICtrl* ctrl, S32 x, S32 y)  {  	LLWearableItemsList* list = dynamic_cast<LLWearableItemsList*>(ctrl); diff --git a/indra/newview/lloutfitslist.h b/indra/newview/lloutfitslist.h index 478eaa50b3..5605044f41 100644 --- a/indra/newview/lloutfitslist.h +++ b/indra/newview/lloutfitslist.h @@ -131,7 +131,6 @@ private:  	void applyFilter(const std::string& new_filter_substring);  	void onAccordionTabRightClick(LLUICtrl* ctrl, S32 x, S32 y, const LLUUID& cat_id); -	void onAccordionTabDoubleClick(LLUICtrl* ctrl, S32 x, S32 y, const LLUUID& cat_id);  	void onWearableItemsListRightClick(LLUICtrl* ctrl, S32 x, S32 y);  	void onCOFChanged(); diff --git a/indra/newview/llwearableitemslist.cpp b/indra/newview/llwearableitemslist.cpp index f86838194e..5e9c4dcec8 100644 --- a/indra/newview/llwearableitemslist.cpp +++ b/indra/newview/llwearableitemslist.cpp @@ -106,24 +106,9 @@ LLPanelWearableOutfitItem* LLPanelWearableOutfitItem::create(LLViewerInventoryIt  	return list_item;  } -BOOL LLPanelWearableOutfitItem::handleDoubleClick(S32 x, S32 y, MASK mask) +LLPanelWearableOutfitItem::LLPanelWearableOutfitItem(LLViewerInventoryItem* item) +: LLPanelInventoryListItemBase(item)  { -	LLViewerInventoryItem* item = getItem(); -	if (item) -	{ -		LLUUID id = item->getUUID(); - -		if (get_is_item_worn(id)) -		{ -			LLAppearanceMgr::getInstance()->removeItemFromAvatar(id); -		} -		else -		{ -			LLAppearanceMgr::getInstance()->wearItemOnAvatar(id, true, false); -		} -	} - -	return LLUICtrl::handleDoubleClick(x, y, mask);  }  // virtual @@ -139,11 +124,6 @@ void LLPanelWearableOutfitItem::updateItem(const std::string& name)  	LLPanelInventoryListItemBase::updateItem(search_label);  } -LLPanelWearableOutfitItem::LLPanelWearableOutfitItem(LLViewerInventoryItem* item) -: LLPanelInventoryListItemBase(item) -{ -} -  //////////////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////////////  ////////////////////////////////////////////////////////////////////////// diff --git a/indra/newview/llwearableitemslist.h b/indra/newview/llwearableitemslist.h index 2f95c733aa..fe859075c4 100644 --- a/indra/newview/llwearableitemslist.h +++ b/indra/newview/llwearableitemslist.h @@ -56,13 +56,13 @@ class LLPanelWearableListItem : public LLPanelInventoryListItemBase  public:  	/** -	 * Shows buttons when mouse is over -	 */ +	* Shows buttons when mouse is over +	*/  	/*virtual*/ void onMouseEnter(S32 x, S32 y, MASK mask);  	/** -	 * Hides buttons when mouse is out -	 */ +	* Hides buttons when mouse is out +	*/  	/*virtual*/ void onMouseLeave(S32 x, S32 y, MASK mask);  protected: @@ -84,18 +84,12 @@ public:  	static LLPanelWearableOutfitItem* create(LLViewerInventoryItem* item);  	/** -	 * Puts item on if it is not worn by agent -	 * otherwise takes it off on double click. -	 */ -	/*virtual*/ BOOL handleDoubleClick(S32 x, S32 y, MASK mask); - -	/**  	 * Updates item name and (worn) suffix.  	 */  	/*virtual*/ void updateItem(const std::string& name); -protected: +protected:  	LLPanelWearableOutfitItem(LLViewerInventoryItem* item);  }; diff --git a/indra/newview/skins/default/xui/en/panel_outfits_inventory.xml b/indra/newview/skins/default/xui/en/panel_outfits_inventory.xml index 37eb5eaa98..c1e5ae50e6 100644 --- a/indra/newview/skins/default/xui/en/panel_outfits_inventory.xml +++ b/indra/newview/skins/default/xui/en/panel_outfits_inventory.xml @@ -48,6 +48,7 @@             mouse_opaque="true"             name="cof_tab"             start_folder="Current Outfit" +           use_label_suffix="false"              width="315" />     </tab_container>  	 <panel @@ -83,18 +84,18 @@        width="241"          /> -     <dnd_button -      follows="bottom|right" -      height="25" -      image_hover_unselected="Toolbar_Right_Over" -      image_overlay="TrashItem_Off" -      image_selected="Toolbar_Right_Selected" -      image_unselected="Toolbar_Right_Off" -      layout="topleft" -      left_pad="1" -      name="trash_btn" +        <dnd_button +         follows="bottom|right" +         height="25" +         image_hover_unselected="Toolbar_Right_Over" +          image_overlay="TrashItem_Off" +          image_selected="Toolbar_Right_Selected" +          image_unselected="Toolbar_Right_Off" +         layout="topleft" +         left_pad="1" +         name="trash_btn"        tool_tip="Delete selected outfit" -      width="31"/> +         width="31"/>                <button         follows="bottom|left"         height="23" diff --git a/indra/newview/skins/default/xui/en/panel_scrolling_param.xml b/indra/newview/skins/default/xui/en/panel_scrolling_param.xml index 19eb4bb0d6..78d64620a5 100644 --- a/indra/newview/skins/default/xui/en/panel_scrolling_param.xml +++ b/indra/newview/skins/default/xui/en/panel_scrolling_param.xml @@ -12,6 +12,8 @@       layout="topleft"       left="12"       name="min param text" +     text_color="EmphasisColor" +     font_shadow="hard"       top="120"       width="120" />      <text @@ -20,6 +22,8 @@       layout="topleft"       left="155"       name="max param text" +     text_color="EmphasisColor"  +     font_shadow="hard"       top_delta="0"       width="120" />      <text diff --git a/indra/newview/skins/default/xui/en/widgets/flat_list_view.xml b/indra/newview/skins/default/xui/en/widgets/flat_list_view.xml index a71b293f31..e05ddf9815 100644 --- a/indra/newview/skins/default/xui/en/widgets/flat_list_view.xml +++ b/indra/newview/skins/default/xui/en/widgets/flat_list_view.xml @@ -11,6 +11,6 @@       name="no_items_msg"       v_pad="10"       h_pad="10" -     value="There are no any items in the list" +     value="No matches found"       wrap="true" />  </flat_list_view>
\ No newline at end of file | 
