From f7449bdc570e97a2ded2864779c72cce7f52e608 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Wed, 18 Jul 2012 14:47:16 -0400 Subject: Make "Log In" button (etc.) move with start/grid combo visibility. The "Start at:" combo box and the grid-selector box can be turned on and off with checkboxes on the Preferences floater. Break the bottom-left layout_panel on panel_login into several different layout_panels so when these UI elements disappear, other controls move left to fill the holes. Similarly, when you turn on either or both of the UI elements in question, the remaining controls in that general bottom-left area move right to accommodate. Tweak C++ and non-English panel_login.xml overrides to reflect widgets' containment in new layout_panel elements. Discard obsolete "mode_selection_text" and "mode_combo" translations from non- English panel_login.xml overrides. --- indra/newview/llpanellogin.cpp | 13 +++--- indra/newview/skins/default/xui/da/panel_login.xml | 15 +++--- indra/newview/skins/default/xui/de/panel_login.xml | 15 +++--- indra/newview/skins/default/xui/en/panel_login.xml | 53 ++++++++++++++++------ indra/newview/skins/default/xui/es/panel_login.xml | 15 +++--- indra/newview/skins/default/xui/fr/panel_login.xml | 15 +++--- indra/newview/skins/default/xui/it/panel_login.xml | 15 +++--- indra/newview/skins/default/xui/ja/panel_login.xml | 15 +++--- indra/newview/skins/default/xui/pl/panel_login.xml | 15 +++--- indra/newview/skins/default/xui/pt/panel_login.xml | 15 +++--- indra/newview/skins/default/xui/ru/panel_login.xml | 15 +++--- indra/newview/skins/default/xui/tr/panel_login.xml | 15 +++--- indra/newview/skins/default/xui/zh/panel_login.xml | 15 +++--- 13 files changed, 111 insertions(+), 120 deletions(-) diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index e37155aeb6..c4bd8c750d 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -27,6 +27,7 @@ #include "llviewerprecompiledheaders.h" #include "llpanellogin.h" +#include "lllayoutstack.h" #include "indra_constants.h" // for key and mask constants #include "llfloaterreg.h" @@ -161,7 +162,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, childSetAction("connect_btn", onClickConnect, this); - getChild("login")->setDefaultBtn("connect_btn"); + getChild("links_login_panel")->setDefaultBtn("connect_btn"); std::string channel = LLVersionInfo::getChannel(); std::string version = llformat("%s (%d)", @@ -640,13 +641,11 @@ void LLPanelLogin::updateLocationCombo( bool force_visible ) if ( ! force_visible ) show_start = gSavedSettings.getBOOL("ShowStartLocation"); - - sInstance->getChildView("start_location_combo")->setVisible( show_start); - sInstance->getChildView("start_location_text")->setVisible( show_start); - + + sInstance->getChild("start_location_panel")->setVisible(show_start); + BOOL show_server = gSavedSettings.getBOOL("ForceShowGrid"); - sInstance->getChildView("server_combo_text")->setVisible( show_server); - sInstance->getChildView("server_combo")->setVisible( show_server); + sInstance->getChild("grid_panel")->setVisible(show_server); } // static diff --git a/indra/newview/skins/default/xui/da/panel_login.xml b/indra/newview/skins/default/xui/da/panel_login.xml index c2fd3c44c7..b7cb76d4cb 100644 --- a/indra/newview/skins/default/xui/da/panel_login.xml +++ b/indra/newview/skins/default/xui/da/panel_login.xml @@ -15,15 +15,8 @@ Password: - -