#include <guifilelist.h>
Public Member Functions | |
DECLSPEC | GuiFileList (const SDL_Rect &r, GuiElement *el, const char *name) |
DECLSPEC | GuiFileList (TiXmlElement *el, GuiElement *p) |
virtual const char * | getClassName () |
DECLSPEC char * | getFilename (unsigned int i) const |
DECLSPEC char * | getSelFilename () const |
DECLSPEC FIND_DATA | getAttribute (unsigned int i) const |
DECLSPEC FIND_DATA | getSelAttr () const |
DECLSPEC void | setFiletypes (bool files, bool dirs, bool others=false) |
DECLSPEC void | setPath (const char *path) |
DECLSPEC void | setSeekstr (const char *str) |
DECLSPEC void | hideExtension (bool hide=true) |
DECLSPEC void | refresh () |
Static Public Member Functions | |
static void | newguiobject (void *presult, BasicObject *o, void *xmldata) |
Protected Member Functions | |
virtual DECLSPEC void | onInit () |
Classes | |
struct | FIND_DATA |
GuiFileList::GuiFileList | ( | TiXmlElement * | el, | |
GuiElement * | p | |||
) |
Constructor. Uses XML data.
el | the XML data for initialisation; possible attributes are: Path (string), Pattern (string), ShowFiles, ShowDirecories, ShowOthers, HideExtensions (last four: bool) | |
p | parent element (or NULL, to take GuiManager::the as parent) |
void GuiFileList::setPath | ( | const char * | path | ) |
Shows the files in the specified directory.
path | the path to the directory to display; may be relative to the user's data directory (as in BasicApp::getUserdataPath()) |