gwenhywfar
4.3.1
|
#include <gwenhywfar/dialog.h>
#include <gwenhywfar/widget_be.h>
#include <gwenhywfar/stringlist.h>
#include <stdio.h>
Go to the source code of this file.
typedef const char* GWENHYWFAR_CB(* GWEN_DIALOG_GETCHARPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue) |
Definition at line 62 of file dialog_be.h.
typedef int GWENHYWFAR_CB(* GWEN_DIALOG_GETINTPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue) |
Definition at line 49 of file dialog_be.h.
typedef int GWENHYWFAR_CB(* GWEN_DIALOG_SETCHARPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal) |
Definition at line 55 of file dialog_be.h.
typedef int GWENHYWFAR_CB(* GWEN_DIALOG_SETINTPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal) |
Definition at line 42 of file dialog_be.h.
GWENHYWFAR_API void GWEN_Dialog_Dump | ( | const GWEN_DIALOG * | dlg, |
FILE * | f, | ||
unsigned int | indent | ||
) |
Definition at line 841 of file dialog.c.
References GWEN_Dialog_DumpWidget().
GWENHYWFAR_API int GWEN_Dialog_EmitSignal | ( | GWEN_DIALOG * | dlg, |
GWEN_DIALOG_EVENTTYPE | t, | ||
const char * | sender | ||
) |
Sends a signal to the signal handler of the given dialog. This does not send the signal to sub-dialogs. Use GWEN_Dialog_EmitSignalToAll for that.
Definition at line 258 of file dialog.c.
References DBG_WARN, GWEN_DialogEvent_ResultNotHandled, and GWEN_LOGDOMAIN.
Referenced by changed_handler(), QT4_DialogBox::closeEvent(), CocoaGui_WCheckBox_Toggled_handler(), CocoaGui_WComboBox_Changed_handler(), CocoaGui_WLineEdit_Changed_text_handler(), CocoaGui_WLineEdit_End_Editing_text_handler(), CocoaGui_WListBox_Changed_handler(), CocoaGui_WPushButton_Clicked_handler(), CocoaGui_WRadioButton_Toggled_handler(), CocoaGui_WSpinBox_Changed_handler(), CocoaGui_WTextEdit_Changed_text_handler(), CocoaGui_WTextEdit_End_Editing_text_handler(), CppDialog::emitSignal(), Gtk2Gui_WCheckBox_Toggled_handler(), Gtk2Gui_WLineEdit_Deleted_text_handler(), Gtk2Gui_WLineEdit_Inserted_text_handler(), Gtk2Gui_WListBox_CursorChanged_handler(), Gtk2Gui_WPushButton_Clicked_handler(), Gtk2Gui_WRadioButton_Toggled_handler(), Gtk2Gui_WSpinBox_Changed_handler(), Gtk2Gui_WTextEdit_Changed_handler(), FOX16_GuiDialog::onSelChanged(), FOX16_GuiDialog::onSelCommand(), QT4_DialogBox::slotActivated(), and QT4_DialogBox::slotValueChanged().
GWENHYWFAR_API int GWEN_Dialog_EmitSignalToAll | ( | GWEN_DIALOG * | dlg, |
GWEN_DIALOG_EVENTTYPE | t, | ||
const char * | sender | ||
) |
Emits signals to the given dialog and all its sub-dialogs. This should only be used for signals like GWEN_DialogEvent_TypeInit and GWEN_DialogEvent_TypeFini.
Definition at line 275 of file dialog.c.
References GWEN_Dialog_EmitSignalToAll(), GWEN_DialogEvent_ResultHandled, and GWEN_DialogEvent_ResultNotHandled.
Referenced by QT4_GuiDialog::closeDialog(), FOX16_GuiDialog::closeDialog(), COCOA_Gui_CloseDialog(), COCOA_Gui_OpenDialog(), QT4_GuiDialog::execute(), FOX16_GuiDialog::execute(), GTK2_Gui_CloseDialog(), GTK2_Gui_OpenDialog(), GWEN_Dialog_EmitSignalToAll(), FOX16_GuiDialog::onSelChanged(), QT4_GuiDialog::setup(), and FOX16_GuiDialog::setup().
GWENHYWFAR_API GWEN_WIDGET* GWEN_Dialog_FindWidgetByImplData | ( | const GWEN_DIALOG * | dlg, |
int | index, | ||
const void * | ptr | ||
) |
Definition at line 479 of file dialog.c.
References GWEN_Widget_GetImplData().
Referenced by CppDialog::findWidgetByImplData(), FOX16_GuiDialog::onSelChanged(), FOX16_GuiDialog::onSelCommand(), FOX16_GuiDialog::onSelKeyPress(), FOX16_GuiDialog::onSelKeyRelease(), QT4_DialogBox::slotActivated(), and QT4_DialogBox::slotValueChanged().
GWENHYWFAR_API GWEN_WIDGET* GWEN_Dialog_FindWidgetByName | ( | const GWEN_DIALOG * | dlg, |
const char * | name | ||
) |
Definition at line 442 of file dialog.c.
References GWEN_Widget_GetName(), and NULL.
Referenced by CppDialog::findWidgetByName(), GWEN_Dialog_AddSubDialog(), GWEN_Dialog_AddWidgetFlags(), GWEN_Dialog_GetCharProperty(), GWEN_Dialog_GetIntProperty(), GWEN_Dialog_GetWidgetColumns(), GWEN_Dialog_GetWidgetFlags(), GWEN_Dialog_GetWidgetRows(), GWEN_Dialog_GetWidgetText(), GWEN_Dialog_RemoveWidget(), GWEN_Dialog_SetCharProperty(), GWEN_Dialog_SetIntProperty(), GWEN_Dialog_SetWidgetColumns(), GWEN_Dialog_SetWidgetFlags(), GWEN_Dialog_SetWidgetRows(), GWEN_Dialog_SetWidgetText(), and GWEN_Dialog_SubWidgetFlags().
GWENHYWFAR_API GWEN_STRINGLIST* GWEN_Dialog_GetMediaPaths | ( | const GWEN_DIALOG * | dlg | ) |
The dialog remains the owner of the object returned (if any).
Definition at line 234 of file dialog.c.
Referenced by CocoaGui_WPushButton_Setup(), CocoaGui_WTextBrowser_SetCharProperty(), FOX16_GuiDialog::getIcon(), Gtk2Gui_WPushButton_Setup(), and FOX16_GuiDialog::setupTree().
GWENHYWFAR_API GWEN_DIALOG* GWEN_Dialog_GetParentDialog | ( | const GWEN_DIALOG * | dlg | ) |
Definition at line 122 of file dialog.c.
Referenced by CocoaGui_Dialog_Leave(), CppDialog::getDialog(), Gtk2Gui_Dialog_Leave(), and GWEN_Widget_GetTopDialog().
GWENHYWFAR_API GWEN_WIDGET_TREE* GWEN_Dialog_GetWidgets | ( | const GWEN_DIALOG * | dlg | ) |
Definition at line 502 of file dialog.c.
Referenced by CocoaGui_Dialog_Setup(), CppDialog::getWidgets(), Gtk2Gui_Dialog_Setup(), QT4_GuiDialog::setup(), and FOX16_GuiDialog::setup().
GWENHYWFAR_API GWEN_DIALOG_GETCHARPROPERTY_FN GWEN_Dialog_SetGetCharPropertyFn | ( | GWEN_DIALOG * | dlg, |
GWEN_DIALOG_GETCHARPROPERTY_FN | fn | ||
) |
Definition at line 554 of file dialog.c.
Referenced by CocoaGui_Dialog_Extend(), CocoaGui_Dialog_Unextend(), CppDialog::CppDialog(), Gtk2Gui_Dialog_Extend(), and Gtk2Gui_Dialog_Unextend().
GWENHYWFAR_API GWEN_DIALOG_GETINTPROPERTY_FN GWEN_Dialog_SetGetIntPropertyFn | ( | GWEN_DIALOG * | dlg, |
GWEN_DIALOG_GETINTPROPERTY_FN | fn | ||
) |
Definition at line 526 of file dialog.c.
Referenced by CocoaGui_Dialog_Extend(), CocoaGui_Dialog_Unextend(), CppDialog::CppDialog(), Gtk2Gui_Dialog_Extend(), and Gtk2Gui_Dialog_Unextend().
GWENHYWFAR_API void GWEN_Dialog_SetGuiId | ( | GWEN_DIALOG * | dlg, |
uint32_t | guiid | ||
) |
Definition at line 149 of file dialog.c.
Referenced by GWEN_Gui_Internal_ShowBox().
GWENHYWFAR_API GWEN_DIALOG_SETCHARPROPERTY_FN GWEN_Dialog_SetSetCharPropertyFn | ( | GWEN_DIALOG * | dlg, |
GWEN_DIALOG_SETCHARPROPERTY_FN | fn | ||
) |
Definition at line 540 of file dialog.c.
Referenced by CocoaGui_Dialog_Extend(), CocoaGui_Dialog_Unextend(), CppDialog::CppDialog(), Gtk2Gui_Dialog_Extend(), and Gtk2Gui_Dialog_Unextend().
GWENHYWFAR_API GWEN_DIALOG_SETINTPROPERTY_FN GWEN_Dialog_SetSetIntPropertyFn | ( | GWEN_DIALOG * | dlg, |
GWEN_DIALOG_SETINTPROPERTY_FN | fn | ||
) |
Definition at line 512 of file dialog.c.
Referenced by CocoaGui_Dialog_Extend(), CocoaGui_Dialog_Unextend(), CppDialog::CppDialog(), Gtk2Gui_Dialog_Extend(), and Gtk2Gui_Dialog_Unextend().