aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterreporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterreporter.cpp')
-rw-r--r--linden/indra/newview/llfloaterreporter.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/linden/indra/newview/llfloaterreporter.cpp b/linden/indra/newview/llfloaterreporter.cpp
index 5c076f0..0c1b9ee 100644
--- a/linden/indra/newview/llfloaterreporter.cpp
+++ b/linden/indra/newview/llfloaterreporter.cpp
@@ -80,7 +80,7 @@
80#include "lldir.h" 80#include "lldir.h"
81#include "llselectmgr.h" 81#include "llselectmgr.h"
82#include "llviewerbuild.h" 82#include "llviewerbuild.h"
83#include "llvieweruictrlfactory.h" 83#include "lluictrlfactory.h"
84#include "llappviewer.h" 84#include "llappviewer.h"
85 85
86#include "llassetuploadresponders.h" 86#include "llassetuploadresponders.h"
@@ -124,16 +124,16 @@ LLFloaterReporter::LLFloaterReporter(
124{ 124{
125 if (report_type == BUG_REPORT) 125 if (report_type == BUG_REPORT)
126 { 126 {
127 gUICtrlFactory->buildFloater(this, "floater_report_bug.xml"); 127 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_report_bug.xml");
128 } 128 }
129 else 129 else
130 { 130 {
131 gUICtrlFactory->buildFloater(this, "floater_report_abuse.xml"); 131 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_report_abuse.xml");
132 } 132 }
133 133
134 childSetText("abuse_location_edit", gAgent.getSLURL() ); 134 childSetText("abuse_location_edit", gAgent.getSLURL() );
135 135
136 LLButton* pick_btn = LLUICtrlFactory::getButtonByName(this, "pick_btn"); 136 LLButton* pick_btn = getChild<LLButton>("pick_btn");
137 if (pick_btn) 137 if (pick_btn)
138 { 138 {
139 // XUI: Why aren't these in viewerart.ini? 139 // XUI: Why aren't these in viewerart.ini?
@@ -145,7 +145,7 @@ LLFloaterReporter::LLFloaterReporter(
145 if (report_type != BUG_REPORT) 145 if (report_type != BUG_REPORT)
146 { 146 {
147 // abuser name is selected from a list 147 // abuser name is selected from a list
148 LLLineEditor* le = (LLLineEditor*)getCtrlByNameAndType("abuser_name_edit", WIDGET_TYPE_LINE_EDITOR); 148 LLLineEditor* le = getChild<LLLineEditor>("abuser_name_edit");
149 le->setEnabled( FALSE ); 149 le->setEnabled( FALSE );
150 } 150 }
151 151
@@ -454,12 +454,12 @@ void LLFloaterReporter::onClickCancel(void *userdata)
454void LLFloaterReporter::onClickObjPicker(void *userdata) 454void LLFloaterReporter::onClickObjPicker(void *userdata)
455{ 455{
456 LLFloaterReporter *self = (LLFloaterReporter *)userdata; 456 LLFloaterReporter *self = (LLFloaterReporter *)userdata;
457 gToolObjPicker->setExitCallback(LLFloaterReporter::closePickTool, self); 457 LLToolObjPicker::getInstance()->setExitCallback(LLFloaterReporter::closePickTool, self);
458 gToolMgr->setTransientTool(gToolObjPicker); 458 LLToolMgr::getInstance()->setTransientTool(LLToolObjPicker::getInstance());
459 self->mPicking = TRUE; 459 self->mPicking = TRUE;
460 self->childSetText("object_name", LLString::null); 460 self->childSetText("object_name", LLString::null);
461 self->childSetText("owner_name", LLString::null); 461 self->childSetText("owner_name", LLString::null);
462 LLButton* pick_btn = LLUICtrlFactory::getButtonByName(self, "pick_btn"); 462 LLButton* pick_btn = self->getChild<LLButton>("pick_btn");
463 if (pick_btn) pick_btn->setToggleState(TRUE); 463 if (pick_btn) pick_btn->setToggleState(TRUE);
464} 464}
465 465
@@ -469,12 +469,12 @@ void LLFloaterReporter::closePickTool(void *userdata)
469{ 469{
470 LLFloaterReporter *self = (LLFloaterReporter *)userdata; 470 LLFloaterReporter *self = (LLFloaterReporter *)userdata;
471 471
472 LLUUID object_id = gToolObjPicker->getObjectID(); 472 LLUUID object_id = LLToolObjPicker::getInstance()->getObjectID();
473 self->getObjectInfo(object_id); 473 self->getObjectInfo(object_id);
474 474
475 gToolMgr->clearTransientTool(); 475 LLToolMgr::getInstance()->clearTransientTool();
476 self->mPicking = FALSE; 476 self->mPicking = FALSE;
477 LLButton* pick_btn = LLUICtrlFactory::getButtonByName(self, "pick_btn"); 477 LLButton* pick_btn = self->getChild<LLButton>("pick_btn");
478 if (pick_btn) pick_btn->setToggleState(FALSE); 478 if (pick_btn) pick_btn->setToggleState(FALSE);
479} 479}
480 480
@@ -662,7 +662,7 @@ LLSD LLFloaterReporter::gatherReport()
662 } 662 }
663 663
664 LLString category_name; 664 LLString category_name;
665 LLComboBox* combo = LLUICtrlFactory::getComboBoxByName(this, "category_combo"); 665 LLComboBox* combo = getChild<LLComboBox>( "category_combo");
666 if (combo) 666 if (combo)
667 { 667 {
668 category_name = combo->getSelectedItemLabel(); // want label, not value 668 category_name = combo->getSelectedItemLabel(); // want label, not value
@@ -1003,7 +1003,7 @@ void LLFloaterReporter::addDescription(const LLString& description, LLMeanCollis
1003 LLFloaterReporter *self = gReporterInstances[COMPLAINT_REPORT]; 1003 LLFloaterReporter *self = gReporterInstances[COMPLAINT_REPORT];
1004 if (self) 1004 if (self)
1005 { 1005 {
1006 LLTextEditor* text = LLUICtrlFactory::getTextEditorByName(self, "details_edit"); 1006 LLTextEditor* text = self->getChild<LLTextEditor>("details_edit");
1007 if (text) 1007 if (text)
1008 { 1008 {
1009 text->insertText(description); 1009 text->insertText(description);