BOOL LLFloaterWebContent::postBuild() { // these are used in a bunch of places so cache them mWebBrowser = getChild< LLMediaCtrl >( "webbrowser" ); mAddressCombo = getChild< LLComboBox >( "address" ); mStatusBarText = getChild< LLTextBox >( "statusbartext" ); mStatusBarProgress = getChild<LLProgressBar>("statusbarprogress" ); mBtnBack = getChildView( "back" ); mBtnForward = getChildView( "forward" ); mBtnReload = getChildView( "reload" ); mBtnStop = getChildView( "stop" ); // observe browser events mWebBrowser->addObserver( this ); // these buttons are always enabled mBtnReload->setEnabled( true ); getChildView("popexternal")->setEnabled( true ); // cache image for secure browsing mSecureLockIcon = getChild< LLIconCtrl >("media_secure_lock_flag"); // initialize the URL history using the system URL History manager initializeURLHistory(); return TRUE; }
BOOL LLFloaterWebContent::postBuild() { // these are used in a bunch of places so cache them mWebBrowser = getChild< LLMediaCtrl >( "webbrowser" ); mAddressCombo = getChild< LLComboBox >( "address" ); mStatusBarText = getChild< LLTextBox >( "statusbartext" ); mStatusBarProgress = getChild<LLProgressBar>("statusbarprogress" ); mPluginFailText = getChild< LLTextBox >("plugin_fail_text"); mBtnBack = getChildView( "back" ); mBtnForward = getChildView( "forward" ); mBtnReload = getChildView( "reload" ); mBtnStop = getChildView( "stop" ); // observe browser events mWebBrowser->addObserver( this ); // Hide the web browser initially so the plugin fail text links can be clicked if needed. // A navigationi begin event will swap these around. mWebBrowser->setVisible( false ); mPluginFailText->setVisible( true ); // these buttons are always enabled mBtnReload->setEnabled( true ); getChildView("popexternal")->setEnabled( true ); // cache image for secure browsing mSecureLockIcon = getChild< LLIconCtrl >("media_secure_lock_flag"); // initialize the URL history using the system URL History manager initializeURLHistory(); return TRUE; }