#include <dialog.h>
Public Member Functions | |
Dialog () | |
virtual | ~Dialog () |
EMessageBoxReturn | DoModal () |
void | EndModal (EMessageBoxReturn code) |
virtual GtkWindow * | BuildDialog ()=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 () |
GtkWindow * | GetWidget () |
const GtkWindow * | GetWidget () const |
GtkWidget * | addCheckBox (GtkWidget *vbox, const char *name, const char *flag, const BoolImportCallback &importCallback, const BoolExportCallback &exportCallback) |
GtkWidget * | addCheckBox (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) |
GtkWidget * | addIntEntry (GtkWidget *vbox, const char *name, const IntImportCallback &importCallback, const IntExportCallback &exportCallback) |
GtkWidget * | addEntry (GtkWidget *vbox, const char *name, int &data) |
GtkWidget * | addSizeEntry (GtkWidget *vbox, const char *name, const SizeImportCallback &importCallback, const SizeExportCallback &exportCallback) |
GtkWidget * | addEntry (GtkWidget *vbox, const char *name, std::size_t &data) |
GtkWidget * | addFloatEntry (GtkWidget *vbox, const char *name, const FloatImportCallback &importCallback, const FloatExportCallback &exportCallback) |
GtkWidget * | addEntry (GtkWidget *vbox, const char *name, float &data) |
GtkWidget * | addPathEntry (GtkWidget *vbox, const char *name, bool browse_directory, const StringImportCallback &importCallback, const StringExportCallback &exportCallback) |
GtkWidget * | addPathEntry (GtkWidget *vbox, const char *name, std::string &data, bool directory) |
GtkWidget * | addSpinner (GtkWidget *vbox, const char *name, int &data, double value, double lower, double upper) |
GtkWidget * | addSpinner (GtkWidget *vbox, const char *name, double value, double lower, double upper, const IntImportCallback &importCallback, const IntExportCallback &exportCallback) |
GtkWidget * | addSpinner (GtkWidget *vbox, const char *name, double value, double lower, double upper, const FloatImportCallback &importCallback, const FloatExportCallback &exportCallback) |
Data Fields | |
ModalDialog | m_modal |
GtkWindow * | m_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 | |
GtkWindow * | m_window |
DialogDataList | m_data |
Definition at line 115 of file dialog.h.
Dialog::Dialog | ( | ) |
virtual Dialog::~Dialog | ( | ) | [virtual] |
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 | |||
) |
Referenced by PreferencesPage::appendCheckBox().
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 | |||
) |
Referenced by PreferencesPage::appendCombo().
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] |
Definition at line 183 of file dialog.h.
References addFloatEntry().
Definition at line 177 of file dialog.h.
References addSizeEntry().
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 | |||
) |
Referenced by addEntry(), and PreferencesPage::appendEntry().
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 | |||
) |
Referenced by addEntry(), and PreferencesPage::appendEntry().
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 | |||
) |
Referenced by PreferencesPage::appendPathEntry().
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 | |||
) |
Referenced by PreferencesPage::appendRadio().
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 | |||
) |
Referenced by PreferencesPage::appendRadioIcons().
GtkWidget* Dialog::addSizeEntry | ( | GtkWidget * | vbox, | |
const char * | name, | |||
const SizeImportCallback & | importCallback, | |||
const SizeExportCallback & | exportCallback | |||
) |
Referenced by addEntry(), and PreferencesPage::appendEntry().
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 | |||
) |
Referenced by PreferencesPage::appendSlider().
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 | |||
) |
Referenced by PreferencesPage::appendSpinner().
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] |
GtkWindow* Dialog::GetWidget | ( | ) | [inline] |
virtual void Dialog::HideDlg | ( | ) | [virtual] |
virtual void Dialog::importData | ( | ) | [virtual] |
virtual void Dialog::PostModal | ( | EMessageBoxReturn | code | ) | [inline, virtual] |
virtual void Dialog::ShowDlg | ( | ) | [virtual] |
DialogDataList Dialog::m_data [private] |
GtkWindow* Dialog::m_window [private] |
Definition at line 117 of file dialog.h.
Referenced by GetWidget().