2014-06-25 16:29:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "views/gamelist/ISimpleGameListView.h"
|
|
|
|
#include "components/TextListComponent.h"
|
|
|
|
|
|
|
|
class BasicGameListView : public ISimpleGameListView
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
BasicGameListView(Window* window, FileData* root);
|
|
|
|
|
|
|
|
// Called when a FileData* is added, has its metadata changed, or is removed
|
|
|
|
virtual void onFileChanged(FileData* file, FileChangeType change);
|
|
|
|
|
|
|
|
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme);
|
|
|
|
|
|
|
|
virtual FileData* getCursor() override;
|
|
|
|
virtual void setCursor(FileData* file) override;
|
|
|
|
|
|
|
|
virtual const char* getName() const override { return "basic"; }
|
|
|
|
|
|
|
|
virtual std::vector<HelpPrompt> getHelpPrompts() override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void populateList(const std::vector<FileData*>& files) override;
|
|
|
|
virtual void launch(FileData* game) override;
|
2015-01-12 20:06:11 +00:00
|
|
|
virtual void remove(FileData* game) override;
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
TextListComponent<FileData*> mList;
|
|
|
|
};
|