BOOL LLPanelDirEvents::postBuild() { LLPanelDirBrowser::postBuild(); getChild<LLUICtrl>("date_mode")->setCommitCallback(boost::bind(&LLPanelDirEvents::onDateModeCallback,this)); getChild<LLButton>("<<")->setClickedCallback(boost::bind(&LLPanelDirEvents::onBackBtn,this)); getChild<LLButton>(">>")->setClickedCallback(boost::bind(&LLPanelDirEvents::onForwardBtn,this)); getChild<LLButton>("Today")->setClickedCallback(boost::bind(&LLPanelDirEvents::onClickToday,this)); getChild<LLButton>("Search")->setClickedCallback(boost::bind(&LLPanelDirEvents::onClickSearchCore,this)); setDefaultBtn("Search"); getChild<LLButton>("Delete")->setClickedCallback(boost::bind(&LLPanelDirEvents::onClickDelete,this)); childDisable("Delete"); childHide("Delete"); onDateModeCallback(); mCurrentSortColumn = "time"; if (!gDisplayEventHack) { setDay(0); // for today //performQuery(); // Temporary change to help DB - Sabin } gDisplayEventHack = FALSE; childSetVisible("filter_gaming", (gAgent.getRegion()->getGamingFlags() & REGION_GAMING_PRESENT) && !(gAgent.getRegion()->getGamingFlags() & REGION_GAMING_HIDE_FIND_EVENTS)); return TRUE; }
BOOL LLPanelDirEvents::postBuild() { LLPanelDirBrowser::postBuild(); childSetCommitCallback("date_mode", onDateModeCallback, this); childSetAction("<<", onBackBtn, this); childSetAction(">>", onForwardBtn, this); childSetAction("Today", onClickToday, this); childSetCommitCallback("mature", onCommitMature, this); childSetAction("Search", LLPanelDirBrowser::onClickSearchCore, this); setDefaultBtn("Search"); childSetAction("Delete", onClickDelete, this); childDisable("Delete"); childHide("Delete"); onDateModeCallback(NULL, this); mCurrentSortColumn = "time"; if (!gDisplayEventHack) { setDay(0); // for today //performQuery(); // Temporary change to help DB - Sabin } gDisplayEventHack = FALSE; return TRUE; }