Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

FileListbox Class Reference

#include <file_listbox.H>

Collaboration diagram for FileListbox:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FileListbox (Cstr_ptr &label, Cstr_ptr &listbox_name, Cstr_ptr &button_name)
virtual ~FileListbox ()
void toggle ()
void show ()
void hide ()

Static Public Member Functions

static void listbox_cb (int id)
static void set_cb (int id)
static void hide_cb (int id)
static void fill_listbox (GLUI_Listbox *listbox, str_list &files, Cstr_ptr &full_path, Cstr_ptr &save_path, const char *extension=0)

Protected Member Functions

virtual void button_press_cb ()=0
void init (Cstr_ptr &label, Cstr_ptr &listbox_name, Cstr_ptr &button_name)

Protected Attributes

GLUI * _glui
GLUI_Listbox * _listbox
int _selected
bool _shown
str_list _files

Static Protected Attributes

static ARRAY< FileListbox * > _file_list_boxes

Detailed Description

Definition at line 9 of file file_listbox.H.


Constructor & Destructor Documentation

FileListbox::FileListbox Cstr_ptr &  label,
Cstr_ptr &  listbox_name,
Cstr_ptr &  button_name
 

Definition at line 11 of file file_listbox.C.

References _file_list_boxes, and init().

virtual FileListbox::~FileListbox  )  [inline, virtual]
 

Definition at line 33 of file file_listbox.H.


Member Function Documentation

virtual void FileListbox::button_press_cb  )  [protected, pure virtual]
 

void FileListbox::fill_listbox GLUI_Listbox *  listbox,
str_list files,
Cstr_ptr &  full_path,
Cstr_ptr &  save_path,
const char *  extension = 0
[static]
 

Definition at line 64 of file file_listbox.C.

References dir_list(), j, and ARRAY< T >::num().

void FileListbox::hide  ) 
 

Definition at line 97 of file file_listbox.C.

References _glui, and _shown.

void FileListbox::hide_cb int  id  )  [static]
 

Definition at line 127 of file file_listbox.C.

References _file_list_boxes.

Referenced by init().

void FileListbox::init Cstr_ptr &  label,
Cstr_ptr &  listbox_name,
Cstr_ptr &  button_name
[protected]
 

Definition at line 22 of file file_listbox.C.

References _file_list_boxes, _glui, _listbox, hide_cb(), listbox_cb(), ARRAY< T >::num(), VIEW::peek(), and set_cb().

Referenced by FileListbox().

void FileListbox::listbox_cb int  id  )  [static]
 

Definition at line 113 of file file_listbox.C.

References _file_list_boxes.

Referenced by init().

void FileListbox::set_cb int  id  )  [static]
 

Definition at line 120 of file file_listbox.C.

References _file_list_boxes.

Referenced by init().

void FileListbox::show  ) 
 

Definition at line 87 of file file_listbox.C.

References _glui, and _shown.

void FileListbox::toggle  ) 
 

Definition at line 106 of file file_listbox.C.

References _glui, and _shown.


Member Data Documentation

ARRAY< FileListbox * > FileListbox::_file_list_boxes [static, protected]
 

Definition at line 24 of file file_listbox.H.

Referenced by FileListbox(), hide_cb(), init(), listbox_cb(), and set_cb().

str_list FileListbox::_files [protected]
 

Definition at line 22 of file file_listbox.H.

GLUI* FileListbox::_glui [protected]
 

Definition at line 17 of file file_listbox.H.

Referenced by hide(), init(), show(), and toggle().

GLUI_Listbox* FileListbox::_listbox [protected]
 

Definition at line 19 of file file_listbox.H.

Referenced by init().

int FileListbox::_selected [protected]
 

Definition at line 20 of file file_listbox.H.

bool FileListbox::_shown [protected]
 

Definition at line 21 of file file_listbox.H.

Referenced by hide(), show(), and toggle().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:45:20 2006 for jot by  doxygen 1.4.4