diff options
| author | Merov Linden <merov@lindenlab.com> | 2011-09-23 19:24:55 -0700 | 
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2011-09-23 19:24:55 -0700 | 
| commit | 105b15436d37149f6df71866125871448ee4fbcb (patch) | |
| tree | aa258070b5456629ea16e37f554984311bf51d84 | |
| parent | e42a9ec70c0e5fc98282c98358039445d0d68b84 (diff) | |
EXP-1027 : Fix the children creation code in LLToolBarView. Only a left panel is displayed now.
| -rw-r--r-- | indra/llui/lltoolbar.cpp | 2 | ||||
| -rw-r--r-- | indra/llui/lltoolbarview.cpp | 8 | ||||
| -rw-r--r-- | indra/llui/lltoolbarview.h | 3 | ||||
| -rw-r--r-- | indra/llui/llui.cpp | 1 | ||||
| -rw-r--r-- | indra/newview/llviewerwindow.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/panel_toolbar_view.xml | 4 | 
6 files changed, 13 insertions, 7 deletions
| diff --git a/indra/llui/lltoolbar.cpp b/indra/llui/lltoolbar.cpp index e052c1c876..ac07e6dd0b 100644 --- a/indra/llui/lltoolbar.cpp +++ b/indra/llui/lltoolbar.cpp @@ -33,7 +33,7 @@  #include "llcommandmanager.h"  #include "lltrans.h" -static LLDefaultChildRegistry::Register<LLToolBar> r1("toolbar"); +//static LLDefaultChildRegistry::Register<LLToolBar> r1("toolbar");  namespace LLToolBarEnums  { diff --git a/indra/llui/lltoolbarview.cpp b/indra/llui/lltoolbarview.cpp index 590cd4ffca..c99b573b35 100644 --- a/indra/llui/lltoolbarview.cpp +++ b/indra/llui/lltoolbarview.cpp @@ -84,10 +84,10 @@ void LLToolBarView::draw()  	// Debug draw  	LLColor4 back_color = LLColor4::blue;  	back_color[VALPHA] = 0.5f; -//	gl_rect_2d(getLocalRect(), back_color, TRUE); -//	gl_rect_2d(bottom_rect, LLColor4::red, TRUE); -//	gl_rect_2d(left_rect, LLColor4::green, TRUE); -//	gl_rect_2d(right_rect, LLColor4::yellow, TRUE); +	//gl_rect_2d(getLocalRect(), back_color, TRUE); +	//gl_rect_2d(bottom_rect, LLColor4::red, TRUE); +	//gl_rect_2d(left_rect, LLColor4::green, TRUE); +	//gl_rect_2d(right_rect, LLColor4::yellow, TRUE);  	LLUICtrl::draw();  } diff --git a/indra/llui/lltoolbarview.h b/indra/llui/lltoolbarview.h index 73278e226b..0e6545015d 100644 --- a/indra/llui/lltoolbarview.h +++ b/indra/llui/lltoolbarview.h @@ -41,6 +41,9 @@ public:  	virtual ~LLToolBarView();  	virtual void draw(); +	// valid children for LLToolBarView are stored in this registry +	typedef LLDefaultChildRegistry child_registry_t; +  protected:  	friend class LLUICtrlFactory;  	LLToolBarView(const Params&); diff --git a/indra/llui/llui.cpp b/indra/llui/llui.cpp index a4303780fd..4f129ccfba 100644 --- a/indra/llui/llui.cpp +++ b/indra/llui/llui.cpp @@ -96,6 +96,7 @@ static LLDefaultChildRegistry::Register<LLSearchEditor> register_search_editor("  // register other widgets which otherwise may not be linked in  static LLDefaultChildRegistry::Register<LLLoadingIndicator> register_loading_indicator("loading_indicator"); +static LLDefaultChildRegistry::Register<LLToolBar> register_toolbar("toolbar");  //  // Functions diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index e851398bf5..c651e86606 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -1786,7 +1786,7 @@ void LLViewerWindow::initBase()  		// Get a pointer to the toolbar view holder  		LLPanel* panel_holder = main_view->getChild<LLPanel>("toolbar_view_holder");  		// Load the toolbar view from file  -		gToolBarView = LLUICtrlFactory::getInstance()->createFromFile<LLToolBarView>("panel_toolbar_view.xml", panel_holder, LLPanel::child_registry_t::instance()); +		gToolBarView = LLUICtrlFactory::getInstance()->createFromFile<LLToolBarView>("panel_toolbar_view.xml", panel_holder, LLDefaultChildRegistry::instance());  		// Attach it to the toolbar view holder  		//panel_holder->addChild(gToolBarView);  	} diff --git a/indra/newview/skins/default/xui/en/panel_toolbar_view.xml b/indra/newview/skins/default/xui/en/panel_toolbar_view.xml index 33a19bcdb0..12c442d8f1 100644 --- a/indra/newview/skins/default/xui/en/panel_toolbar_view.xml +++ b/indra/newview/skins/default/xui/en/panel_toolbar_view.xml @@ -5,6 +5,8 @@   name="toolbar view"   height="500"   width="1024" + left="0" + top="0"    mouse_opaque="false"   tab_stop="false"   visible="true"> @@ -39,7 +41,7 @@    side="right"    visible="true" />   <panel -  follows="right|bottom|left" +  follows="top|bottom|left"    layout="topleft"    name="sizer_left"    height="500" | 
