diff options
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llimview.cpp | 19 | ||||
| -rw-r--r-- | indra/newview/llimview.h | 5 | ||||
| -rw-r--r-- | indra/newview/skins/default/textures/windows/Flyout_Left.png | bin | 0 -> 271 bytes | |||
| -rw-r--r-- | indra/newview/skins/default/textures/windows/Flyout_Right.png | bin | 0 -> 280 bytes | |||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_outgoing_call.xml | 1 | 
5 files changed, 23 insertions, 2 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 33c6b2218c..c751394455 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -1681,7 +1681,8 @@ BOOL LLCallDialog::postBuild()  		return FALSE;  	LLView *anchor_panel = gToolBarView->findChildView("speak"); -	setDockControl(new LLDockControl(anchor_panel, this, getDockTongue(), LLDockControl::TOP)); +	LLDockControl::DocAt dock_pos = getDockControlPos(); +	setDockControl(new LLDockControl(anchor_panel, this, getDockTongue(dock_pos), dock_pos));  	setUseTongue(anchor_panel); @@ -1751,6 +1752,22 @@ void LLCallDialog::setIcon(const LLSD& session_id, const LLSD& participant_id)  	}  } +LLDockControl::DocAt LLCallDialog::getDockControlPos() +{ +	LLToolBar* tool_bar = NULL; + +	if((tool_bar = gToolBarView->getChild<LLToolBar>("toolbar_left")) && tool_bar->hasChild("speak", true)) +	{ +		return LLDockControl::RIGHT; // Speak button in the left toolbar so the call floater should be to the right of the speak button +	} +	else if((tool_bar = gToolBarView->getChild<LLToolBar>("toolbar_right")) && tool_bar->hasChild("speak", true)) +	{ +		return LLDockControl::LEFT; // Speak button in the right toolbar so the call floater should be to the left of the speak button +	} + +	return LLDockControl::TOP; +} +  bool LLCallDialog::lifetimeHasExpired()  {  	if (mLifetimeTimer.getStarted()) diff --git a/indra/newview/llimview.h b/indra/newview/llimview.h index 93b604d36a..33c7ae9e54 100644 --- a/indra/newview/llimview.h +++ b/indra/newview/llimview.h @@ -491,7 +491,7 @@ class LLCallDialog : public LLDockableFloater  {  public:  	LLCallDialog(const LLSD& payload); -	~LLCallDialog(); +	virtual ~LLCallDialog();  	virtual BOOL postBuild(); @@ -519,6 +519,9 @@ protected:  	void setIcon(const LLSD& session_id, const LLSD& participant_id);  	LLSD mPayload; + +private: +	LLDockControl::DocAt getDockControlPos();  };  class LLIncomingCallDialog : public LLCallDialog diff --git a/indra/newview/skins/default/textures/windows/Flyout_Left.png b/indra/newview/skins/default/textures/windows/Flyout_Left.png Binary files differnew file mode 100644 index 0000000000..6ac9fe2efd --- /dev/null +++ b/indra/newview/skins/default/textures/windows/Flyout_Left.png diff --git a/indra/newview/skins/default/textures/windows/Flyout_Right.png b/indra/newview/skins/default/textures/windows/Flyout_Right.png Binary files differnew file mode 100644 index 0000000000..aa1f0625aa --- /dev/null +++ b/indra/newview/skins/default/textures/windows/Flyout_Right.png diff --git a/indra/newview/skins/default/xui/en/floater_outgoing_call.xml b/indra/newview/skins/default/xui/en/floater_outgoing_call.xml index 9db6568ee3..ffbb6aa28b 100644 --- a/indra/newview/skins/default/xui/en/floater_outgoing_call.xml +++ b/indra/newview/skins/default/xui/en/floater_outgoing_call.xml @@ -8,6 +8,7 @@   layout="topleft"   name="outgoing call"   help_topic="outgoing_call" + save_dock_state="true"   title="CALLING"   width="410">      <floater.string  | 
