bool ItemSelect(const CEGUI::EventArgs& event) { using namespace CEGUI; MultiColumnList* mcl = static_cast<MultiColumnList*>(WindowManager::getSingleton().getWindow("DestinationWindow/Listbox")); ListboxItem * item = mcl->getFirstSelectedItem(); handleItemSelect(mcl->getItemRowIndex(item)); }
bool ItemSelect(const CEGUI::EventArgs& event) { //FIXME maybe merge with handleItemSelect using namespace CEGUI; MultiColumnList* mcl = static_cast<MultiColumnList*>(WindowManager::getSingleton().getWindow("AdressSearch/Listbox")); ListboxItem * item = mcl->getFirstSelectedItem(); handleItemSelect(mcl->getItemRowIndex(item)); }
bool BookmarkSelect(const CEGUI::EventArgs& event) { using namespace CEGUI; dbg(0,"1\n"); MultiColumnList* mcl = static_cast<MultiColumnList*>(WindowManager::getSingleton().getWindow("Bookmarks/Listbox")); dbg(0,"2\n"); ListboxItem * item = mcl->getFirstSelectedItem(); if(item){ dbg(0,"item %s is at row %i\n",item->getText().c_str(),mcl->getItemRowIndex(item)); BookmarkGo(item->getText().c_str()); } WindowManager::getSingleton().getWindow("BookmarkSelection")->hide(); }