// static //void LLFloaterReporter::showFromObject(const LLUUID& object_id) LLFloaterReporter* LLFloaterReporter::showFromObject(const LLUUID& object_id, bool show) { LLFloaterReporter* f = createNewAbuseReporter(); f->center(); f->setFocus(TRUE); // grab the user's name std::string fullname; gAgent.buildFullname(fullname); f->childSetText("reporter_field", fullname); // Request info for this object f->getObjectInfo(object_id); // Need to deselect on close f->mDeselectOnClose = TRUE; //f->open(); /* Flawfinder: ignore */ if ( show ) { f->open(); /* Flawfinder: ignore */ } else { gDialogVisible = FALSE; } return f; }
// static void LLFloaterReporter::show(const LLUUID& object_id, const std::string& avatar_name) { LLFloaterReporter* f = getInstance(); if (avatar_name.empty()) { // Request info for this object f->getObjectInfo(object_id); } else { f->setFromAvatarID(object_id); } // Need to deselect on close f->mDeselectOnClose = TRUE; f->open(); /* Flawfinder: ignore */ }
// static void LLFloaterReporter::showFromMenu(EReportType report_type) { if (gReporterInstances.checkData(report_type)) { // ...bring that window to front LLFloaterReporter *f = gReporterInstances.getData(report_type); f->open(); /* Flawfinder: ignore */ } else { LLFloaterReporter *f; if (BUG_REPORT == report_type) { f = LLFloaterReporter::createNewBugReporter(); } else if (COMPLAINT_REPORT == report_type) { f = LLFloaterReporter::createNewAbuseReporter(); } else { llwarns << "Unknown LLViewerReporter type : " << report_type << llendl; return; } f->center(); if (report_type == BUG_REPORT) { LLNotifications::instance().add("HelpReportBug"); } else { // popup for abuse reports is triggered elsewhere } // grab the user's name std::string fullname; gAgent.buildFullname(fullname); f->childSetText("reporter_field", fullname); } }