//static void LLFloaterReg::registerControlVariables() { // Iterate through alll registered instance names and register rect and visibility control variables for (build_map_t::iterator iter = sBuildMap.begin(); iter != sBuildMap.end(); ++iter) { const std::string& name = iter->first; // <FS:Zi> Save rects even when the floater wasn't opened this session // if (LLFloater::getControlGroup()->controlExists(getRectControlName(name))) // </FS:Zi> if (!LLFloater::getControlGroup()->controlExists(getRectControlName(name))) { declareRectControl(name); } // <FS:Zi> Save rects even when the floater wasn't opened this session // if (LLFloater::getControlGroup()->controlExists(getVisibilityControlName(name))) // </FS:Zi> if (!LLFloater::getControlGroup()->controlExists(getVisibilityControlName(name))) { declareVisibilityControl(name); } } const LLSD& exclude_list = LLUI::sSettingGroups["config"]->getLLSD("always_showable_floaters"); for (LLSD::array_const_iterator iter = exclude_list.beginArray(); iter != exclude_list.endArray(); iter++) { sAlwaysShowableList.insert(iter->asString()); } }
//static std::string LLFloaterReg::declareRectControl(const std::string& name) { std::string controlname = getRectControlName(name); LLFloater::getControlGroup()->declareRect(controlname, LLRect(), llformat("Window Size for %s", name.c_str()), LLControlVariable::PERSIST_NONDFT); return controlname; }
//static std::string LLFloaterReg::declareRectControl(const std::string& name) { std::string controlname = getRectControlName(name); LLFloater::getControlGroup()->declareRect(controlname, LLRect(), llformat("Window Position and Size for %s", name.c_str()), TRUE); return controlname; }