aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatertos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloatertos.cpp')
-rw-r--r--linden/indra/newview/llfloatertos.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/newview/llfloatertos.cpp b/linden/indra/newview/llfloatertos.cpp
index c64173e..920ef4c 100644
--- a/linden/indra/newview/llfloatertos.cpp
+++ b/linden/indra/newview/llfloatertos.cpp
@@ -42,7 +42,7 @@
42#include "llstartup.h" 42#include "llstartup.h"
43#include "message.h" 43#include "message.h"
44#include "llagent.h" 44#include "llagent.h"
45#include "llvieweruictrlfactory.h" 45#include "lluictrlfactory.h"
46#include "llviewerwindow.h" 46#include "llviewerwindow.h"
47#include "llviewerstats.h" 47#include "llviewerstats.h"
48#include "llui.h" 48#include "llui.h"
@@ -62,11 +62,11 @@ LLFloaterTOS* LLFloaterTOS::show(ETOSType type, const std::string & message)
62 62
63 if (type == TOS_TOS) 63 if (type == TOS_TOS)
64 { 64 {
65 gUICtrlFactory->buildFloater(LLFloaterTOS::sInstance, "floater_tos.xml"); 65 LLUICtrlFactory::getInstance()->buildFloater(LLFloaterTOS::sInstance, "floater_tos.xml");
66 } 66 }
67 else 67 else
68 { 68 {
69 gUICtrlFactory->buildFloater(LLFloaterTOS::sInstance, "floater_critical.xml"); 69 LLUICtrlFactory::getInstance()->buildFloater(LLFloaterTOS::sInstance, "floater_critical.xml");
70 } 70 }
71 71
72 return LLFloaterTOS::sInstance; 72 return LLFloaterTOS::sInstance;
@@ -132,7 +132,7 @@ BOOL LLFloaterTOS::postBuild()
132 if ( mType != TOS_TOS ) 132 if ( mType != TOS_TOS )
133 { 133 {
134 // this displays the critical message 134 // this displays the critical message
135 LLTextEditor *Editor = LLUICtrlFactory::getTextEditorByName(this, "tos_text"); 135 LLTextEditor *Editor = getChild<LLTextEditor>("tos_text");
136 if (Editor) 136 if (Editor)
137 { 137 {
138 Editor->setHandleEditKeysDirectly( TRUE ); 138 Editor->setHandleEditKeysDirectly( TRUE );
@@ -146,14 +146,14 @@ BOOL LLFloaterTOS::postBuild()
146 } 146 }
147 147
148 // disable Agree to TOS radio button until the page has fully loaded 148 // disable Agree to TOS radio button until the page has fully loaded
149 LLRadioGroup* tos_agreement = LLUICtrlFactory::getRadioGroupByName(this, "tos_agreement"); 149 LLRadioGroup* tos_agreement = getChild<LLRadioGroup>("tos_agreement");
150 if ( tos_agreement ) 150 if ( tos_agreement )
151 { 151 {
152 tos_agreement->setEnabled( false ); 152 tos_agreement->setEnabled( false );
153 }; 153 };
154 154
155 // hide the SL text widget if we're displaying TOS with using a browser widget. 155 // hide the SL text widget if we're displaying TOS with using a browser widget.
156 LLTextEditor *editor = LLUICtrlFactory::getTextEditorByName(this, "tos_text"); 156 LLTextEditor *editor = getChild<LLTextEditor>("tos_text");
157 if ( editor ) 157 if ( editor )
158 { 158 {
159 editor->setVisible( FALSE ); 159 editor->setVisible( FALSE );
@@ -194,7 +194,7 @@ void LLFloaterTOS::setSiteIsAlive( bool alive )
194 { 194 {
195 // normally this is set when navigation to TOS page navigation completes (so you can't accept before TOS loads) 195 // normally this is set when navigation to TOS page navigation completes (so you can't accept before TOS loads)
196 // but if the page is unavailable, we need to do this now 196 // but if the page is unavailable, we need to do this now
197 LLRadioGroup* tos_agreement = LLUICtrlFactory::getRadioGroupByName(this, "tos_agreement"); 197 LLRadioGroup* tos_agreement = getChild<LLRadioGroup>("tos_agreement");
198 if ( tos_agreement ) 198 if ( tos_agreement )
199 { 199 {
200 tos_agreement->setEnabled( true ); 200 tos_agreement->setEnabled( true );
@@ -286,7 +286,7 @@ void LLFloaterTOS::onNavigateComplete( const EventType& eventIn )
286 { 286 {
287 llinfos << "NAVIGATE COMPLETE" << llendl; 287 llinfos << "NAVIGATE COMPLETE" << llendl;
288 // enable Agree to TOS radio button now that page has loaded 288 // enable Agree to TOS radio button now that page has loaded
289 LLRadioGroup* tos_agreement = LLUICtrlFactory::getRadioGroupByName(this, "tos_agreement"); 289 LLRadioGroup* tos_agreement = getChild<LLRadioGroup>("tos_agreement");
290 if ( tos_agreement ) 290 if ( tos_agreement )
291 { 291 {
292 tos_agreement->setEnabled( true ); 292 tos_agreement->setEnabled( true );