2010-01-25 14:01:22 +01:00
|
|
|
#ifndef __FILE_BROWSER_HH__
|
|
|
|
#define __FILE_BROWSER_HH__
|
|
|
|
|
|
|
|
#include "menu.hh"
|
|
|
|
#include "gui.hh"
|
|
|
|
|
|
|
|
class FileBrowser : public Menu
|
|
|
|
{
|
|
|
|
public:
|
2010-01-30 09:06:32 +01:00
|
|
|
FileBrowser(const char **exts, Font *font);
|
|
|
|
|
|
|
|
~FileBrowser();
|
|
|
|
|
|
|
|
void pushDirectory(const char *path);
|
|
|
|
|
|
|
|
void setDirectory(const char *path);
|
2010-01-25 14:01:22 +01:00
|
|
|
|
|
|
|
protected:
|
2010-01-30 09:06:32 +01:00
|
|
|
void setDefaultFileList();
|
|
|
|
|
|
|
|
void freeFileList();
|
2010-01-25 14:01:22 +01:00
|
|
|
|
2010-01-30 09:06:32 +01:00
|
|
|
char *cur_path_prefix;
|
2010-01-25 14:01:22 +01:00
|
|
|
const char *path;
|
|
|
|
const char **file_list;
|
|
|
|
const char **exts;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __FILE_BROWSER_HH__ */
|