// static void LLFloaterGesture::show() { if (sInstance) { sInstance->open(); /*Flawfinder: ignore*/ return; } LLFloaterGesture *self = new LLFloaterGesture(); // Builds and adds to gFloaterView LLUICtrlFactory::getInstance()->buildFloater(self, "floater_gesture.xml"); // Fix up rectangle LLRect rect = gSavedSettings.getRect("FloaterGestureRect2"); self->reshape(rect.getWidth(), rect.getHeight()); self->setRect(rect); self->buildGestureList(); self->childSetFocus("gesture_list"); LLCtrlListInterface *list = self->childGetListInterface("gesture_list"); if (list) { const BOOL ascending = TRUE; list->sortByColumn(std::string("name"), ascending); list->selectFirstItem(); } self->mSelectedID = LLUUID::null; // Update button labels onCommitList(NULL, self); self->open(); /*Flawfinder: ignore*/ }