mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-12-02 19:05:38 +00:00
9de16045c9
fix faulty line endings silence warnings on windows
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#pragma once
|
|
#ifndef ES_APP_GUIS_GUI_SCRAPER_MULTI_H
|
|
#define ES_APP_GUIS_GUI_SCRAPER_MULTI_H
|
|
|
|
#include "components/ComponentGrid.h"
|
|
#include "components/NinePatchComponent.h"
|
|
#include "scrapers/Scraper.h"
|
|
#include "GuiComponent.h"
|
|
|
|
class ScraperSearchComponent;
|
|
class TextComponent;
|
|
|
|
class GuiScraperMulti : public GuiComponent
|
|
{
|
|
public:
|
|
GuiScraperMulti(Window* window, const std::queue<ScraperSearchParams>& searches, bool approveResults);
|
|
virtual ~GuiScraperMulti();
|
|
|
|
void onSizeChanged() override;
|
|
std::vector<HelpPrompt> getHelpPrompts() override;
|
|
|
|
private:
|
|
void acceptResult(const ScraperSearchResult& result);
|
|
void skip();
|
|
void doNextSearch();
|
|
|
|
void finish();
|
|
|
|
unsigned int mTotalGames;
|
|
unsigned int mCurrentGame;
|
|
unsigned int mTotalSuccessful;
|
|
unsigned int mTotalSkipped;
|
|
std::queue<ScraperSearchParams> mSearchQueue;
|
|
|
|
NinePatchComponent mBackground;
|
|
ComponentGrid mGrid;
|
|
|
|
std::shared_ptr<TextComponent> mTitle;
|
|
std::shared_ptr<TextComponent> mSystem;
|
|
std::shared_ptr<TextComponent> mSubtitle;
|
|
std::shared_ptr<ScraperSearchComponent> mSearchComp;
|
|
std::shared_ptr<ComponentGrid> mButtonGrid;
|
|
};
|
|
|
|
#endif // ES_APP_GUIS_GUI_SCRAPER_MULTI_H
|