diff options
| author | callum <none@none> | 2011-10-14 15:22:10 -0700 | 
|---|---|---|
| committer | callum <none@none> | 2011-10-14 15:22:10 -0700 | 
| commit | bfda156022df272cda390e22dd31937b74eceb39 (patch) | |
| tree | 202cf50815a6304d4262955a1c097d80641452b5 /indra/newview/llviewerwindow.cpp | |
| parent | baed4d8f4338e8788d1948af4c49d01fc8f32a98 (diff) | |
| parent | bdf6363e6aa4216913607e83bfc5e159f2535407 (diff) | |
merge with head
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
| -rw-r--r-- | indra/newview/llviewerwindow.cpp | 25 | 
1 files changed, 12 insertions, 13 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 0873e4f6ea..af7c92ff0f 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -84,6 +84,7 @@  // newview includes  #include "llagent.h"  #include "llbox.h" +#include "llchicletbar.h"  #include "llconsole.h"  #include "llviewercontrol.h"  #include "llcylinder.h" @@ -186,7 +187,6 @@  #include "llviewerjoystick.h"  #include "llviewernetwork.h"  #include "llpostprocess.h" -#include "llbottomtray.h"  #include "llnearbychatbar.h"  #include "llagentui.h"  #include "llwearablelist.h" @@ -1853,13 +1853,12 @@ void LLViewerWindow::initWorldUI()  	//getRootView()->sendChildToFront(gFloaterView);  	//getRootView()->sendChildToFront(gSnapshotFloaterView); -	// new bottom panel -	LLPanel* bottom_tray_container = getRootView()->getChild<LLPanel>("bottom_tray_container"); -	LLBottomTray* bottom_tray = LLBottomTray::getInstance(); -	bottom_tray->setShape(bottom_tray_container->getLocalRect()); -	bottom_tray->setFollowsAll(); -	bottom_tray_container->addChild(bottom_tray); -	bottom_tray_container->setVisible(TRUE); +	LLPanel* chiclet_container = getRootView()->getChild<LLPanel>("chiclet_container"); +	LLChicletBar* chiclet_bar = LLChicletBar::getInstance(); +	chiclet_bar->setShape(chiclet_container->getLocalRect()); +	chiclet_bar->setFollowsAll(); +	chiclet_container->addChild(chiclet_bar); +	chiclet_container->setVisible(TRUE);  	LLRect morph_view_rect = full_window;  	morph_view_rect.stretch( -STATUS_BAR_HEIGHT ); @@ -2168,10 +2167,10 @@ void LLViewerWindow::reshape(S32 width, S32 height)  // Hide normal UI when a logon fails  void LLViewerWindow::setNormalControlsVisible( BOOL visible )  { -	if(LLBottomTray::instanceExists()) +	if(LLChicletBar::instanceExists())  	{ -		LLBottomTray::getInstance()->setVisible(visible); -		LLBottomTray::getInstance()->setEnabled(visible); +		LLChicletBar::getInstance()->setVisible(visible); +		LLChicletBar::getInstance()->setEnabled(visible);  	}  	if ( gMenuBarView ) @@ -4926,8 +4925,8 @@ S32 LLViewerWindow::getChatConsoleBottomPad()  {  	S32 offset = 0; -	if(LLBottomTray::instanceExists()) -		offset += LLBottomTray::getInstance()->getRect().getHeight(); +	if(gToolBarView) +		offset += gToolBarView->getChild<LLView>("bottom_toolbar_panel")->getRect().getHeight();  	return offset;  }  | 
