mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-10 13:35:07 +01:00
c51b2304c2
* added direct list of emu nand channels without activating emu nand (for speed up) * removed autoclose of search bar and changed the search engine to have both methods * added setting for switching "Beginning" and "Content" search methods and a quick switch button on search window * added autocomplete if only one search character is available and more than one match * added seperate path and setting for emu nand channels/saves * added caching of emu nand channel titles * fixed a few alignment issues when activating emu nand (thanks daveboal) * some minor clean ups TODO/Next Rev: * add channels banner sounds * remove unneeded game settings options on channels
52 lines
941 B
C++
52 lines
941 B
C++
#ifndef GUI_SEARCHBAR_H_
|
|
#define GUI_SEARCHBAR_H_
|
|
|
|
#include <set>
|
|
#include <vector>
|
|
#include "gui.h"
|
|
#include "usbloader/disc.h"
|
|
#include "wstring.hpp"
|
|
|
|
class cSearchButton;
|
|
|
|
class GuiSearchBar: public GuiWindow
|
|
{
|
|
public:
|
|
GuiSearchBar();
|
|
virtual ~GuiSearchBar();
|
|
void Draw();
|
|
void Update(GuiTrigger * t);
|
|
wchar_t GetClicked();
|
|
|
|
static void FilterList(std::vector<struct discHdr *> &List, wString &GameFilter);
|
|
private:
|
|
static std::set<wchar_t> SearchChars;
|
|
|
|
u16 inSide;
|
|
|
|
GuiText text;
|
|
|
|
GuiImageData* imgBacspaceBtn;
|
|
GuiImage* BacspaceBtnImg;
|
|
GuiImage* BacspaceBtnImg_Over;
|
|
GuiButton* BacspaceBtn;
|
|
|
|
GuiImageData* imgClearBtn;
|
|
GuiImage* ClearBtnImg;
|
|
GuiImage* ClearBtnImg_Over;
|
|
GuiButton* ClearBtn;
|
|
|
|
GuiButton* CloseBtn;
|
|
|
|
cSearchButton *searchModeBtn;
|
|
cSearchButton **buttons;
|
|
int cnt;
|
|
GuiImageData keyImageData;
|
|
GuiImageData keyOverImageData;
|
|
GuiTrigger trig;
|
|
GuiTrigger trigB;
|
|
|
|
};
|
|
|
|
#endif
|