GClasses
GClasses::GWidgetFileSystemBrowser Class Reference

#include <GWidgets.h>

Inheritance diagram for GClasses::GWidgetFileSystemBrowser:
GClasses::GWidgetGroup GClasses::GWidget

Public Member Functions

 GWidgetFileSystemBrowser (GWidgetGroup *pParent, int x, int y, int w, int h, const char *szExtensions)
 szExtension should be NULL if you want to allow all extensions More...
 
virtual ~GWidgetFileSystemBrowser ()
 
virtual void draw (GImage *pCanvas, int x, int y)
 Draws this widget on pCanvas at (x,y) More...
 
void setFileListDirty ()
 
virtual WidgetType type ()
 
- Public Member Functions inherited from GClasses::GWidgetGroup
 GWidgetGroup (GWidgetGroup *pParent, int x, int y, int w, int h)
 
virtual ~GWidgetGroup ()
 
GWidgetchildWidget (int n)
 
int childWidgetCount ()
 
virtual GWidgetAtomicfindAtomicWidget (int x, int y)
 
virtual bool isAtomic ()
 
virtual void onCanvasMouseDown (GWidgetCanvas *pCanvas, int button, int x, int y)
 
virtual void onCanvasMouseMove (GWidgetCanvas *pCanvas, int x, int y, bool bPressed)
 
virtual void onCanvasMouseUp (GWidgetCanvas *pCanvas, int button, int x, int y)
 
virtual void onChangeCheckBox (GWidgetCheckBox *pCheckBox)
 
virtual void onChar (char c)
 
virtual void onCheckBulletHole (GWidgetBulletHole *pBullet)
 
virtual void onClickTab (GWidgetSliderTab *pTab)
 
virtual void onCustomEvent (GWidget *pWidget)
 
virtual void onDestroyWidget (GWidget *pWidget)
 
virtual void onHorizScroll (GWidgetHorizScrollBar *pScrollBar)
 
virtual void onHorizSliderMove (GWidgetHorizSlider *pSlider)
 
virtual void onPushTextButton (GWidgetTextButton *pButton)
 
virtual void onPushVCRButton (GWidgetVCRButton *pButton)
 
virtual void onReleaseImageButton (GWidgetImageButton *pButton)
 
virtual void onReleaseTextButton (GWidgetTextButton *pButton)
 
virtual void onSelectFilename (GWidgetFileSystemBrowser *pBrowser, const char *szFilename)
 
virtual void onSelectTextTab (GWidgetTextTab *pTab)
 
virtual void onSlideTab (GWidgetSliderTab *pTab, int dx, int dy)
 
virtual void onSpecialKey (int key)
 
virtual void onTextBoxPressEnter (GWidgetTextBox *pTextBox)
 
virtual void onTextBoxTextChanged (GWidgetTextBox *pTextBox)
 
virtual void onVertScroll (GWidgetVertScrollBar *pScrollBar)
 
virtual void onVertSliderMove (GWidgetVertSlider *pSlider)
 
virtual void tattle (GWidget *pChild)
 
- Public Member Functions inherited from GClasses::GWidget
 GWidget (GWidgetGroup *m_pParent, int x, int y, int w, int h)
 
virtual ~GWidget ()
 
int id ()
 
GWidgetGroupparent ()
 
GRectrect ()
 
void setPos (int x, int y)
 

Protected Member Functions

void addFilename (bool bDir, const char *szFilename)
 
virtual void dirFoldersAndFiles (std::string *pOutDir, std::vector< std::string > *pOutFolders, std::vector< std::string > *pOutFiles)
 
virtual void onClickTextLabel (GWidgetTextLabel *pLabel)
 
void reloadFileList ()
 
- Protected Member Functions inherited from GClasses::GWidgetGroup
void addWidget (GWidget *pWidget)
 
bool getDirtyBit (int nBit)
 
void setClean ()
 
void setDirtyBit (int nBit, bool bValue)
 

Protected Attributes

bool m_bFileListDirty
 
std::string m_path
 
GWidgetGridm_pFiles
 
GWidgetTextLabelm_pPath
 
char * m_szExtensions
 
- Protected Attributes inherited from GClasses::GWidgetGroup
std::vector< unsigned int > m_dirtyBits
 
std::vector< GWidget * > m_dirtyChildren
 
std::vector< GWidget * > m_widgets
 
- Protected Attributes inherited from GClasses::GWidget
GWidgetCommonm_common
 
int m_nID
 
GWidgetGroupm_pParent
 
GRect m_rect
 

Additional Inherited Members

- Public Types inherited from GClasses::GWidget

Constructor & Destructor Documentation

GClasses::GWidgetFileSystemBrowser::GWidgetFileSystemBrowser ( GWidgetGroup pParent,
int  x,
int  y,
int  w,
int  h,
const char *  szExtensions 
)

szExtension should be NULL if you want to allow all extensions

virtual GClasses::GWidgetFileSystemBrowser::~GWidgetFileSystemBrowser ( )
virtual

Member Function Documentation

void GClasses::GWidgetFileSystemBrowser::addFilename ( bool  bDir,
const char *  szFilename 
)
protected
virtual void GClasses::GWidgetFileSystemBrowser::dirFoldersAndFiles ( std::string *  pOutDir,
std::vector< std::string > *  pOutFolders,
std::vector< std::string > *  pOutFiles 
)
protectedvirtual
virtual void GClasses::GWidgetFileSystemBrowser::draw ( GImage pCanvas,
int  x,
int  y 
)
virtual

Draws this widget on pCanvas at (x,y)

Implements GClasses::GWidget.

virtual void GClasses::GWidgetFileSystemBrowser::onClickTextLabel ( GWidgetTextLabel pLabel)
protectedvirtual

Reimplemented from GClasses::GWidgetGroup.

void GClasses::GWidgetFileSystemBrowser::reloadFileList ( )
protected
void GClasses::GWidgetFileSystemBrowser::setFileListDirty ( )
inline
virtual WidgetType GClasses::GWidgetFileSystemBrowser::type ( )
inlinevirtual

Implements GClasses::GWidget.

Member Data Documentation

bool GClasses::GWidgetFileSystemBrowser::m_bFileListDirty
protected
std::string GClasses::GWidgetFileSystemBrowser::m_path
protected
GWidgetGrid* GClasses::GWidgetFileSystemBrowser::m_pFiles
protected
GWidgetTextLabel* GClasses::GWidgetFileSystemBrowser::m_pPath
protected
char* GClasses::GWidgetFileSystemBrowser::m_szExtensions
protected