diff options
| -rw-r--r-- | indra/newview/llsidetray.h | 29 | 
1 files changed, 13 insertions, 16 deletions
| diff --git a/indra/newview/llsidetray.h b/indra/newview/llsidetray.h index 4c23a1920b..3c572dde95 100644 --- a/indra/newview/llsidetray.h +++ b/indra/newview/llsidetray.h @@ -40,6 +40,8 @@ class LLSideTray : public LLPanel, private LLDestroyClass<LLSideTray>  {  	friend class LLUICtrlFactory;  	friend class LLDestroyClass<LLSideTray>; +	friend class LLSideTrayTab; +	friend class LLSideTrayButton;  public:  	LOG_CLASS(LLSideTray); @@ -126,11 +128,6 @@ public:  	}  	/* -	 * get currently active tab -	 */ -    const LLSideTrayTab*	getActiveTab() const { return mActiveTab; } - -	/*       * collapse SideBar, hiding visible tab and moving tab buttons       * to the right corner of the screen       */ @@ -163,32 +160,28 @@ public:      virtual BOOL postBuild(); -	void		onTabButtonClick(std::string name); -	void		onToggleCollapse(); - -	bool		addChild		(LLView* view, S32 tab_group); -	bool		removeTab		(LLSideTrayTab* tab); // Used to detach tabs temporarily -	bool		addTab			(LLSideTrayTab* tab); // Used to re-attach tabs -  	BOOL		handleMouseDown	(S32 x, S32 y, MASK mask);  	void		reshape			(S32 width, S32 height, BOOL called_from_parent = TRUE); -	void		processTriState (); -	 +  	void		updateSidetrayVisibility();  	commit_signal_t& getCollapseSignal() { return mCollapseSignal; }  	void		handleLoginComplete(); -	LLSideTrayTab* getTab		(const std::string& name); -  	bool 		isTabAttached	(const std::string& name);  protected: +	bool		addChild		(LLView* view, S32 tab_group); +	bool		removeTab		(LLSideTrayTab* tab); // Used to detach tabs temporarily +	bool		addTab			(LLSideTrayTab* tab); // Used to re-attach tabs  	bool		hasTabs			(); +	const LLSideTrayTab*	getActiveTab() const { return mActiveTab; } +	LLSideTrayTab* 			getTab(const std::string& name); +  	void		createButtons	();  	LLButton*	createButton	(const std::string& name,const std::string& image,const std::string& tooltip, @@ -196,11 +189,15 @@ protected:  	void		arrange			();  	void		detachTabs		();  	void		reflectCollapseChange(); +	void		processTriState ();  	void		toggleTabButton	(LLSideTrayTab* tab);  	LLPanel*	openChildPanel	(LLSideTrayTab* tab, const std::string& panel_name, const LLSD& params); +	void		onTabButtonClick(std::string name); +	void		onToggleCollapse(); +  private:  	// Implementation of LLDestroyClass<LLSideTray>  	static void destroyClass() | 
