mirror of
https://github.com/wiidev/usbloadergx.git
synced 2025-02-03 13:52:33 +01:00
0f4eb6b209
*added saving of game browser position (on all modes) *several cleanups and small fixes *added a "Block Category Menu" setting *fixed bug with parental block and game settings (thanks NJ7 for finding it) *fixed "All" not being translated in category menu
42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
#ifndef GUI_FILEBROWSER_H_
|
|
#define GUI_FILEBROWSER_H_
|
|
|
|
#include "gui.h"
|
|
#include "gui_scrollbar.hpp"
|
|
|
|
//!Display a list of files
|
|
class GuiFileBrowser: public GuiElement, public sigslot::has_slots<>
|
|
{
|
|
public:
|
|
GuiFileBrowser(int w, int h);
|
|
virtual ~GuiFileBrowser();
|
|
void DisableTriggerUpdate(bool set);
|
|
void ResetState();
|
|
void SetFocus(int f);
|
|
void Draw();
|
|
void UpdateList();
|
|
void Update(GuiTrigger * t);
|
|
GuiButton * fileList[PAGESIZE];
|
|
protected:
|
|
void onListChange(int SelItem, int SelInd);
|
|
int selectedItem;
|
|
bool triggerdisabled;
|
|
|
|
GuiText * fileListText[PAGESIZE];
|
|
GuiText * fileListTextOver[PAGESIZE];
|
|
GuiImage * fileListBg[PAGESIZE];
|
|
GuiImage * fileListFolder[PAGESIZE];
|
|
|
|
GuiImage * bgFileSelectionImg;
|
|
|
|
GuiImageData * bgFileSelection;
|
|
GuiImageData * bgFileSelectionEntry;
|
|
GuiImageData * fileFolder;
|
|
|
|
GuiTrigger * trigA;
|
|
GuiScrollbar scrollBar;
|
|
};
|
|
|
|
|
|
#endif
|