#include <glui.h>
Inherits GLUI_Panel.
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_List * | list |
GLUI_String | current_dir |
Protected Member Functions | |
void | common_init () |
Private Attributes | |
int | last_item |
GLUI_String | file |
int | allow_change_dir |
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.
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. |
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.
int GLUI_FileBrowser::allow_change_dir [private] |
GLUI_String GLUI_FileBrowser::file [private] |
int GLUI_FileBrowser::last_item [private] |