GLUI_FileBrowser Class Reference

#include <glui.h>

Inherits GLUI_Panel.

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 ()

Private Attributes

int last_item
GLUI_String file
int allow_change_dir


Detailed Description

A list of files the user can select from.

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.

static 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


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

Generated on Tue Jan 20 23:44:13 2009 for FlowVis by  doxygen 1.5.7.1