|
gwenhywfar 5.14.1
|
#include "gtk3_gui_dialog_p.h"#include <assert.h>#include <gwenhywfar/inherit.h>#include <gwenhywfar/debug.h>#include <gwenhywfar/gui_be.h>#include <gwenhywfar/i18n.h>#include <gwenhywfar/text.h>#include <gwenhywfar/mdigest.h>#include <gwenhywfar/directory.h>#include <ctype.h>#include "w_combobox.c"#include "w_label.c"#include "w_dialog.c"#include "w_gridlayout.c"#include "w_hlayout.c"#include "w_hline.c"#include "w_hspacer.c"#include "w_vlayout.c"#include "w_vline.c"#include "w_vspacer.c"#include "w_pushbutton.c"#include "w_lineedit.c"#include "w_textedit.c"#include "w_textbrowser.c"#include "w_stack.c"#include "w_tabbook.c"#include "w_groupbox.c"#include "w_progressbar.c"#include "w_listbox.c"#include "w_checkbox.c"#include "w_scrollarea.c"#include "w_radiobutton.c"#include "w_spinbox.c"#include "w_vsplitter.c"#include "w_hsplitter.c"
Go to the source code of this file.
Macros | |
| #define | GTK3_DIALOG_STRING_TITLE 0 |
| #define | GTK3_DIALOG_STRING_VALUE 1 |
| #define | GTK3_DIALOG_WIDGET_CONTENT 1 |
| #define | GTK3_DIALOG_WIDGET_DATA 2 |
| #define | GTK3_DIALOG_WIDGET_REAL 0 |
| #define | I18N(msg) |
| #define GTK3_DIALOG_STRING_TITLE 0 |
Definition at line 38 of file gtk3_gui_dialog.c.
Referenced by Gtk3Gui_WListBox_GetCharProperty().
| #define GTK3_DIALOG_STRING_VALUE 1 |
Definition at line 39 of file gtk3_gui_dialog.c.
Referenced by Gtk3Gui_WListBox_GetCharProperty(), Gtk3Gui_WTextBrowser_GetCharProperty(), and Gtk3Gui_WTextEdit_GetCharProperty().
| #define GTK3_DIALOG_WIDGET_CONTENT 1 |
Definition at line 35 of file gtk3_gui_dialog.c.
Referenced by Gtk3Gui_WCheckBox_Setup(), Gtk3Gui_WComboBox_Setup(), Gtk3Gui_WDialog_Setup(), Gtk3Gui_WGridLayout_Setup(), Gtk3Gui_WGroupBox_AddChildGuiWidget(), Gtk3Gui_WGroupBox_Setup(), Gtk3Gui_WHLayout_Setup(), Gtk3Gui_WHLine_Setup(), Gtk3Gui_WHSpacer_Setup(), Gtk3Gui_WHSplitter_Setup(), Gtk3Gui_WLabel_Setup(), Gtk3Gui_WLineEdit_Setup(), Gtk3Gui_WListBox_GetCharProperty(), Gtk3Gui_WListBox_GetIntProperty(), Gtk3Gui_WListBox_SetCharProperty(), Gtk3Gui_WListBox_SetIntProperty(), Gtk3Gui_WListBox_Setup(), Gtk3Gui_WProgressBar_Setup(), Gtk3Gui_WPushButton_Setup(), Gtk3Gui_WRadioButton_Setup(), Gtk3Gui_WScrollArea_AddChildGuiWidget(), Gtk3Gui_WScrollArea_GetCharProperty(), Gtk3Gui_WScrollArea_GetIntProperty(), Gtk3Gui_WScrollArea_SetCharProperty(), Gtk3Gui_WScrollArea_SetIntProperty(), Gtk3Gui_WScrollArea_Setup(), Gtk3Gui_WSpinBox_Setup(), Gtk3Gui_WStack_Setup(), Gtk3Gui_WTabBook_Setup(), Gtk3Gui_WTextBrowser_GetCharProperty(), Gtk3Gui_WTextBrowser_GetIntProperty(), Gtk3Gui_WTextBrowser_SetCharProperty(), Gtk3Gui_WTextBrowser_SetIntProperty(), Gtk3Gui_WTextBrowser_Setup(), Gtk3Gui_WTextEdit_Setup(), Gtk3Gui_WVLayout_Setup(), Gtk3Gui_WVLine_Setup(), Gtk3Gui_WVSpacer_Setup(), and Gtk3Gui_WVSplitter_Setup().
| #define GTK3_DIALOG_WIDGET_DATA 2 |
Definition at line 36 of file gtk3_gui_dialog.c.
| #define GTK3_DIALOG_WIDGET_REAL 0 |
Definition at line 34 of file gtk3_gui_dialog.c.
Referenced by Gtk3Gui_Dialog_Setup(), Gtk3Gui_WCheckBox_GetCharProperty(), Gtk3Gui_WCheckBox_GetIntProperty(), Gtk3Gui_WCheckBox_SetCharProperty(), Gtk3Gui_WCheckBox_SetIntProperty(), Gtk3Gui_WCheckBox_Setup(), Gtk3Gui_WComboBox_GetCharProperty(), Gtk3Gui_WComboBox_GetIntProperty(), Gtk3Gui_WComboBox_SetCharProperty(), Gtk3Gui_WComboBox_SetIntProperty(), Gtk3Gui_WComboBox_Setup(), Gtk3Gui_WDialog_AddChildGuiWidget(), Gtk3Gui_WDialog_GetCharProperty(), Gtk3Gui_WDialog_GetIntProperty(), Gtk3Gui_WDialog_SetCharProperty(), Gtk3Gui_WDialog_SetIntProperty(), Gtk3Gui_WDialog_Setup(), Gtk3Gui_WGridLayout_AddChildGuiWidget(), Gtk3Gui_WGridLayout_GetCharProperty(), Gtk3Gui_WGridLayout_GetIntProperty(), Gtk3Gui_WGridLayout_SetCharProperty(), Gtk3Gui_WGridLayout_SetIntProperty(), Gtk3Gui_WGridLayout_Setup(), Gtk3Gui_WGroupBox_AddChildGuiWidget(), Gtk3Gui_WGroupBox_GetCharProperty(), Gtk3Gui_WGroupBox_GetIntProperty(), Gtk3Gui_WGroupBox_SetCharProperty(), Gtk3Gui_WGroupBox_SetIntProperty(), Gtk3Gui_WGroupBox_Setup(), Gtk3Gui_WHLayout_AddChildGuiWidget(), Gtk3Gui_WHLayout_GetCharProperty(), Gtk3Gui_WHLayout_GetIntProperty(), Gtk3Gui_WHLayout_SetCharProperty(), Gtk3Gui_WHLayout_SetIntProperty(), Gtk3Gui_WHLayout_Setup(), Gtk3Gui_WHLine_GetIntProperty(), Gtk3Gui_WHLine_SetIntProperty(), Gtk3Gui_WHLine_Setup(), Gtk3Gui_WHSpacer_GetIntProperty(), Gtk3Gui_WHSpacer_SetIntProperty(), Gtk3Gui_WHSpacer_Setup(), Gtk3Gui_WHSplitter_AddChildGuiWidget(), Gtk3Gui_WHSplitter_GetIntProperty(), Gtk3Gui_WHSplitter_SetIntProperty(), Gtk3Gui_WHSplitter_Setup(), Gtk3Gui_WLabel_GetCharProperty(), Gtk3Gui_WLabel_GetIntProperty(), Gtk3Gui_WLabel_SetCharProperty(), Gtk3Gui_WLabel_SetIntProperty(), Gtk3Gui_WLabel_Setup(), Gtk3Gui_WLineEdit_GetCharProperty(), Gtk3Gui_WLineEdit_GetIntProperty(), Gtk3Gui_WLineEdit_SetCharProperty(), Gtk3Gui_WLineEdit_SetIntProperty(), Gtk3Gui_WLineEdit_Setup(), Gtk3Gui_WListBox_Setup(), Gtk3Gui_WProgressBar_GetIntProperty(), Gtk3Gui_WProgressBar_SetIntProperty(), Gtk3Gui_WProgressBar_Setup(), Gtk3Gui_WPushButton_GetCharProperty(), Gtk3Gui_WPushButton_GetIntProperty(), Gtk3Gui_WPushButton_SetCharProperty(), Gtk3Gui_WPushButton_SetIntProperty(), Gtk3Gui_WPushButton_Setup(), Gtk3Gui_WRadioButton_GetCharProperty(), Gtk3Gui_WRadioButton_GetIntProperty(), Gtk3Gui_WRadioButton_SetCharProperty(), Gtk3Gui_WRadioButton_SetIntProperty(), Gtk3Gui_WRadioButton_Setup(), Gtk3Gui_WScrollArea_AddChildGuiWidget(), Gtk3Gui_WScrollArea_GetCharProperty(), Gtk3Gui_WScrollArea_GetIntProperty(), Gtk3Gui_WScrollArea_SetCharProperty(), Gtk3Gui_WScrollArea_SetIntProperty(), Gtk3Gui_WScrollArea_Setup(), Gtk3Gui_WSpinBox_GetIntProperty(), Gtk3Gui_WSpinBox_SetIntProperty(), Gtk3Gui_WSpinBox_Setup(), Gtk3Gui_WStack_AddChildGuiWidget(), Gtk3Gui_WStack_GetCharProperty(), Gtk3Gui_WStack_GetIntProperty(), Gtk3Gui_WStack_SetCharProperty(), Gtk3Gui_WStack_SetIntProperty(), Gtk3Gui_WStack_Setup(), Gtk3Gui_WTabBook_AddChildGuiWidget(), Gtk3Gui_WTabBook_GetCharProperty(), Gtk3Gui_WTabBook_GetIntProperty(), Gtk3Gui_WTabBook_SetCharProperty(), Gtk3Gui_WTabBook_SetIntProperty(), Gtk3Gui_WTabBook_Setup(), Gtk3Gui_WTextBrowser_GetCharProperty(), Gtk3Gui_WTextBrowser_GetIntProperty(), Gtk3Gui_WTextBrowser_SetCharProperty(), Gtk3Gui_WTextBrowser_SetIntProperty(), Gtk3Gui_WTextBrowser_Setup(), Gtk3Gui_WTextEdit_GetCharProperty(), Gtk3Gui_WTextEdit_GetIntProperty(), Gtk3Gui_WTextEdit_SetCharProperty(), Gtk3Gui_WTextEdit_SetIntProperty(), Gtk3Gui_WTextEdit_Setup(), Gtk3Gui_WVLayout_AddChildGuiWidget(), Gtk3Gui_WVLayout_GetCharProperty(), Gtk3Gui_WVLayout_GetIntProperty(), Gtk3Gui_WVLayout_SetCharProperty(), Gtk3Gui_WVLayout_SetIntProperty(), Gtk3Gui_WVLayout_Setup(), Gtk3Gui_WVLine_GetIntProperty(), Gtk3Gui_WVLine_SetIntProperty(), Gtk3Gui_WVLine_Setup(), Gtk3Gui_WVSpacer_GetIntProperty(), Gtk3Gui_WVSpacer_SetIntProperty(), Gtk3Gui_WVSpacer_Setup(), Gtk3Gui_WVSplitter_AddChildGuiWidget(), Gtk3Gui_WVSplitter_GetIntProperty(), Gtk3Gui_WVSplitter_SetIntProperty(), and Gtk3Gui_WVSplitter_Setup().
| #define I18N | ( | msg | ) |
Definition at line 31 of file gtk3_gui_dialog.c.
| int GTK3_Gui_Dialog_Run | ( | GWEN_DIALOG * | dlg, |
| int | untilEnd ) |
Definition at line 317 of file gtk3_gui_dialog.c.
References DBG_ERROR, Gtk3Gui_Dialog_GetMainWidget(), Gtk3Gui_Dialog_Unextend(), GWEN_ERROR_INVALID, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, NULL, run_delete_handler(), run_destroy_handler(), and run_unmap_handler().
Referenced by GTK3_Gui_RunDialog().


| void Gtk3Gui_ApplyFlags | ( | GtkWidget * | g, |
| uint32_t | flags ) |
Definition at line 577 of file gtk3_gui_dialog.c.
References GWEN_WIDGET_FLAGS_FILLX, and GWEN_WIDGET_FLAGS_FILLY.
Referenced by Gtk3Gui_WComboBox_Setup(), Gtk3Gui_WGridLayout_AddChildGuiWidget(), Gtk3Gui_WHLayout_AddChildGuiWidget(), Gtk3Gui_WHSpacer_Setup(), Gtk3Gui_WScrollArea_AddChildGuiWidget(), Gtk3Gui_WScrollArea_Setup(), Gtk3Gui_WStack_AddChildGuiWidget(), and Gtk3Gui_WVLayout_AddChildGuiWidget().

| void Gtk3Gui_Dialog_Extend | ( | GWEN_DIALOG * | dlg | ) |
Definition at line 75 of file gtk3_gui_dialog.c.
References Gtk3Gui_Dialog_Extend(), Gtk3Gui_Dialog_FreeData(), Gtk3Gui_Dialog_GetCharProperty(), Gtk3Gui_Dialog_GetIntProperty(), Gtk3Gui_Dialog_SetCharProperty(), Gtk3Gui_Dialog_SetIntProperty(), GWEN_Dialog_SetGetCharPropertyFn(), GWEN_Dialog_SetGetIntPropertyFn(), GWEN_Dialog_SetSetCharPropertyFn(), GWEN_Dialog_SetSetIntPropertyFn(), GWEN_INHERIT_SETDATA, and GWEN_NEW_OBJECT.
Referenced by GTK3_Gui_OpenDialog(), and Gtk3Gui_Dialog_Extend().


| void GWENHYWFAR_CB Gtk3Gui_Dialog_FreeData | ( | GWEN_UNUSED void * | bp, |
| void * | p ) |
Definition at line 111 of file gtk3_gui_dialog.c.
References GWEN_FREE_OBJECT, GWEN_UNUSED, and GWENHYWFAR_CB.
Referenced by Gtk3Gui_Dialog_Extend().

| GWENHYWFAR_CB const char * Gtk3Gui_Dialog_GetCharProperty | ( | GWEN_UNUSED GWEN_DIALOG * | dlg, |
| GWEN_WIDGET * | w, | ||
| GWEN_DIALOG_PROPERTY | prop, | ||
| int | index, | ||
| const char * | defaultValue ) |
Definition at line 173 of file gtk3_gui_dialog.c.
References GWEN_UNUSED, GWEN_Widget_GetCharProperty(), and GWENHYWFAR_CB.
Referenced by Gtk3Gui_Dialog_Extend().


| GWENHYWFAR_CB int Gtk3Gui_Dialog_GetIntProperty | ( | GWEN_UNUSED GWEN_DIALOG * | dlg, |
| GWEN_WIDGET * | w, | ||
| GWEN_DIALOG_PROPERTY | prop, | ||
| int | index, | ||
| int | defaultValue ) |
Definition at line 150 of file gtk3_gui_dialog.c.
References GWEN_UNUSED, GWEN_Widget_GetIntProperty(), and GWENHYWFAR_CB.
Referenced by Gtk3Gui_Dialog_Extend().


| GtkWidget * Gtk3Gui_Dialog_GetMainWidget | ( | const GWEN_DIALOG * | dlg | ) |
Definition at line 125 of file gtk3_gui_dialog.c.
References GWEN_INHERIT_GETDATA.
Referenced by GTK3_Gui_CloseDialog(), GTK3_Gui_Dialog_Run(), and GTK3_Gui_OpenDialog().

| void Gtk3Gui_Dialog_Leave | ( | GWEN_DIALOG * | dlg, |
| int | result ) |
Definition at line 249 of file gtk3_gui_dialog.c.
References GWEN_Dialog_GetParentDialog(), and GWEN_INHERIT_GETDATA.
Referenced by changed_handler(), Gtk3Gui_WCheckBox_Toggled_handler(), Gtk3Gui_WLineEdit_Deleted_text_handler(), Gtk3Gui_WLineEdit_Inserted_text_handler(), Gtk3Gui_WListBox_CursorChanged_handler(), Gtk3Gui_WPushButton_Clicked_handler(), Gtk3Gui_WRadioButton_Toggled_handler(), Gtk3Gui_WSpinBox_Changed_handler(), Gtk3Gui_WTextEdit_Changed_handler(), run_delete_handler(), and run_unmap_handler().


| GWENHYWFAR_CB int Gtk3Gui_Dialog_SetCharProperty | ( | GWEN_UNUSED GWEN_DIALOG * | dlg, |
| GWEN_WIDGET * | w, | ||
| GWEN_DIALOG_PROPERTY | prop, | ||
| int | index, | ||
| const char * | value, | ||
| int | doSignal ) |
Definition at line 161 of file gtk3_gui_dialog.c.
References GWEN_UNUSED, GWEN_Widget_SetCharProperty(), and GWENHYWFAR_CB.
Referenced by Gtk3Gui_Dialog_Extend().


| GWENHYWFAR_CB int Gtk3Gui_Dialog_SetIntProperty | ( | GWEN_UNUSED GWEN_DIALOG * | dlg, |
| GWEN_WIDGET * | w, | ||
| GWEN_DIALOG_PROPERTY | prop, | ||
| int | index, | ||
| int | value, | ||
| int | doSignal ) |
Definition at line 138 of file gtk3_gui_dialog.c.
References GWEN_UNUSED, GWEN_Widget_SetIntProperty(), and GWENHYWFAR_CB.
Referenced by Gtk3Gui_Dialog_Extend().


| int Gtk3Gui_Dialog_Setup | ( | GWEN_DIALOG * | dlg, |
| GWEN_UNUSED GtkWidget * | parentWindow ) |
Definition at line 184 of file gtk3_gui_dialog.c.
References DBG_ERROR, DBG_INFO, DBG_NOTICE, GTK3_DIALOG_WIDGET_REAL, Gtk3Gui_Dialog_SetupTree(), GWEN_Dialog_GetWidgets(), GWEN_ERROR_NOT_FOUND, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, GWEN_UNUSED, GWEN_Widget_GetImplData(), and NULL.
Referenced by GTK3_Gui_OpenDialog().


| int Gtk3Gui_Dialog_SetupTree | ( | GWEN_WIDGET * | w | ) |
Definition at line 374 of file gtk3_gui_dialog.c.
References DBG_ERROR, DBG_INFO, Gtk3Gui_Dialog_SetupTree(), Gtk3Gui_WCheckBox_Setup(), Gtk3Gui_WComboBox_Setup(), Gtk3Gui_WDialog_Setup(), Gtk3Gui_WGridLayout_Setup(), Gtk3Gui_WGroupBox_Setup(), Gtk3Gui_WHLayout_Setup(), Gtk3Gui_WHLine_Setup(), Gtk3Gui_WHSpacer_Setup(), Gtk3Gui_WHSplitter_Setup(), Gtk3Gui_WLabel_Setup(), Gtk3Gui_WLineEdit_Setup(), Gtk3Gui_WListBox_Setup(), Gtk3Gui_WProgressBar_Setup(), Gtk3Gui_WPushButton_Setup(), Gtk3Gui_WRadioButton_Setup(), Gtk3Gui_WScrollArea_Setup(), Gtk3Gui_WSpinBox_Setup(), Gtk3Gui_WStack_Setup(), Gtk3Gui_WTabBook_Setup(), Gtk3Gui_WTextBrowser_Setup(), Gtk3Gui_WTextEdit_Setup(), Gtk3Gui_WVLayout_Setup(), Gtk3Gui_WVLine_Setup(), Gtk3Gui_WVSpacer_Setup(), Gtk3Gui_WVSplitter_Setup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Widget_AddFlags(), GWEN_WIDGET_FLAGS_FILLX, GWEN_WIDGET_FLAGS_FILLY, GWEN_Widget_GetType(), GWEN_Widget_TypeCheckBox, GWEN_Widget_TypeComboBox, GWEN_Widget_TypeDialog, GWEN_Widget_TypeGridLayout, GWEN_Widget_TypeGroupBox, GWEN_Widget_TypeHLayout, GWEN_Widget_TypeHLine, GWEN_Widget_TypeHSpacer, GWEN_Widget_TypeHSplitter, GWEN_Widget_TypeLabel, GWEN_Widget_TypeLineEdit, GWEN_Widget_TypeListBox, GWEN_Widget_TypeProgressBar, GWEN_Widget_TypePushButton, GWEN_Widget_TypeRadioButton, GWEN_Widget_TypeScrollArea, GWEN_Widget_TypeSpinBox, GWEN_Widget_TypeTabBook, GWEN_Widget_TypeTabPage, GWEN_Widget_TypeTextBrowser, GWEN_Widget_TypeTextEdit, GWEN_Widget_TypeVLayout, GWEN_Widget_TypeVLine, GWEN_Widget_TypeVSpacer, GWEN_Widget_TypeVSplitter, and GWEN_Widget_TypeWidgetStack.
Referenced by Gtk3Gui_Dialog_Setup(), and Gtk3Gui_Dialog_SetupTree().


| void Gtk3Gui_Dialog_Unextend | ( | GWEN_DIALOG * | dlg | ) |
Definition at line 92 of file gtk3_gui_dialog.c.
References GWEN_Dialog_SetGetCharPropertyFn(), GWEN_Dialog_SetGetIntPropertyFn(), GWEN_Dialog_SetSetCharPropertyFn(), GWEN_Dialog_SetSetIntPropertyFn(), GWEN_INHERIT_GETDATA, and GWEN_INHERIT_UNLINK.
Referenced by GTK3_Gui_CloseDialog(), GTK3_Gui_Dialog_Run(), and GTK3_Gui_OpenDialog().


| int Gtk3Gui_GetRawText | ( | const char * | text, |
| GWEN_BUFFER * | tbuf ) |
Definition at line 491 of file gtk3_gui_dialog.c.
References GWEN_Buffer_AppendBytes(), GWEN_Buffer_AppendString(), and NULL.
Referenced by Gtk3Gui_WLabel_SetCharProperty(), Gtk3Gui_WLabel_Setup(), Gtk3Gui_WTextBrowser_SetCharProperty(), and Gtk3Gui_WTextBrowser_Setup().


|
static |
Definition at line 284 of file gtk3_gui_dialog.c.
References Gtk3Gui_Dialog_Leave(), GWEN_INHERIT_GETDATA, and GWEN_UNUSED.

|
static |
Definition at line 302 of file gtk3_gui_dialog.c.
References GWEN_INHERIT_GETDATA, and GWEN_UNUSED.
|
static |
Definition at line 269 of file gtk3_gui_dialog.c.
References Gtk3Gui_Dialog_Leave(), GWEN_INHERIT_GETDATA, and GWEN_UNUSED.
