vgui_gtk2_dialog_impl Class Reference

#include <vgui_gtk2_dialog_impl.h>

Inheritance diagram for vgui_gtk2_dialog_impl:

vgui_dialog_impl List of all members.

Detailed Description

Specialization of vgui_dialog_impl for GTK. Creates a GTK dialog box.

Definition at line 32 of file vgui_gtk2_dialog_impl.h.


Public Types

enum  status_type { BUSY, OK, CANCEL, CLOSE }
enum  element_type {
  bool_elem, int_elem, long_elem, float_elem,
  double_elem, string_elem, choice_elem, text_msg,
  file_bsr, color_csr, inline_file_bsr, inline_color_csr,
  inline_tabl, dir_bsr, line_br, unknown
}
 Enum of possible element types. More...

Public Member Functions

 vgui_gtk2_dialog_impl (const char *name)
 Constructor.
 ~vgui_gtk2_dialog_impl ()
 Destructor.
void * choice_field_widget (const char *, const vcl_vector< vcl_string > &, int &)
 Make a choice widget.
void * inline_tableau_widget (const vgui_tableau_sptr tab, unsigned width, unsigned height)
 Make a tableau widget.
void modal (bool m)
 Changes the modality of the dialog.
void set_ok_button (const char *txt)
 Set the text on the OK button.
void set_cancel_button (const char *txt)
 Set the text on the cancel button.
bool ask ()
 Display the dialog box.
void bool_field (const char *, bool &)
 Add a boolean field to the dialog box.
void int_field (const char *, int &)
 Add an integer field to the dialog box.
void long_field (const char *, long &)
 Add a long integer field to the dialog box.
void float_field (const char *, float &)
 Add a float field to the dialog box.
void double_field (const char *, double &)
 Add a double field to the dialog box.
void string_field (const char *, vcl_string &)
 Add a vcl_string field to the dialog box.
void choice_field (const char *, const vcl_vector< vcl_string > &, int &)
 Add a choice (selection box) to the dialog box.
void text_message (const char *)
 Add a text message to the dialog box.
void file_browser (const char *, vcl_string &, vcl_string &)
 Add a popup file browser to the dialog box.
void inline_file_browser (const char *, vcl_string &, vcl_string &)
 Add an inline file browser to the dialog box.
void color_chooser (const char *, vcl_string &)
 Add a popup colour chooser to the dialog box.
void inline_color_chooser (const char *, vcl_string &)
 Add an inline colour chooser to the dialog box.
void inline_tab (const vgui_tableau_sptr tab, unsigned width, unsigned height)
 Add a tableau (OpenGL area) to the dialog box.
virtual void * bool_field_widget (const char *, bool &)
 Pointer to a GUI widget for a bool field.
virtual void * int_field_widget (const char *, int &)
 Pointer to a GUI widget for a integer field.
virtual void * long_field_widget (const char *, long &)
 Pointer to a GUI widget for a long integer field.
virtual void * float_field_widget (const char *, float &)
 Pointer to a GUI widget for a float field.
virtual void * double_field_widget (const char *, double &)
 Pointer to a GUI widget for a double field.
virtual void * string_field_widget (const char *, vcl_string &)
 Pointer to a GUI widget for a string field.
virtual void * text_message_widget (const char *)
 Pointer to a GUI widget for a text message.
virtual void * file_browser_widget (const char *, vcl_string &, vcl_string &)
 Pointer to a GUI widget for a file browser.
virtual void * inline_file_browser_widget (const char *, vcl_string &, vcl_string &)
 Pointer to a GUI widget for an inline file browser.
virtual void * color_chooser_widget (const char *, vcl_string &)
 Pointer to a GUI widget for a colour chooser.
virtual void * inline_color_chooser_widget (const char *, vcl_string &)
 Pointer to a GUI widget for an inline colour chooser.

Protected Attributes

vcl_string name
vcl_vector< element > elements
vcl_string cancel_button_text_
vcl_string ok_button_text_

Private Attributes

GtkWidget * dialog_window
GtkWidget * vbox
status_type dialog_status_
vcl_string ok_text
vcl_string cancel_text
vcl_string title

Member Enumeration Documentation

enum vgui_gtk2_dialog_impl::status_type

Enumerator:
BUSY 
OK 
CANCEL 
CLOSE 

Definition at line 54 of file vgui_gtk2_dialog_impl.h.

enum vgui_dialog_impl::element_type [inherited]

Enum of possible element types.

Enumerator:
bool_elem 
int_elem 
long_elem 
float_elem 
double_elem 
string_elem 
choice_elem 
text_msg 
file_bsr 
color_csr 
inline_file_bsr 
inline_color_csr 
inline_tabl 
dir_bsr 
line_br 
unknown 

Definition at line 141 of file vgui_dialog_impl.h.


Constructor & Destructor Documentation

vgui_gtk2_dialog_impl::vgui_gtk2_dialog_impl ( const char *  name  ) 

Constructor.

Definition at line 32 of file vgui_gtk2_dialog_impl.cxx.

vgui_gtk2_dialog_impl::~vgui_gtk2_dialog_impl (  ) 

Destructor.

Definition at line 43 of file vgui_gtk2_dialog_impl.cxx.


Member Function Documentation

void * vgui_gtk2_dialog_impl::choice_field_widget ( const char *  ,
const vcl_vector< vcl_string > &  ,
int &   
) [virtual]

Make a choice widget.

Reimplemented from vgui_dialog_impl.

Definition at line 57 of file vgui_gtk2_dialog_impl.cxx.

void * vgui_gtk2_dialog_impl::inline_tableau_widget ( const vgui_tableau_sptr  tab,
unsigned  width,
unsigned  height 
) [virtual]

Make a tableau widget.

This returns a vgui_gtk2_adaptor, not a GtkWidget!

Reimplemented from vgui_dialog_impl.

Definition at line 72 of file vgui_gtk2_dialog_impl.cxx.

void vgui_gtk2_dialog_impl::modal ( bool  m  )  [virtual]

Changes the modality of the dialog.

True makes the dialog modal (i.e. the dialog 'grabs' all events), this is the default. False makes the dialog non-modal.

Reimplemented from vgui_dialog_impl.

Definition at line 28 of file vgui_gtk2_dialog_impl.cxx.

void vgui_gtk2_dialog_impl::set_ok_button ( const char *  txt  )  [virtual]

Set the text on the OK button.

Reimplemented from vgui_dialog_impl.

Definition at line 133 of file vgui_gtk2_dialog_impl.cxx.

void vgui_gtk2_dialog_impl::set_cancel_button ( const char *  txt  )  [virtual]

Set the text on the cancel button.

Reimplemented from vgui_dialog_impl.

Definition at line 141 of file vgui_gtk2_dialog_impl.cxx.

bool vgui_gtk2_dialog_impl::ask (  )  [virtual]

Display the dialog box.

Implements vgui_dialog_impl.

Definition at line 269 of file vgui_gtk2_dialog_impl.cxx.

void vgui_dialog_impl::bool_field ( const char *  ,
bool &   
) [inherited]

Add a boolean field to the dialog box.

Definition at line 40 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::int_field ( const char *  ,
int &   
) [inherited]

Add an integer field to the dialog box.

Definition at line 54 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::long_field ( const char *  ,
long &   
) [inherited]

Add a long integer field to the dialog box.

Definition at line 68 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::float_field ( const char *  ,
float &   
) [inherited]

Add a float field to the dialog box.

Definition at line 82 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::double_field ( const char *  ,
double &   
) [inherited]

Add a double field to the dialog box.

Definition at line 96 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::string_field ( const char *  ,
vcl_string &   
) [inherited]

Add a vcl_string field to the dialog box.

Definition at line 110 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::choice_field ( const char *  ,
const vcl_vector< vcl_string > &  ,
int &   
) [inherited]

Add a choice (selection box) to the dialog box.

Definition at line 124 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::text_message ( const char *   )  [inherited]

Add a text message to the dialog box.

Definition at line 203 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::file_browser ( const char *  ,
vcl_string &  ,
vcl_string &   
) [inherited]

Add a popup file browser to the dialog box.

Definition at line 137 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::inline_file_browser ( const char *  ,
vcl_string &  ,
vcl_string &   
) [inherited]

Add an inline file browser to the dialog box.

Definition at line 149 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::color_chooser ( const char *  ,
vcl_string &   
) [inherited]

Add a popup colour chooser to the dialog box.

Definition at line 162 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::inline_color_chooser ( const char *  ,
vcl_string &   
) [inherited]

Add an inline colour chooser to the dialog box.

Definition at line 174 of file vgui_dialog_impl.cxx.

void vgui_dialog_impl::inline_tab ( const vgui_tableau_sptr  tab,
unsigned  width,
unsigned  height 
) [inherited]

Add a tableau (OpenGL area) to the dialog box.

Definition at line 186 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::bool_field_widget ( const char *  ,
bool &   
) [virtual, inherited]

Pointer to a GUI widget for a bool field.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 216 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::int_field_widget ( const char *  ,
int &   
) [virtual, inherited]

Pointer to a GUI widget for a integer field.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 217 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::long_field_widget ( const char *  ,
long &   
) [virtual, inherited]

Pointer to a GUI widget for a long integer field.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 218 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::float_field_widget ( const char *  ,
float &   
) [virtual, inherited]

Pointer to a GUI widget for a float field.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 219 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::double_field_widget ( const char *  ,
double &   
) [virtual, inherited]

Pointer to a GUI widget for a double field.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 220 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::string_field_widget ( const char *  ,
vcl_string &   
) [virtual, inherited]

Pointer to a GUI widget for a string field.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 221 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::text_message_widget ( const char *   )  [virtual, inherited]

Pointer to a GUI widget for a text message.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 223 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::file_browser_widget ( const char *  ,
vcl_string &  ,
vcl_string &   
) [virtual, inherited]

Pointer to a GUI widget for a file browser.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 224 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::inline_file_browser_widget ( const char *  ,
vcl_string &  ,
vcl_string &   
) [virtual, inherited]

Pointer to a GUI widget for an inline file browser.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 225 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::color_chooser_widget ( const char *  ,
vcl_string &   
) [virtual, inherited]

Pointer to a GUI widget for a colour chooser.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 226 of file vgui_dialog_impl.cxx.

void * vgui_dialog_impl::inline_color_chooser_widget ( const char *  ,
vcl_string &   
) [virtual, inherited]

Pointer to a GUI widget for an inline colour chooser.

Reimplemented in vgui_qt_dialog_impl, and vgui_qt_dialog_impl.

Definition at line 227 of file vgui_dialog_impl.cxx.


Member Data Documentation

GtkWidget* vgui_gtk2_dialog_impl::dialog_window [private]

Definition at line 60 of file vgui_gtk2_dialog_impl.h.

GtkWidget* vgui_gtk2_dialog_impl::vbox [private]

Definition at line 61 of file vgui_gtk2_dialog_impl.h.

status_type vgui_gtk2_dialog_impl::dialog_status_ [private]

Definition at line 63 of file vgui_gtk2_dialog_impl.h.

vcl_string vgui_gtk2_dialog_impl::ok_text [private]

Definition at line 65 of file vgui_gtk2_dialog_impl.h.

vcl_string vgui_gtk2_dialog_impl::cancel_text [private]

Definition at line 66 of file vgui_gtk2_dialog_impl.h.

vcl_string vgui_gtk2_dialog_impl::title [private]

Definition at line 67 of file vgui_gtk2_dialog_impl.h.

vcl_string vgui_dialog_impl::name [protected, inherited]

Definition at line 169 of file vgui_dialog_impl.h.

vcl_vector<element> vgui_dialog_impl::elements [protected, inherited]

Definition at line 170 of file vgui_dialog_impl.h.

vcl_string vgui_dialog_impl::cancel_button_text_ [protected, inherited]

Definition at line 171 of file vgui_dialog_impl.h.

vcl_string vgui_dialog_impl::ok_button_text_ [protected, inherited]

Definition at line 172 of file vgui_dialog_impl.h.


The documentation for this class was generated from the following files:
Generated on Sun Nov 22 05:12:07 2009 for core/vgui by  doxygen 1.5.1