2014-06-25 16:29:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "views/gamelist/ISimpleGameListView.h"
|
|
|
|
#include "components/ImageGridComponent.h"
|
|
|
|
#include "components/ImageComponent.h"
|
|
|
|
#include <stack>
|
|
|
|
|
|
|
|
class GridGameListView : public ISimpleGameListView
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GridGameListView(Window* window, FileData* root);
|
|
|
|
|
|
|
|
//virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) override;
|
|
|
|
|
|
|
|
virtual FileData* getCursor() override;
|
|
|
|
virtual void setCursor(FileData*) override;
|
|
|
|
|
|
|
|
virtual bool input(InputConfig* config, Input input) override;
|
|
|
|
|
|
|
|
virtual const char* getName() const override { return "grid"; }
|
|
|
|
|
|
|
|
virtual std::vector<HelpPrompt> getHelpPrompts() override;
|
2017-06-01 20:08:44 +00:00
|
|
|
virtual void launch(FileData* game) override;
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void populateList(const std::vector<FileData*>& files) override;
|
|
|
|
|
|
|
|
ImageGridComponent<FileData*> mGrid;
|
|
|
|
};
|