Dialog Class Reference

#include <dialog.h>

Inheritance diagram for Dialog:
Inheritance graph
[legend]
Collaboration diagram for Dialog:
Collaboration graph
[legend]

Public Member Functions

 Dialog ()
virtual ~Dialog ()
EMessageBoxReturn DoModal ()
void EndModal (EMessageBoxReturn code)
virtual GtkWindowBuildDialog ()=0
virtual void exportData ()
virtual void importData ()
virtual void PreModal ()
virtual void PostModal (EMessageBoxReturn code)
virtual void ShowDlg ()
virtual void HideDlg ()
void Create ()
void Destroy ()
GtkWindowGetWidget ()
const GtkWindowGetWidget () const
GtkWidgetaddCheckBox (GtkWidget *vbox, const char *name, const char *flag, const BoolImportCallback &importCallback, const BoolExportCallback &exportCallback)
GtkWidgetaddCheckBox (GtkWidget *vbox, const char *name, const char *flag, bool &data)
void addCombo (GtkWidget *vbox, const char *name, StringArrayRange values, const IntImportCallback &importCallback, const IntExportCallback &exportCallback)
void addCombo (GtkWidget *vbox, const char *name, int &data, StringArrayRange values)
void addSlider (GtkWidget *vbox, const char *name, int &data, gboolean draw_value, const char *low, const char *high, double value, double lower, double upper, double step_increment, double page_increment, double page_size)
void addRadio (GtkWidget *vbox, const char *name, StringArrayRange names, const IntImportCallback &importCallback, const IntExportCallback &exportCallback)
void addRadio (GtkWidget *vbox, const char *name, int &data, StringArrayRange names)
void addRadioIcons (GtkWidget *vbox, const char *name, StringArrayRange icons, const IntImportCallback &importCallback, const IntExportCallback &exportCallback)
void addRadioIcons (GtkWidget *vbox, const char *name, int &data, StringArrayRange icons)
GtkWidgetaddIntEntry (GtkWidget *vbox, const char *name, const IntImportCallback &importCallback, const IntExportCallback &exportCallback)
GtkWidgetaddEntry (GtkWidget *vbox, const char *name, int &data)
GtkWidgetaddSizeEntry (GtkWidget *vbox, const char *name, const SizeImportCallback &importCallback, const SizeExportCallback &exportCallback)
GtkWidgetaddEntry (GtkWidget *vbox, const char *name, std::size_t &data)
GtkWidgetaddFloatEntry (GtkWidget *vbox, const char *name, const FloatImportCallback &importCallback, const FloatExportCallback &exportCallback)
GtkWidgetaddEntry (GtkWidget *vbox, const char *name, float &data)
GtkWidgetaddPathEntry (GtkWidget *vbox, const char *name, bool browse_directory, const StringImportCallback &importCallback, const StringExportCallback &exportCallback)
GtkWidgetaddPathEntry (GtkWidget *vbox, const char *name, std::string &data, bool directory)
GtkWidgetaddSpinner (GtkWidget *vbox, const char *name, int &data, double value, double lower, double upper)
GtkWidgetaddSpinner (GtkWidget *vbox, const char *name, double value, double lower, double upper, const IntImportCallback &importCallback, const IntExportCallback &exportCallback)
GtkWidgetaddSpinner (GtkWidget *vbox, const char *name, double value, double lower, double upper, const FloatImportCallback &importCallback, const FloatExportCallback &exportCallback)

Data Fields

ModalDialog m_modal
GtkWindowm_parent

Protected Member Functions

void AddBoolToggleData (GtkToggleButton &object, const BoolImportCallback &importCallback, const BoolExportCallback &exportCallback)
void AddIntRadioData (GtkRadioButton &object, const IntImportCallback &importCallback, const IntExportCallback &exportCallback)
void AddTextEntryData (GtkEntry &object, const StringImportCallback &importCallback, const StringExportCallback &exportCallback)
void AddIntEntryData (GtkEntry &object, const IntImportCallback &importCallback, const IntExportCallback &exportCallback)
void AddSizeEntryData (GtkEntry &object, const SizeImportCallback &importCallback, const SizeExportCallback &exportCallback)
void AddFloatEntryData (GtkEntry &object, const FloatImportCallback &importCallback, const FloatExportCallback &exportCallback)
void AddFloatSpinnerData (GtkSpinButton &object, const FloatImportCallback &importCallback, const FloatExportCallback &exportCallback)
void AddIntSpinnerData (GtkSpinButton &object, const IntImportCallback &importCallback, const IntExportCallback &exportCallback)
void AddIntAdjustmentData (GtkAdjustment &object, const IntImportCallback &importCallback, const IntExportCallback &exportCallback)
void AddIntComboData (GtkComboBox &object, const IntImportCallback &importCallback, const IntExportCallback &exportCallback)
void AddDialogData (GtkToggleButton &object, bool &data)
void AddDialogData (GtkRadioButton &object, int &data)
void AddDialogData (GtkEntry &object, std::string &data)
void AddDialogData (GtkEntry &object, int &data)
void AddDialogData (GtkEntry &object, std::size_t &data)
void AddDialogData (GtkEntry &object, float &data)
void AddDialogData (GtkSpinButton &object, float &data)
void AddDialogData (GtkSpinButton &object, int &data)
void AddDialogData (GtkAdjustment &object, int &data)
void AddDialogData (GtkComboBox &object, int &data)

Private Attributes

GtkWindowm_window
DialogDataList m_data

Detailed Description

Definition at line 115 of file dialog.h.


Constructor & Destructor Documentation

Dialog::Dialog (  ) 
virtual Dialog::~Dialog (  )  [virtual]

Member Function Documentation

void Dialog::AddBoolToggleData ( GtkToggleButton object,
const BoolImportCallback &  importCallback,
const BoolExportCallback &  exportCallback 
) [protected]
GtkWidget* Dialog::addCheckBox ( GtkWidget vbox,
const char *  name,
const char *  flag,
bool &  data 
)
GtkWidget* Dialog::addCheckBox ( GtkWidget vbox,
const char *  name,
const char *  flag,
const BoolImportCallback &  importCallback,
const BoolExportCallback &  exportCallback 
)
void Dialog::addCombo ( GtkWidget vbox,
const char *  name,
int &  data,
StringArrayRange  values 
)
void Dialog::addCombo ( GtkWidget vbox,
const char *  name,
StringArrayRange  values,
const IntImportCallback &  importCallback,
const IntExportCallback &  exportCallback 
)
void Dialog::AddDialogData ( GtkComboBox object,
int &  data 
) [protected]
void Dialog::AddDialogData ( GtkAdjustment object,
int &  data 
) [protected]
void Dialog::AddDialogData ( GtkSpinButton object,
int &  data 
) [protected]
void Dialog::AddDialogData ( GtkSpinButton object,
float &  data 
) [protected]
void Dialog::AddDialogData ( GtkEntry object,
float &  data 
) [protected]
void Dialog::AddDialogData ( GtkEntry object,
std::size_t &  data 
) [protected]
void Dialog::AddDialogData ( GtkEntry object,
int &  data 
) [protected]
void Dialog::AddDialogData ( GtkEntry object,
std::string data 
) [protected]
void Dialog::AddDialogData ( GtkRadioButton object,
int &  data 
) [protected]
void Dialog::AddDialogData ( GtkToggleButton object,
bool &  data 
) [protected]
GtkWidget* Dialog::addEntry ( GtkWidget vbox,
const char *  name,
float &  data 
) [inline]

Definition at line 183 of file dialog.h.

References addFloatEntry().

GtkWidget* Dialog::addEntry ( GtkWidget vbox,
const char *  name,
std::size_t &  data 
) [inline]

Definition at line 177 of file dialog.h.

References addSizeEntry().

GtkWidget* Dialog::addEntry ( GtkWidget vbox,
const char *  name,
int &  data 
) [inline]

Definition at line 171 of file dialog.h.

References addIntEntry().

Referenced by PreferencesPage::appendEntry().

GtkWidget* Dialog::addFloatEntry ( GtkWidget vbox,
const char *  name,
const FloatImportCallback &  importCallback,
const FloatExportCallback &  exportCallback 
)
void Dialog::AddFloatEntryData ( GtkEntry object,
const FloatImportCallback &  importCallback,
const FloatExportCallback &  exportCallback 
) [protected]
void Dialog::AddFloatSpinnerData ( GtkSpinButton object,
const FloatImportCallback &  importCallback,
const FloatExportCallback &  exportCallback 
) [protected]
void Dialog::AddIntAdjustmentData ( GtkAdjustment object,
const IntImportCallback &  importCallback,
const IntExportCallback &  exportCallback 
) [protected]
void Dialog::AddIntComboData ( GtkComboBox object,
const IntImportCallback &  importCallback,
const IntExportCallback &  exportCallback 
) [protected]
GtkWidget* Dialog::addIntEntry ( GtkWidget vbox,
const char *  name,
const IntImportCallback &  importCallback,
const IntExportCallback &  exportCallback 
)
void Dialog::AddIntEntryData ( GtkEntry object,
const IntImportCallback &  importCallback,
const IntExportCallback &  exportCallback 
) [protected]
void Dialog::AddIntRadioData ( GtkRadioButton object,
const IntImportCallback &  importCallback,
const IntExportCallback &  exportCallback 
) [protected]
void Dialog::AddIntSpinnerData ( GtkSpinButton object,
const IntImportCallback &  importCallback,
const IntExportCallback &  exportCallback 
) [protected]
GtkWidget* Dialog::addPathEntry ( GtkWidget vbox,
const char *  name,
std::string data,
bool  directory 
)
GtkWidget* Dialog::addPathEntry ( GtkWidget vbox,
const char *  name,
bool  browse_directory,
const StringImportCallback importCallback,
const StringExportCallback exportCallback 
)
void Dialog::addRadio ( GtkWidget vbox,
const char *  name,
int &  data,
StringArrayRange  names 
)
void Dialog::addRadio ( GtkWidget vbox,
const char *  name,
StringArrayRange  names,
const IntImportCallback &  importCallback,
const IntExportCallback &  exportCallback 
)
void Dialog::addRadioIcons ( GtkWidget vbox,
const char *  name,
int &  data,
StringArrayRange  icons 
)
void Dialog::addRadioIcons ( GtkWidget vbox,
const char *  name,
StringArrayRange  icons,
const IntImportCallback &  importCallback,
const IntExportCallback &  exportCallback 
)
GtkWidget* Dialog::addSizeEntry ( GtkWidget vbox,
const char *  name,
const SizeImportCallback &  importCallback,
const SizeExportCallback &  exportCallback 
)
void Dialog::AddSizeEntryData ( GtkEntry object,
const SizeImportCallback &  importCallback,
const SizeExportCallback &  exportCallback 
) [protected]
void Dialog::addSlider ( GtkWidget vbox,
const char *  name,
int &  data,
gboolean  draw_value,
const char *  low,
const char *  high,
double  value,
double  lower,
double  upper,
double  step_increment,
double  page_increment,
double  page_size 
)
GtkWidget* Dialog::addSpinner ( GtkWidget vbox,
const char *  name,
double  value,
double  lower,
double  upper,
const FloatImportCallback &  importCallback,
const FloatExportCallback &  exportCallback 
)
GtkWidget* Dialog::addSpinner ( GtkWidget vbox,
const char *  name,
double  value,
double  lower,
double  upper,
const IntImportCallback &  importCallback,
const IntExportCallback &  exportCallback 
)
GtkWidget* Dialog::addSpinner ( GtkWidget vbox,
const char *  name,
int &  data,
double  value,
double  lower,
double  upper 
)
void Dialog::AddTextEntryData ( GtkEntry object,
const StringImportCallback importCallback,
const StringExportCallback exportCallback 
) [protected]
virtual GtkWindow* Dialog::BuildDialog (  )  [pure virtual]

Implemented in CGameDialog, and PrefsDlg.

void Dialog::Create (  ) 
void Dialog::Destroy (  ) 
EMessageBoxReturn Dialog::DoModal (  ) 

start modal dialog box you need to use AddModalButton to select eIDOK eIDCANCEL buttons

void Dialog::EndModal ( EMessageBoxReturn  code  ) 
virtual void Dialog::exportData (  )  [virtual]
const GtkWindow* Dialog::GetWidget (  )  const [inline]

Definition at line 149 of file dialog.h.

References m_window.

GtkWindow* Dialog::GetWidget (  )  [inline]

Definition at line 145 of file dialog.h.

References m_window.

virtual void Dialog::HideDlg (  )  [virtual]
virtual void Dialog::importData (  )  [virtual]
virtual void Dialog::PostModal ( EMessageBoxReturn  code  )  [inline, virtual]

Reimplemented in PrefsDlg.

Definition at line 138 of file dialog.h.

virtual void Dialog::PreModal (  )  [inline, virtual]

Definition at line 135 of file dialog.h.

virtual void Dialog::ShowDlg (  )  [virtual]

Field Documentation

Definition at line 118 of file dialog.h.

Definition at line 120 of file dialog.h.

Definition at line 121 of file dialog.h.

Definition at line 117 of file dialog.h.

Referenced by GetWidget().


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

Generated by  doxygen 1.6.2