2010-12-12 17:31:13 +01:00
|
|
|
#ifndef GUI_SEARCHBAR_H_
|
|
|
|
#define GUI_SEARCHBAR_H_
|
2011-11-12 19:14:09 +01:00
|
|
|
|
2011-11-11 21:15:29 +01:00
|
|
|
#include <set>
|
2011-11-12 19:14:09 +01:00
|
|
|
#include <vector>
|
|
|
|
#include "gui.h"
|
|
|
|
#include "usbloader/disc.h"
|
|
|
|
#include "wstring.hpp"
|
2009-09-27 20:19:53 +02:00
|
|
|
|
|
|
|
class cSearchButton;
|
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
class GuiSearchBar: public GuiWindow
|
2010-02-09 11:59:55 +01:00
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
public:
|
2011-11-12 19:14:09 +01:00
|
|
|
GuiSearchBar();
|
2011-07-26 00:28:22 +02:00
|
|
|
virtual ~GuiSearchBar();
|
|
|
|
void Draw();
|
|
|
|
void Update(GuiTrigger * t);
|
|
|
|
wchar_t GetClicked();
|
2011-11-12 19:14:09 +01:00
|
|
|
|
|
|
|
static void FilterList(std::vector<struct discHdr *> &List, wString &GameFilter);
|
2011-07-26 00:28:22 +02:00
|
|
|
private:
|
2011-11-12 19:14:09 +01:00
|
|
|
static std::set<wchar_t> SearchChars;
|
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
u16 inSide;
|
|
|
|
|
|
|
|
GuiText text;
|
|
|
|
|
|
|
|
GuiImageData* imgBacspaceBtn;
|
|
|
|
GuiImage* BacspaceBtnImg;
|
|
|
|
GuiImage* BacspaceBtnImg_Over;
|
|
|
|
GuiButton* BacspaceBtn;
|
|
|
|
|
|
|
|
GuiImageData* imgClearBtn;
|
|
|
|
GuiImage* ClearBtnImg;
|
|
|
|
GuiImage* ClearBtnImg_Over;
|
|
|
|
GuiButton* ClearBtn;
|
|
|
|
|
|
|
|
GuiButton* CloseBtn;
|
|
|
|
|
2011-11-12 19:14:09 +01:00
|
|
|
cSearchButton *searchModeBtn;
|
2011-07-26 00:28:22 +02:00
|
|
|
cSearchButton **buttons;
|
|
|
|
int cnt;
|
|
|
|
GuiImageData keyImageData;
|
|
|
|
GuiImageData keyOverImageData;
|
|
|
|
GuiTrigger trig;
|
|
|
|
GuiTrigger trigB;
|
2009-09-27 20:19:53 +02:00
|
|
|
|
|
|
|
};
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-06-05 12:09:51 +02:00
|
|
|
#endif
|