2010-12-12 17:31:13 +01:00
|
|
|
#ifndef GAMEBROWSEMENU_HPP_
|
|
|
|
#define GAMEBROWSEMENU_HPP_
|
|
|
|
|
2011-06-14 19:53:19 +02:00
|
|
|
#include "GUI/gui_gamebrowser.h"
|
|
|
|
#include "GUI/gui_searchbar.h"
|
2010-12-31 14:13:14 +01:00
|
|
|
#include "utils/ThreadedTask.hpp"
|
2010-12-12 17:31:13 +01:00
|
|
|
|
|
|
|
class GameBrowseMenu : public GuiWindow
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
public:
|
|
|
|
GameBrowseMenu();
|
|
|
|
virtual ~GameBrowseMenu();
|
|
|
|
static int Execute();
|
|
|
|
void ReloadBrowser();
|
|
|
|
private:
|
|
|
|
int MainLoop();
|
|
|
|
int OpenClickedGame();
|
|
|
|
int GetSelectedGame() { return (gameBrowser ? gameBrowser->GetSelectedOption() : -1); }
|
|
|
|
void UpdateGameInfoText(const u8 * gameId);
|
|
|
|
void LoadCover(struct discHdr *header);
|
|
|
|
void CheckAlternativeDOL(const char * IDfull);
|
|
|
|
void CheckOcarina(const char * IDfull);
|
|
|
|
void CheckDiscSlotUpdate();
|
|
|
|
void UpdateFreeSpace(void *arg);
|
|
|
|
void UpdateClock();
|
|
|
|
static void UpdateCallback(void * e);
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
TCallback<GameBrowseMenu> HDDSizeCallback;
|
|
|
|
u32 DiscDriveCoverOld;
|
|
|
|
int returnMenu;
|
|
|
|
int gameSelectedOld;
|
|
|
|
int gameClicked;
|
|
|
|
int GridRowsPreSearch;
|
|
|
|
time_t lastrawtime;
|
|
|
|
bool show_searchwindow;
|
|
|
|
wchar_t searchChar;
|
|
|
|
std::vector<GuiButton *> ToolBar;
|
2010-12-31 14:13:14 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiGameBrowser * gameBrowser;
|
|
|
|
GuiSearchBar * searchBar;
|
2010-12-31 14:13:14 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiImageData * btnInstall;
|
|
|
|
GuiImageData * btnInstallOver;
|
|
|
|
GuiImageData * btnSettings;
|
|
|
|
GuiImageData * btnSettingsOver;
|
|
|
|
GuiImageData * btnpwroff;
|
|
|
|
GuiImageData * btnpwroffOver;
|
|
|
|
GuiImageData * btnhome;
|
|
|
|
GuiImageData * btnhomeOver;
|
|
|
|
GuiImageData * btnsdcardOver;
|
|
|
|
GuiImageData * btnsdcard;
|
|
|
|
GuiImageData * imgfavIcon;
|
|
|
|
GuiImageData * imgfavIcon_gray;
|
|
|
|
GuiImageData * imgsearchIcon;
|
|
|
|
GuiImageData * imgsearchIcon_gray;
|
|
|
|
GuiImageData * imgabcIcon;
|
|
|
|
GuiImageData * imgrankIcon;
|
|
|
|
GuiImageData * imgplayCountIcon;
|
|
|
|
GuiImageData * imgplayersSortIcon;
|
|
|
|
GuiImageData * imgarrangeGrid;
|
|
|
|
GuiImageData * imgarrangeGrid_gray;
|
|
|
|
GuiImageData * imgarrangeCarousel;
|
|
|
|
GuiImageData * imgarrangeCarousel_gray;
|
|
|
|
GuiImageData * imgarrangeList;
|
|
|
|
GuiImageData * imgarrangeList_gray;
|
|
|
|
GuiImageData * imgdvd;
|
|
|
|
GuiImageData * imgdvd_gray;
|
|
|
|
GuiImageData * imgLock;
|
|
|
|
GuiImageData * imgLock_gray;
|
|
|
|
GuiImageData * imgUnlock;
|
|
|
|
GuiImageData * imgUnlock_gray;
|
|
|
|
GuiImageData * imgCategory;
|
|
|
|
GuiImageData * imgCategory_gray;
|
2011-12-22 23:44:48 +01:00
|
|
|
GuiImageData * imgLoaderMode;
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiImageData * homebrewImgData;
|
|
|
|
GuiImageData * homebrewImgDataOver;
|
|
|
|
GuiImageData * gameCover;
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiTrigger * trigA;
|
|
|
|
GuiTrigger * trigHome;
|
|
|
|
GuiTrigger * trig1;
|
|
|
|
GuiTrigger * trig2;
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiImage * installBtnImg;
|
|
|
|
GuiImage * installBtnImgOver;
|
|
|
|
GuiImage * settingsBtnImg;
|
|
|
|
GuiImage * settingsBtnImgOver;
|
|
|
|
GuiImage * homeBtnImg;
|
|
|
|
GuiImage * homeBtnImgOver;
|
|
|
|
GuiImage * poweroffBtnImg;
|
|
|
|
GuiImage * poweroffBtnImgOver;
|
|
|
|
GuiImage * sdcardImg;
|
|
|
|
GuiImage * sdcardImgOver;
|
|
|
|
GuiImage * favoriteBtnImg;
|
|
|
|
GuiImage * favoriteBtnImg_g;
|
|
|
|
GuiImage * searchBtnImg;
|
|
|
|
GuiImage * searchBtnImg_g;
|
|
|
|
GuiImage * sortBtnImg;
|
|
|
|
GuiImage * listBtnImg;
|
|
|
|
GuiImage * listBtnImg_g;
|
|
|
|
GuiImage * gridBtnImg;
|
|
|
|
GuiImage * gridBtnImg_g;
|
|
|
|
GuiImage * carouselBtnImg;
|
|
|
|
GuiImage * carouselBtnImg_g;
|
|
|
|
GuiImage * lockBtnImg;
|
|
|
|
GuiImage * lockBtnImg_g;
|
|
|
|
GuiImage * unlockBtnImg;
|
|
|
|
GuiImage * unlockBtnImg_g;
|
|
|
|
GuiImage * dvdBtnImg;
|
|
|
|
GuiImage * dvdBtnImg_g;
|
|
|
|
GuiImage * categBtnImg;
|
|
|
|
GuiImage * categBtnImg_g;
|
2011-12-22 23:44:48 +01:00
|
|
|
GuiImage * loaderModeBtnImg;
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiImage * homebrewImg;
|
|
|
|
GuiImage * homebrewImgOver;
|
|
|
|
GuiImage * gameCoverImg;
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiText * usedSpaceTxt;
|
|
|
|
GuiText * gamecntTxt;
|
|
|
|
GuiText * clockTimeBack;
|
|
|
|
GuiText * clockTime;
|
|
|
|
GuiText * GameRegionTxt;
|
|
|
|
GuiText * GameIDTxt;
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiButton * gamecntBtn;
|
|
|
|
GuiButton * installBtn;
|
|
|
|
GuiButton * settingsBtn;
|
|
|
|
GuiButton * homeBtn;
|
|
|
|
GuiButton * poweroffBtn;
|
|
|
|
GuiButton * sdcardBtn;
|
|
|
|
GuiButton * gameInfo;
|
|
|
|
GuiButton * favoriteBtn;
|
|
|
|
GuiButton * searchBtn;
|
|
|
|
GuiButton * sortBtn;
|
|
|
|
GuiButton * listBtn;
|
|
|
|
GuiButton * gridBtn;
|
|
|
|
GuiButton * carouselBtn;
|
|
|
|
GuiButton * lockBtn;
|
|
|
|
GuiButton * dvdBtn;
|
|
|
|
GuiButton * categBtn;
|
2011-12-22 23:44:48 +01:00
|
|
|
GuiButton * loaderModeBtn;
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiButton * homebrewBtn;
|
|
|
|
GuiButton * DownloadBtn;
|
|
|
|
GuiButton * idBtn;
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiTooltip * installBtnTT;
|
|
|
|
GuiTooltip * settingsBtnTT;
|
|
|
|
GuiTooltip * homeBtnTT;
|
|
|
|
GuiTooltip * poweroffBtnTT;
|
|
|
|
GuiTooltip * sdcardBtnTT;
|
|
|
|
GuiTooltip * favoriteBtnTT;
|
|
|
|
GuiTooltip * searchBtnTT;
|
|
|
|
GuiTooltip * sortBtnTT;
|
|
|
|
GuiTooltip * listBtnTT;
|
|
|
|
GuiTooltip * gridBtnTT;
|
|
|
|
GuiTooltip * carouselBtnTT;
|
|
|
|
GuiTooltip * lockBtnTT;
|
|
|
|
GuiTooltip * dvdBtnTT;
|
|
|
|
GuiTooltip * categBtnTT;
|
2011-12-22 23:44:48 +01:00
|
|
|
GuiTooltip * loaderModeBtnTT;
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiTooltip * homebrewBtnTT;
|
|
|
|
GuiTooltip * DownloadBtnTT;
|
|
|
|
GuiTooltip * IDBtnTT;
|
2010-12-12 17:31:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|