SimpleGUI
Public Member Functions | Static Public Member Functions | List of all members
FileBrowser Class Reference

The FileBrowser class show a frame useful to search a file. This interface is created using the SimpleGUI widgets and is capable of return a string (char[]) with the full file name of selected file. More...

#include <filebrowser.h>

Inheritance diagram for FileBrowser:
Frame Widget

Public Member Functions

void loadFolders ()
 
void loadFiles ()
 
- Public Member Functions inherited from Frame
 Frame (int x=100, int y=100, int width=600, int height=400, const char title[]="")
 
void run ()
 
Widgetadd (Widget *widget)
 
void dispose ()
 
void changeFocus (Widget *widget)
 
- Public Member Functions inherited from Widget
 Widget (int x, int y, int width, int height, const char text[])
 
void updateGraphVariables (Display *display, int screen, Window window, GC gc)
 
virtual void draw ()
 
virtual bool triggerEvent (XEvent &)
 
bool mouseInArea (XEvent &event)
 
virtual void setFocused (bool)
 
char * getText ()
 
void setText (const char text[])
 
void show ()
 

Static Public Member Functions

static const char * searchFile ()
 

Additional Inherited Members

- Public Attributes inherited from Widget
void(* action )()
 
void(* taggedAction )(char text[])
 
- Static Protected Member Functions inherited from Widget
static void defaultAction ()
 
static void defaultTaggedAction (char[])
 
- Protected Attributes inherited from Widget
int x
 
int y
 
int width
 
int height
 
char text [256]
 
bool focused
 
bool hidden
 
Display * display
 
int screen
 
Window window
 
GC gc
 

Detailed Description

The FileBrowser class show a frame useful to search a file. This interface is created using the SimpleGUI widgets and is capable of return a string (char[]) with the full file name of selected file.


The documentation for this class was generated from the following file: