Public Member Functions | Protected Member Functions | Protected Attributes
vgui_dialog Class Reference

#include <vgui_dialog.h>

Inheritance diagram for vgui_dialog:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 vgui_dialog (const char *name)
 Constructor - takes the title of the dialog box.
virtual ~vgui_dialog ()
void pushbutton (vgui_command_sptr cmnd, const char *label, const void *icon)
void pushbutton (vgui_dialog_callback_no_client_data f, const char *label, const void *icon)
void pushbutton (vgui_dialog_callback f, void const *client_data, const char *label, const void *icon)
void checkbox (const char *, bool &)
void field (const char *, int &)
void field (const char *c, unsigned int &v)
void field (const char *, long &)
void field (const char *, float &)
void field (const char *, double &)
void field (const char *, vcl_string &)
void choice (const char *label, const char *option1, const char *option2, int &chosen)
 Multiple choice - with two options.
void choice (const char *label, const char *option1, const char *option2, const char *option3, int &chosen)
 Multiple choice - with three options.
void choice (const char *, const vcl_vector< vcl_string > &, int &)
 Multiple choice - with the list of options given.
void choice (const char *s, const vcl_vector< vcl_string > &v, unsigned &r)
void file (const char *label, vcl_string &regexp, vcl_string &filepath)
 File browsers.
void inline_file (const char *label, vcl_string &regexp, vcl_string &filepath)
 inline file browser.
void color (const char *label, vcl_string &)
 Color chooser.
void inline_color (const char *label, vcl_string &)
 Inline color chooser.
void message (const char *)
 Text message.
void line_break ()
void inline_tableau (const vgui_tableau_sptr tab, unsigned width, unsigned height)
 Display a tableau in the dialog.
void set_cancel_button (const char *label)
 Set the labels on each button, if 0 that button does not appear.
void set_ok_button (const char *label)
 Set the labels on each button, if 0 that button does not appear.
void set_modal (const bool)
 A "modal" dialog captures all events sent to the application.
bool ask ()
 Display the dialog box and wait for the users response.

Protected Member Functions

 vgui_dialog ()

Protected Attributes

vgui_dialog_implimpl

Detailed Description

Definition at line 57 of file vgui_dialog.h.


Constructor & Destructor Documentation

vgui_dialog::vgui_dialog ( const char *  name)

Constructor - takes the title of the dialog box.

Definition at line 22 of file vgui_dialog.cxx.

vgui_dialog::~vgui_dialog ( ) [virtual]

Definition at line 29 of file vgui_dialog.cxx.

vgui_dialog::vgui_dialog ( ) [inline, protected]

Definition at line 130 of file vgui_dialog.h.


Member Function Documentation

bool vgui_dialog::ask ( void  )

Display the dialog box and wait for the users response.

Returns true if the user clicks on the 'OK' button and false if the user clicks on the 'Cancel' button.

Reimplemented in vgui_dialog_extensions.

Definition at line 35 of file vgui_dialog.cxx.

void vgui_dialog::checkbox ( const char *  txt,
bool &  v 
)

Definition at line 60 of file vgui_dialog.cxx.

void vgui_dialog::choice ( const char *  label,
const char *  option1,
const char *  option2,
int &  chosen 
)

Multiple choice - with two options.

Definition at line 97 of file vgui_dialog.cxx.

void vgui_dialog::choice ( const char *  label,
const char *  option1,
const char *  option2,
const char *  option3,
int &  chosen 
)

Multiple choice - with three options.

Definition at line 105 of file vgui_dialog.cxx.

void vgui_dialog::choice ( const char *  txt,
const vcl_vector< vcl_string > &  labels,
int &  v 
)

Multiple choice - with the list of options given.

Definition at line 92 of file vgui_dialog.cxx.

void vgui_dialog::choice ( const char *  s,
const vcl_vector< vcl_string > &  v,
unsigned &  r 
) [inline]

Definition at line 91 of file vgui_dialog.h.

void vgui_dialog::color ( const char *  label,
vcl_string &  v 
)

Color chooser.

Definition at line 125 of file vgui_dialog.cxx.

void vgui_dialog::field ( const char *  txt,
int &  v 
)

Definition at line 66 of file vgui_dialog.cxx.

void vgui_dialog::field ( const char *  c,
unsigned int &  v 
) [inline]

Definition at line 74 of file vgui_dialog.h.

void vgui_dialog::field ( const char *  txt,
long &  v 
)

Definition at line 72 of file vgui_dialog.cxx.

void vgui_dialog::field ( const char *  txt,
float &  v 
)

Definition at line 77 of file vgui_dialog.cxx.

void vgui_dialog::field ( const char *  txt,
double &  v 
)

Definition at line 82 of file vgui_dialog.cxx.

void vgui_dialog::field ( const char *  txt,
vcl_string &  v 
)

Definition at line 87 of file vgui_dialog.cxx.

void vgui_dialog::file ( const char *  label,
vcl_string &  regexp,
vcl_string &  filepath 
)

File browsers.

Definition at line 114 of file vgui_dialog.cxx.

void vgui_dialog::inline_color ( const char *  label,
vcl_string &  v 
)

Inline color chooser.

Definition at line 130 of file vgui_dialog.cxx.

void vgui_dialog::inline_file ( const char *  label,
vcl_string &  regexp,
vcl_string &  filepath 
)

inline file browser.

Definition at line 119 of file vgui_dialog.cxx.

void vgui_dialog::inline_tableau ( const vgui_tableau_sptr  tab,
unsigned  width,
unsigned  height 
)

Display a tableau in the dialog.

Definition at line 140 of file vgui_dialog.cxx.

void vgui_dialog::line_break ( )

Reimplemented in vgui_dialog_extensions.

Definition at line 161 of file vgui_dialog.cxx.

void vgui_dialog::message ( const char *  txt)

Text message.

Definition at line 135 of file vgui_dialog.cxx.

void vgui_dialog::pushbutton ( vgui_command_sptr  cmnd,
const char *  label,
const void *  icon 
)

Definition at line 43 of file vgui_dialog.cxx.

void vgui_dialog::pushbutton ( vgui_dialog_callback_no_client_data  f,
const char *  label,
const void *  icon 
)

Definition at line 48 of file vgui_dialog.cxx.

void vgui_dialog::pushbutton ( vgui_dialog_callback  f,
void const *  client_data,
const char *  label,
const void *  icon 
)

Definition at line 54 of file vgui_dialog.cxx.

void vgui_dialog::set_cancel_button ( const char *  label)

Set the labels on each button, if 0 that button does not appear.

Definition at line 146 of file vgui_dialog.cxx.

void vgui_dialog::set_modal ( const bool  is_modal)

A "modal" dialog captures all events sent to the application.

Definition at line 156 of file vgui_dialog.cxx.

void vgui_dialog::set_ok_button ( const char *  label)

Set the labels on each button, if 0 that button does not appear.

Definition at line 151 of file vgui_dialog.cxx.


Member Data Documentation

Definition at line 131 of file vgui_dialog.h.


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