Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

GLUI_FileBrowser Class Reference

#include <glui.h>

Inheritance diagram for GLUI_FileBrowser:

GLUI_Panel GLUI_Control GLUI_Node List of all members.

Detailed Description

A list of files the user can select from.


Public Member Functions

 GLUI_FileBrowser (GLUI_Node *parent, const char *name, int frame_type=GLUI_PANEL_EMBOSSED, int user_id=-1, GLUI_CB callback=GLUI_CB())
void fbreaddir (const char *)
void set_w (int w)
void set_h (int h)
const char * get_file ()
void set_allow_change_dir (int c)

Static Public Member Functions

void dir_list_callback (GLUI_Control *)

Public Attributes

GLUI_Listlist
GLUI_String current_dir

Protected Member Functions

void common_init ()


Constructor & Destructor Documentation

GLUI_FileBrowser::GLUI_FileBrowser GLUI_Node parent,
const char *  name,
int  frame_type = GLUI_PANEL_EMBOSSED,
int  user_id = -1,
GLUI_CB  callback = GLUI_CB()
 

Create a new list of files the user can select from.

Parameters:
parent The panel our object is inside; or the main GLUI object.
name Prompt to give to the user at the top of the file browser.
frame_type Optional style to display the panel with--GLUI_PANEL_EMBOSSED by default. GLUI_PANEL_RAISED causes the panel to appear higher than the surroundings. GLUI_PANEL_NONE causes the panel's outline to be invisible.
id Optional ID number, to pass to the optional callback function.
callback Optional callback function, taking either the int ID or control.


Member Function Documentation

void GLUI_FileBrowser::common_init void   )  [inline, protected]
 

Reimplemented from GLUI_Panel.

void GLUI_FileBrowser::dir_list_callback GLUI_Control  )  [static]
 

void GLUI_FileBrowser::fbreaddir const char *   ) 
 

const char* GLUI_FileBrowser::get_file  )  [inline]
 

void GLUI_FileBrowser::set_allow_change_dir int  c  )  [inline]
 

void GLUI_FileBrowser::set_h int  h  ) 
 

Reimplemented from GLUI_Control.

void GLUI_FileBrowser::set_w int  w  ) 
 

Reimplemented from GLUI_Control.


Member Data Documentation

GLUI_String GLUI_FileBrowser::current_dir
 

GLUI_List* GLUI_FileBrowser::list
 


The documentation for this class was generated from the following files:
Generated on Fri Sep 15 17:51:57 2006 for GLUI by doxygen 1.3.6