#include <glui_dialogs.H>
Inheritance diagram for GLUIAlertBox:
Public Types | |
typedef void(* | alert_cb_t )(void *, void *, int, int) |
enum | icon_t { NO_ICON = -1, JOT_ICON = 0, INFO_ICON, QUESTION_ICON, EXCLAMATION_ICON, WARNING_ICON, ICON_NUM } |
Public Member Functions | |
GLUIAlertBox (GLUT_WINSYS *w) | |
virtual | ~GLUIAlertBox () |
virtual bool | display (bool blocking, alert_cb_t cb, void *vp, void *vpd, int idx) |
virtual bool | is_displaying () |
virtual bool | set_title (Cstr_ptr &s) |
virtual bool | set_icon (icon_t i) |
virtual bool | set_default (int d) |
virtual bool | add_button (Cstr_ptr &s) |
virtual bool | add_text (Cstr_ptr &s) |
virtual bool | clear_title () |
virtual bool | clear_icon () |
virtual bool | clear_default () |
virtual bool | clear_buttons () |
virtual bool | clear_text () |
virtual str_ptr | get_title () |
virtual icon_t | get_icon () |
virtual int | get_default () |
virtual str_list | get_buttons () |
virtual str_list | get_text () |
virtual bool | display (bool blocking, alert_cb_t cb, void *vp, void *vpd, int idx)=0 |
Static Public Member Functions | |
static void | slider_cbs (int id) |
static void | button_cbs (int id) |
static void | listbox_cbs (int id) |
static void | edittext_cbs (int id) |
static void | checkbox_cbs (int id) |
static void | bitmapbox_cbs (int id) |
static void | activetext_cbs (int id) |
static void | radiogroup_cbs (int id) |
Protected Types | |
enum | bitmapbox_id_t { BITMAPBOX_ICON = 0, BITMAPBOX_NUM } |
enum | panel_id_t { PANEL_TEXT = 0, PANEL_BUTTONS, PANEL_NUM } |
Protected Member Functions | |
virtual bool | undisplay (int button) |
virtual void | build_glui () |
virtual void | unbuild_glui () |
virtual void | button_cb (int id) |
virtual void | bitmapbox_cb (int id) |
virtual bool | is_showing () |
virtual bool | show_glui (bool blocking) |
virtual bool | hide_glui () |
virtual void | slider_cb (int id) |
virtual void | listbox_cb (int id) |
virtual void | edittext_cb (int id) |
virtual void | checkbox_cb (int id) |
virtual void | activetext_cb (int id) |
virtual void | radiogroup_cb (int id) |
Protected Attributes | |
alert_cb_t | _cb |
void * | _vp |
void * | _vpd |
int | _idx |
str_ptr | _title |
str_list | _text |
str_list | _buttons |
int | _default |
icon_t | _icon |
GLUT_WINSYS * | _glut_winsys |
GLUI * | _glui |
bool | _blocking |
int | _id |
ARRAY< GLUI_Panel * > | _panel |
ARRAY< GLUI_Button * > | _button |
ARRAY< GLUI_Slider * > | _slider |
ARRAY< GLUI_Rollout * > | _rollout |
ARRAY< GLUI_Listbox * > | _listbox |
ARRAY< GLUI_EditText * > | _edittext |
ARRAY< GLUI_Checkbox * > | _checkbox |
ARRAY< GLUI_BitmapBox * > | _bitmapbox |
ARRAY< GLUI_StaticText * > | _statictext |
ARRAY< GLUI_ActiveText * > | _activetext |
ARRAY< GLUI_RadioGroup * > | _radiogroup |
ARRAY< GLUI_RadioButton * > | _radiobutton |
Static Protected Attributes | |
static bool | _icon_init = false |
static IconBitmap | _icons [ICON_NUM] |
static ARRAY< GLUIPopUp * > | _ui |
Definition at line 157 of file glui_dialogs.H.
|
Definition at line 25 of file alert_box.H. |
|
Definition at line 160 of file glui_dialogs.H. |
|
Definition at line 14 of file alert_box.H. |
|
Definition at line 165 of file glui_dialogs.H. |
|
Definition at line 263 of file glui_dialogs.C. References _icon_init, _icons, alert_box_exclaim_icon, alert_box_info_icon, alert_box_jot_icon, alert_box_question_icon, alert_box_warn_icon, AlertBox::EXCLAMATION_ICON, AlertBox::INFO_ICON, AlertBox::JOT_ICON, AlertBox::QUESTION_ICON, and AlertBox::WARNING_ICON. |
|
Definition at line 284 of file glui_dialogs.C. |
|
Reimplemented in GLUIFileSelect. Definition at line 147 of file glui_dialogs.H. |
|
Definition at line 193 of file glui_dialogs.C. References GLUIPopUp::_ui, ID_MASK, ID_SHIFT, and ARRAY< T >::num(). Referenced by GLUIFileSelect::build_glui(). |
|
Definition at line 55 of file alert_box.H. References AlertBox::_buttons, ARRAY< T >::add(), and AlertBox::is_displaying(). Referenced by clear_cb(), do_load(), do_save(), and file_cbs(). |
|
Definition at line 56 of file alert_box.H. References AlertBox::_text, ARRAY< T >::add(), and AlertBox::is_displaying(). Referenced by clear_cb(), do_load(), do_save(), and file_cbs(). |
|
Reimplemented from GLUIPopUp. Definition at line 206 of file glui_dialogs.H. |
|
Definition at line 233 of file glui_dialogs.C. References GLUIPopUp::_ui, ID_MASK, ID_SHIFT, and ARRAY< T >::num(). Referenced by GLUIFileSelect::build_glui(), and build_glui(). |
|
Reimplemented from GLUIPopUp. Definition at line 382 of file glui_dialogs.C. References GLUIPopUp::_bitmapbox, GLUIPopUp::_button, AlertBox::_buttons, AlertBox::_default, GLUIPopUp::_glui, GLUIPopUp::_glut_winsys, AlertBox::_icon, _icons, GLUIPopUp::_id, GLUIPopUp::_panel, GLUIPopUp::_statictext, AlertBox::_text, AlertBox::_title, ARRAY< T >::add(), GLUIPopUp::bitmapbox_cbs(), BITMAPBOX_ICON, BITMAPBOX_NUM, GLUIPopUp::build_glui(), GLUIPopUp::button_cbs(), ID_SHIFT, max(), AlertBox::NO_ICON, ARRAY< T >::num(), PANEL_BUTTONS, PANEL_NUM, PANEL_TEXT, GLUT_WINSYS::position(), and GLUT_WINSYS::size(). |
|
Reimplemented from GLUIPopUp. Definition at line 491 of file glui_dialogs.C. References undisplay(). |
|
Definition at line 183 of file glui_dialogs.C. References GLUIPopUp::_ui, ID_MASK, ID_SHIFT, and ARRAY< T >::num(). Referenced by GLUIFileSelect::build_glui(), and build_glui(). |
|
Reimplemented in GLUIFileSelect. Definition at line 145 of file glui_dialogs.H. |
|
Definition at line 223 of file glui_dialogs.C. References GLUIPopUp::_ui, ID_MASK, ID_SHIFT, and ARRAY< T >::num(). Referenced by GLUIFileSelect::build_glui(). |
|
Definition at line 61 of file alert_box.H. References AlertBox::_buttons, ARRAY< T >::clear(), and AlertBox::is_displaying(). Referenced by undisplay(). |
|
Definition at line 60 of file alert_box.H. References AlertBox::_default, and AlertBox::is_displaying(). Referenced by undisplay(). |
|
Definition at line 59 of file alert_box.H. References AlertBox::_icon, AlertBox::is_displaying(), and AlertBox::NO_ICON. Referenced by undisplay(). |
|
Definition at line 62 of file alert_box.H. References AlertBox::_text, ARRAY< T >::clear(), and AlertBox::is_displaying(). Referenced by undisplay(). |
|
Definition at line 58 of file alert_box.H. References AlertBox::_title, and AlertBox::is_displaying(). Referenced by undisplay(). |
|
Referenced by clear_cb(), do_load(), do_save(), and file_cbs(). |
|
Definition at line 302 of file glui_dialogs.C. References AlertBox::_buttons, _cb, _idx, _vp, _vpd, is_displaying(), ARRAY< T >::num(), and GLUIPopUp::show_glui(). |
|
Reimplemented in GLUIFileSelect. Definition at line 144 of file glui_dialogs.H. |
|
Definition at line 213 of file glui_dialogs.C. References GLUIPopUp::_ui, ID_MASK, ID_SHIFT, and ARRAY< T >::num(). Referenced by GLUIFileSelect::build_glui(). |
|
Definition at line 67 of file alert_box.H. References AlertBox::_buttons. |
|
Definition at line 66 of file alert_box.H. References AlertBox::_default. |
|
Definition at line 65 of file alert_box.H. References AlertBox::_icon. |
|
Definition at line 68 of file alert_box.H. References AlertBox::_text. |
|
Definition at line 64 of file alert_box.H. References AlertBox::_title. |
|
Definition at line 151 of file glui_dialogs.C. References GLUIPopUp::_blocking, GLUIPopUp::_glui, GLUIPopUp::_glut_winsys, GLUT_MANAGER::clear_blocker(), GLUT_MANAGER::get_blocker(), FD_MANAGER::mgr(), and GLUIPopUp::unbuild_glui(). Referenced by GLUIFileSelect::undisplay(), and undisplay(). |
|
Implements AlertBox. Definition at line 293 of file glui_dialogs.C. References GLUIPopUp::is_showing(). Referenced by display(), and undisplay(). |
|
Definition at line 134 of file glui_dialogs.H. References GLUIPopUp::_glui. Referenced by GLUIFileSelect::is_displaying(), and is_displaying(). |
|
Reimplemented in GLUIFileSelect. Definition at line 143 of file glui_dialogs.H. |
|
Definition at line 203 of file glui_dialogs.C. References GLUIPopUp::_ui, ID_MASK, ID_SHIFT, and ARRAY< T >::num(). Referenced by GLUIFileSelect::build_glui(). |
|
Definition at line 148 of file glui_dialogs.H. |
|
Definition at line 243 of file glui_dialogs.C. References GLUIPopUp::_ui, ID_MASK, ID_SHIFT, and ARRAY< T >::num(). |
|
Definition at line 54 of file alert_box.H. References AlertBox::_default, and AlertBox::is_displaying(). Referenced by clear_cb(), do_load(), do_save(), and file_cbs(). |
|
Definition at line 53 of file alert_box.H. References AlertBox::_icon, and AlertBox::is_displaying(). Referenced by clear_cb(), do_load(), do_save(), and file_cbs(). |
|
Definition at line 52 of file alert_box.H. References AlertBox::_title, and AlertBox::is_displaying(). Referenced by clear_cb(), do_load(), do_save(), and file_cbs(). |
|
Definition at line 66 of file glui_dialogs.C. References GLUIPopUp::_blocking, GLUIPopUp::_glui, GLUIPopUp::_glut_winsys, GLUIPopUp::build_glui(), GLUT_MANAGER::get_blocker(), FD_MANAGER::mgr(), and GLUT_MANAGER::set_blocker(). Referenced by GLUIFileSelect::display(), and display(). |
|
Definition at line 141 of file glui_dialogs.H. |
|
Definition at line 173 of file glui_dialogs.C. References GLUIPopUp::_ui, ID_MASK, ID_SHIFT, and ARRAY< T >::num(). |
|
Reimplemented from GLUIPopUp. Definition at line 480 of file glui_dialogs.C. References GLUIPopUp::unbuild_glui(). |
|
Implements AlertBox. Definition at line 342 of file glui_dialogs.C. References _cb, _idx, _vp, _vpd, AlertBox::clear_buttons(), AlertBox::clear_default(), AlertBox::clear_icon(), AlertBox::clear_text(), AlertBox::clear_title(), GLUIPopUp::hide_glui(), and is_displaying(). Referenced by button_cb(). |
|
Definition at line 123 of file glui_dialogs.H. Referenced by GLUIFileSelect::build_glui(), GLUIFileSelect::do_scrollbar(), GLUIPopUp::unbuild_glui(), and GLUIFileSelect::update_listing(). |
|
Definition at line 121 of file glui_dialogs.H. Referenced by GLUIFileSelect::bitmapbox_cb(), GLUIFileSelect::build_glui(), build_glui(), GLUIFileSelect::do_scrollbar(), GLUIPopUp::unbuild_glui(), GLUIFileSelect::update_icons(), GLUIFileSelect::update_listing(), and GLUIFileSelect::update_scroll(). |
|
Definition at line 110 of file glui_dialogs.H. Referenced by GLUIPopUp::hide_glui(), and GLUIPopUp::show_glui(). |
|
Definition at line 115 of file glui_dialogs.H. Referenced by GLUIFileSelect::build_glui(), build_glui(), GLUIPopUp::unbuild_glui(), GLUIFileSelect::update_actions(), and GLUIFileSelect::update_headings(). |
|
Definition at line 39 of file alert_box.H. Referenced by AlertBox::add_button(), build_glui(), AlertBox::clear_buttons(), display(), and AlertBox::get_buttons(). |
|
Definition at line 181 of file glui_dialogs.H. Referenced by display(), and undisplay(). |
|
Definition at line 120 of file glui_dialogs.H. Referenced by GLUIFileSelect::build_glui(), GLUIFileSelect::readdir_(), GLUIPopUp::unbuild_glui(), and GLUIFileSelect::update_actions(). |
|
Definition at line 41 of file alert_box.H. Referenced by build_glui(), AlertBox::clear_default(), AlertBox::get_default(), and AlertBox::set_default(). |
|
|
|
Definition at line 107 of file glui_dialogs.H. Referenced by GLUIFileSelect::build_glui(), build_glui(), GLUIPopUp::build_glui(), GLUIPopUp::hide_glui(), and GLUIPopUp::show_glui(). |
|
Definition at line 43 of file alert_box.H. Referenced by build_glui(), AlertBox::clear_icon(), AlertBox::get_icon(), and AlertBox::set_icon(). |
|
Definition at line 173 of file glui_dialogs.H. Referenced by GLUIAlertBox(). |
|
Definition at line 174 of file glui_dialogs.H. Referenced by build_glui(), and GLUIAlertBox(). |
|
Definition at line 112 of file glui_dialogs.H. Referenced by GLUIFileSelect::build_glui(), build_glui(), and GLUIPopUp::GLUIPopUp(). |
|
Definition at line 184 of file glui_dialogs.H. Referenced by display(), and undisplay(). |
|
Definition at line 118 of file glui_dialogs.H. Referenced by GLUIFileSelect::build_glui(), GLUIFileSelect::do_path_listbox(), GLUIFileSelect::listbox_cb(), GLUIPopUp::unbuild_glui(), GLUIFileSelect::update_actions(), and GLUIFileSelect::update_pathlist(). |
|
Definition at line 114 of file glui_dialogs.H. Referenced by GLUIFileSelect::build_glui(), build_glui(), and GLUIPopUp::unbuild_glui(). |
|
Definition at line 125 of file glui_dialogs.H. Referenced by GLUIPopUp::unbuild_glui(). |
|
Definition at line 124 of file glui_dialogs.H. Referenced by GLUIPopUp::unbuild_glui(). |
|
Definition at line 117 of file glui_dialogs.H. Referenced by GLUIPopUp::unbuild_glui(). |
|
Definition at line 116 of file glui_dialogs.H. Referenced by GLUIPopUp::unbuild_glui(). |
|
Definition at line 122 of file glui_dialogs.H. Referenced by GLUIFileSelect::build_glui(), build_glui(), GLUIPopUp::unbuild_glui(), GLUIFileSelect::update_actions(), and GLUIFileSelect::update_listing(). |
|
Definition at line 38 of file alert_box.H. Referenced by AlertBox::add_text(), build_glui(), AlertBox::clear_text(), and AlertBox::get_text(). |
|
Definition at line 36 of file alert_box.H. Referenced by build_glui(), AlertBox::clear_title(), AlertBox::get_title(), and AlertBox::set_title(). |
|
Definition at line 91 of file glui_dialogs.H. Referenced by GLUIPopUp::activetext_cbs(), GLUIPopUp::bitmapbox_cbs(), GLUIPopUp::button_cbs(), GLUIPopUp::checkbox_cbs(), GLUIPopUp::edittext_cbs(), GLUIPopUp::GLUIPopUp(), GLUIPopUp::listbox_cbs(), GLUIPopUp::radiogroup_cbs(), and GLUIPopUp::slider_cbs(). |
|
Definition at line 182 of file glui_dialogs.H. Referenced by display(), and undisplay(). |
|
Definition at line 183 of file glui_dialogs.H. Referenced by display(), and undisplay(). |