diff --git a/indra/newview/fspanellogin.cpp b/indra/newview/fspanellogin.cpp index e5dd49ced4..846e851403 100644 --- a/indra/newview/fspanellogin.cpp +++ b/indra/newview/fspanellogin.cpp @@ -79,7 +79,6 @@ #include "llsdserialize.h" -const S32 BLACK_BORDER_HEIGHT = 160; const S32 MAX_PASSWORD_SL = 16; const S32 MAX_PASSWORD_OPENSIM = 255; @@ -179,7 +178,6 @@ FSPanelLogin::FSPanelLogin(const LLRect &rect, void (*callback)(S32 option, void* user_data), void *cb_data) : LLPanel(), - mLogoImage(), mCallback(callback), mCallbackData(cb_data), mShowFavorites(false) @@ -196,9 +194,6 @@ FSPanelLogin::FSPanelLogin(const LLRect &rect, login_holder->addChild(this); } - // Logo - mLogoImage = LLUI::getUIImage("startup_logo"); - buildFromFile( "panel_fs_login.xml"); reshape(rect.getWidth(), rect.getHeight()); @@ -251,8 +246,6 @@ FSPanelLogin::FSPanelLogin(const LLRect &rect, LLMediaCtrl* web_browser = getChild("login_html"); web_browser->addObserver(this); - reshapeBrowser(); - // Show last logged in user favorites in "Start at" combo. LLComboBox* username_combo(getChild("username_combo")); username_combo->setCommitCallback(boost::bind(&FSPanelLogin::onSelectUser, this)); @@ -351,21 +344,6 @@ void FSPanelLogin::addFavoritesToStartLocation() LLFloaterPreference::updateShowFavoritesCheckbox(mShowFavorites); } -// force the size to be correct (XML doesn't seem to be sufficient to do this) -// (with some padding so the other login screen doesn't show through) -void FSPanelLogin::reshapeBrowser() -{ - LLMediaCtrl* web_browser = getChild("login_html"); - LLRect rect = gViewerWindow->getWindowRectScaled(); - LLRect html_rect; - html_rect.setCenterAndSize( - rect.getCenterX() - 2, rect.getCenterY() + 40, - rect.getWidth() + 6, rect.getHeight() - 78 ); - web_browser->setRect( html_rect ); - web_browser->reshape( html_rect.getWidth(), html_rect.getHeight(), TRUE ); - reshape( rect.getWidth(), rect.getHeight(), 1 ); -} - FSPanelLogin::~FSPanelLogin() { FSPanelLogin::sInstance = NULL; @@ -375,50 +353,6 @@ FSPanelLogin::~FSPanelLogin() gFocusMgr.setDefaultKeyboardFocus(NULL); } -// virtual -void FSPanelLogin::draw() -{ - gGL.pushMatrix(); - { - F32 image_aspect = 1.333333f; - F32 view_aspect = (F32)getRect().getWidth() / (F32)getRect().getHeight(); - // stretch image to maintain aspect ratio - if (image_aspect > view_aspect) - { - gGL.translatef(-0.5f * (image_aspect / view_aspect - 1.f) * getRect().getWidth(), 0.f, 0.f); - gGL.scalef(image_aspect / view_aspect, 1.f, 1.f); - } - - S32 width = getRect().getWidth(); - S32 height = getRect().getHeight(); - - if (getChild("login_widgets")->getVisible()) - { - // draw a background box in black - gl_rect_2d( 0, height - 264, width, 264, LLColor4::black ); - // draw the bottom part of the background image - // just the blue background to the native client UI - mLogoImage->draw(0, -264, width + 8, mLogoImage->getHeight()); - }; - } - gGL.popMatrix(); - - LLPanel::draw(); -} - -// virtual -BOOL FSPanelLogin::handleKeyHere(KEY key, MASK mask) -{ - if ( KEY_F1 == key ) - { - LLViewerHelp* vhelp = LLViewerHelp::getInstance(); - vhelp->showTopic(vhelp->f1HelpTopic()); - return TRUE; - } - - return LLPanel::handleKeyHere(key, mask); -} - // virtual void FSPanelLogin::setFocus(BOOL b) { @@ -483,7 +417,7 @@ void FSPanelLogin::showLoginWidgets() // It seems to be part of the defunct? reg-in-client project. sInstance->getChildView("login_widgets")->setVisible( true); LLMediaCtrl* web_browser = sInstance->getChild("login_html"); - sInstance->reshapeBrowser(); + // *TODO: Append all the usual login parameters, like first_login=Y etc. std::string splash_screen_url = LLGridManager::getInstance()->getLoginPage(); web_browser->navigateTo( splash_screen_url, HTTP_CONTENT_TEXT_HTML ); diff --git a/indra/newview/fspanellogin.h b/indra/newview/fspanellogin.h index 420b56f5ff..c653963d2a 100644 --- a/indra/newview/fspanellogin.h +++ b/indra/newview/fspanellogin.h @@ -51,8 +51,6 @@ public: void *callback_data); ~FSPanelLogin(); - virtual BOOL handleKeyHere(KEY key, MASK mask); - virtual void draw(); virtual void setFocus( BOOL b ); // Show the XUI first name, last name, and password widgets. They are @@ -96,7 +94,6 @@ public: private: friend class LLPanelLoginListener; - void reshapeBrowser(); void addFavoritesToStartLocation(); void addUsersToCombo(BOOL show_server); void onSelectUser(); @@ -119,8 +116,6 @@ private: static std::string credentialName(); private: - LLPointer mLogoImage; - void (*mCallback)(S32 option, void *userdata); void* mCallbackData; diff --git a/indra/newview/skins/default/xui/en/panel_fs_login.xml b/indra/newview/skins/default/xui/en/panel_fs_login.xml index 49ef145546..fb2ce65eaf 100644 --- a/indra/newview/skins/default/xui/en/panel_fs_login.xml +++ b/indra/newview/skins/default/xui/en/panel_fs_login.xml @@ -1,13 +1,15 @@ + background_visible="true" + bg_opaque_color="0.16 0.16 0.16 1" + background_opaque="true" + width="1024"> http://phoenixviewer.com/app/loginV3/ @@ -19,20 +21,18 @@ name="forgot_password_url"> http://secondlife.com/account/request.php - + top="18" + height="670" + width="1024" />