GLUI_FileBrowser Class Reference

#include <glui.h>

Inheritance diagram for GLUI_FileBrowser:

Inheritance graph
[legend]
Collaboration diagram for GLUI_FileBrowser:

Collaboration graph
[legend]

List of all members.

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

static void dir_list_callback (GLUI_Control *)

Public Attributes

GLUI_Listlist
GLUI_String current_dir

Protected Member Functions

void common_init ()


Detailed Description

A list of files the user can select from.

Definition at line 1139 of file glui.h.


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.
obj_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::fbreaddir ( const char *   ) 

static void GLUI_FileBrowser::dir_list_callback ( GLUI_Control  )  [static]

void GLUI_FileBrowser::set_w ( int  w  ) 

Reimplemented from GLUI_Control.

void GLUI_FileBrowser::set_h ( int  h  ) 

Reimplemented from GLUI_Control.

const char* GLUI_FileBrowser::get_file (  )  [inline]

Definition at line 1167 of file glui.h.

void GLUI_FileBrowser::set_allow_change_dir ( int  c  )  [inline]

Definition at line 1168 of file glui.h.

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

Reimplemented from GLUI_Panel.

Definition at line 1171 of file glui.h.


Member Data Documentation

GLUI_List* GLUI_FileBrowser::list

Definition at line 1159 of file glui.h.

GLUI_String GLUI_FileBrowser::current_dir

Definition at line 1160 of file glui.h.


The documentation for this class was generated from the following file:
Generated on Thu Aug 30 11:04:42 2007 for SPRING Mac by  doxygen 1.5.3