void GuiGameList::updateList() { if(mDetailed) mScreenshot->setImage(""); mList->clear(); for(unsigned int i = 0; i < mFolder->getFileCount(); i++) { FileData* file = mFolder->getFile(i); if(file->isFolder()) mList->addObject(file->getName(), file, 0x00C000); else mList->addObject(file->getName(), file); } }
void BasicGameListView::populateList(const std::vector<FileData*>& files) { mList.clear(); if (files.size() > 0) { mHeaderText.setText(files.at(0)->getSystem()->getFullName()); for(auto it = files.begin(); it != files.end(); it++) { mList.add((*it)->getName(), *it, ((*it)->getType() == FOLDER)); } } else { // empty list - add a placeholder FileData* placeholder = new FileData(PLACEHOLDER, "<No Results Found for Current Filter Criteria>", this->mRoot->getSystem()); mList.add(placeholder->getName(), placeholder, (placeholder->getType() == PLACEHOLDER)); } }
void GridGameListView::addPlaceholder() { // empty grid - add a placeholder FileData* placeholder = new FileData(PLACEHOLDER, "<No Entries Found>", this->mRoot->getSystem()->getSystemEnvData(), this->mRoot->getSystem()); mGrid.add(placeholder->getName(), "", placeholder); }