2014-06-25 16:29:58 +00:00
|
|
|
#pragma once
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_APP_VIEWS_GAME_LIST_DETAILED_GAME_LIST_VIEW_H
|
|
|
|
#define ES_APP_VIEWS_GAME_LIST_DETAILED_GAME_LIST_VIEW_H
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
#include "components/DateTimeComponent.h"
|
2017-11-01 22:21:10 +00:00
|
|
|
#include "components/RatingComponent.h"
|
|
|
|
#include "components/ScrollableContainer.h"
|
|
|
|
#include "views/gamelist/BasicGameListView.h"
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
class DetailedGameListView : public BasicGameListView
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DetailedGameListView(Window* window, FileData* root);
|
|
|
|
|
|
|
|
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) override;
|
|
|
|
|
|
|
|
virtual const char* getName() const override { return "detailed"; }
|
|
|
|
|
|
|
|
virtual void launch(FileData* game) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void updateInfoPanel();
|
|
|
|
|
|
|
|
void initMDLabels();
|
|
|
|
void initMDValues();
|
|
|
|
|
|
|
|
ImageComponent mImage;
|
|
|
|
|
|
|
|
TextComponent mLblRating, mLblReleaseDate, mLblDeveloper, mLblPublisher, mLblGenre, mLblPlayers, mLblLastPlayed, mLblPlayCount;
|
|
|
|
|
|
|
|
RatingComponent mRating;
|
|
|
|
DateTimeComponent mReleaseDate;
|
|
|
|
TextComponent mDeveloper;
|
|
|
|
TextComponent mPublisher;
|
|
|
|
TextComponent mGenre;
|
|
|
|
TextComponent mPlayers;
|
|
|
|
DateTimeComponent mLastPlayed;
|
|
|
|
TextComponent mPlayCount;
|
|
|
|
|
|
|
|
std::vector<TextComponent*> getMDLabels();
|
|
|
|
std::vector<GuiComponent*> getMDValues();
|
|
|
|
|
|
|
|
ScrollableContainer mDescContainer;
|
|
|
|
TextComponent mDescription;
|
|
|
|
};
|
2017-10-31 17:12:50 +00:00
|
|
|
|
|
|
|
#endif // ES_APP_VIEWS_GAME_LIST_DETAILED_GAME_LIST_VIEW_H
|