GuiFileList Class Reference
[2D graphical user interface]

A class for displaying a listbox containing filenames. More...

#include <guifilelist.h>

List of all members.

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


Detailed Description

A class for displaying a listbox containing filenames.


Constructor & Destructor Documentation

GuiFileList::GuiFileList ( TiXmlElement el,
GuiElement p 
)

Constructor. Uses XML data.

Parameters:
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)
See also:
GuiElement(TiXmlElement*,GuiElement*)


Member Function Documentation

void GuiFileList::setPath ( const char *  path  ) 

Shows the files in the specified directory.

Parameters:
path the path to the directory to display; may be relative to the user's data directory (as in BasicApp::getUserdataPath())


The documentation for this class was generated from the following files:
Generated on Wed May 9 17:36:17 2007 for netrinjo by  doxygen 1.5.1