usbloadergx/source/GUI/gui_filebrowser.h
strtoul a66a30a771 *removed buggy focus system completely (it was never working correct)
*added support to control screen pointer with gc pad or classic controller. you are always able to control as long as the corresponding wii control does not point to the screen (e.g. wiimote 1 not pointing to screen -> gcpad/classic controller 1 can control pointer 1). a speed factor is added to the gui option. need feedback about a proper default value, currently 15% (only tested gc pad on dolphin-emu)
*fix reinit of cheatcount on download of new file
*moved installation window to be on top of main window
*added game installation cancel
*added nand extract cancel
*added back extract of save feature for a real nand channels
*added auto position of progress window messages in vertical direction depending of how many are used at the same time
2011-12-28 16:27:30 +00:00

41 lines
882 B
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 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