gwenhywfar 4.0.3
|
#include "gtk2_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"
Go to the source code of this file.
Defines | |
#define | GTK2_DIALOG_STRING_TITLE 0 |
#define | GTK2_DIALOG_STRING_VALUE 1 |
#define | GTK2_DIALOG_WIDGET_CONTENT 1 |
#define | GTK2_DIALOG_WIDGET_DATA 2 |
#define | GTK2_DIALOG_WIDGET_REAL 0 |
#define | I18N(msg) GWEN_I18N_Translate(PACKAGE, msg) |
Functions | |
int | GTK2_Gui_Dialog_Run (GWEN_DIALOG *dlg, int untilEnd) |
void | Gtk2Gui_Dialog_Extend (GWEN_DIALOG *dlg) |
void GWENHYWFAR_CB | Gtk2Gui_Dialog_FreeData (void *bp, void *p) |
GWENHYWFAR_CB const char * | Gtk2Gui_Dialog_GetCharProperty (GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue) |
GWENHYWFAR_CB int | Gtk2Gui_Dialog_GetIntProperty (GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue) |
GtkWidget * | Gtk2Gui_Dialog_GetMainWidget (const GWEN_DIALOG *dlg) |
void | Gtk2Gui_Dialog_Leave (GWEN_DIALOG *dlg, int result) |
GWENHYWFAR_CB int | Gtk2Gui_Dialog_SetCharProperty (GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal) |
GWENHYWFAR_CB int | Gtk2Gui_Dialog_SetIntProperty (GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal) |
int | Gtk2Gui_Dialog_Setup (GWEN_DIALOG *dlg, GtkWidget *parentWindow) |
int | Gtk2Gui_Dialog_SetupTree (GWEN_WIDGET *w) |
void | Gtk2Gui_Dialog_Unextend (GWEN_DIALOG *dlg) |
int | Gtk2Gui_GetRawText (const char *text, GWEN_BUFFER *tbuf) |
static gint | run_delete_handler (GtkWindow *window, GdkEventAny *event, gpointer data) |
static void | run_destroy_handler (GtkWindow *window, gpointer data) |
static void | run_unmap_handler (GtkWindow *window, gpointer data) |
#define GTK2_DIALOG_STRING_TITLE 0 |
Definition at line 38 of file gtk2_gui_dialog.c.
Referenced by Gtk2Gui_WListBox_GetCharProperty().
#define GTK2_DIALOG_STRING_VALUE 1 |
Definition at line 39 of file gtk2_gui_dialog.c.
Referenced by Gtk2Gui_WListBox_GetCharProperty(), Gtk2Gui_WTextBrowser_GetCharProperty(), and Gtk2Gui_WTextEdit_GetCharProperty().
#define GTK2_DIALOG_WIDGET_CONTENT 1 |
Definition at line 35 of file gtk2_gui_dialog.c.
Referenced by Gtk2Gui_WCheckBox_Setup(), Gtk2Gui_WComboBox_Setup(), Gtk2Gui_WDialog_Setup(), Gtk2Gui_WGridLayout_Setup(), Gtk2Gui_WGroupBox_AddChildGuiWidget(), Gtk2Gui_WGroupBox_Setup(), Gtk2Gui_WHLayout_Setup(), Gtk2Gui_WHLine_Setup(), Gtk2Gui_WHSpacer_Setup(), Gtk2Gui_WLabel_Setup(), Gtk2Gui_WLineEdit_Setup(), Gtk2Gui_WListBox_GetCharProperty(), Gtk2Gui_WListBox_GetIntProperty(), Gtk2Gui_WListBox_SetCharProperty(), Gtk2Gui_WListBox_SetIntProperty(), Gtk2Gui_WListBox_Setup(), Gtk2Gui_WProgressBar_Setup(), Gtk2Gui_WPushButton_Setup(), Gtk2Gui_WRadioButton_Setup(), Gtk2Gui_WScrollArea_AddChildGuiWidget(), Gtk2Gui_WScrollArea_GetCharProperty(), Gtk2Gui_WScrollArea_GetIntProperty(), Gtk2Gui_WScrollArea_SetCharProperty(), Gtk2Gui_WScrollArea_SetIntProperty(), Gtk2Gui_WScrollArea_Setup(), Gtk2Gui_WSpinBox_Setup(), Gtk2Gui_WStack_Setup(), Gtk2Gui_WTabBook_Setup(), Gtk2Gui_WTextBrowser_GetCharProperty(), Gtk2Gui_WTextBrowser_GetIntProperty(), Gtk2Gui_WTextBrowser_SetCharProperty(), Gtk2Gui_WTextBrowser_SetIntProperty(), Gtk2Gui_WTextBrowser_Setup(), Gtk2Gui_WTextEdit_Setup(), Gtk2Gui_WVLayout_Setup(), Gtk2Gui_WVLine_Setup(), and Gtk2Gui_WVSpacer_Setup().
#define GTK2_DIALOG_WIDGET_DATA 2 |
Definition at line 36 of file gtk2_gui_dialog.c.
#define GTK2_DIALOG_WIDGET_REAL 0 |
Definition at line 34 of file gtk2_gui_dialog.c.
Referenced by Gtk2Gui_Dialog_Setup(), Gtk2Gui_WCheckBox_GetCharProperty(), Gtk2Gui_WCheckBox_GetIntProperty(), Gtk2Gui_WCheckBox_SetCharProperty(), Gtk2Gui_WCheckBox_SetIntProperty(), Gtk2Gui_WCheckBox_Setup(), Gtk2Gui_WComboBox_GetCharProperty(), Gtk2Gui_WComboBox_GetIntProperty(), Gtk2Gui_WComboBox_SetCharProperty(), Gtk2Gui_WComboBox_SetIntProperty(), Gtk2Gui_WComboBox_Setup(), Gtk2Gui_WDialog_AddChildGuiWidget(), Gtk2Gui_WDialog_GetCharProperty(), Gtk2Gui_WDialog_GetIntProperty(), Gtk2Gui_WDialog_SetCharProperty(), Gtk2Gui_WDialog_SetIntProperty(), Gtk2Gui_WDialog_Setup(), Gtk2Gui_WGridLayout_AddChildGuiWidget(), Gtk2Gui_WGridLayout_GetCharProperty(), Gtk2Gui_WGridLayout_GetIntProperty(), Gtk2Gui_WGridLayout_SetCharProperty(), Gtk2Gui_WGridLayout_SetIntProperty(), Gtk2Gui_WGridLayout_Setup(), Gtk2Gui_WGroupBox_AddChildGuiWidget(), Gtk2Gui_WGroupBox_GetCharProperty(), Gtk2Gui_WGroupBox_GetIntProperty(), Gtk2Gui_WGroupBox_SetCharProperty(), Gtk2Gui_WGroupBox_SetIntProperty(), Gtk2Gui_WGroupBox_Setup(), Gtk2Gui_WHLayout_AddChildGuiWidget(), Gtk2Gui_WHLayout_GetCharProperty(), Gtk2Gui_WHLayout_GetIntProperty(), Gtk2Gui_WHLayout_SetCharProperty(), Gtk2Gui_WHLayout_SetIntProperty(), Gtk2Gui_WHLayout_Setup(), Gtk2Gui_WHLine_GetIntProperty(), Gtk2Gui_WHLine_SetIntProperty(), Gtk2Gui_WHLine_Setup(), Gtk2Gui_WHSpacer_GetIntProperty(), Gtk2Gui_WHSpacer_SetIntProperty(), Gtk2Gui_WHSpacer_Setup(), Gtk2Gui_WLabel_GetCharProperty(), Gtk2Gui_WLabel_GetIntProperty(), Gtk2Gui_WLabel_SetCharProperty(), Gtk2Gui_WLabel_SetIntProperty(), Gtk2Gui_WLabel_Setup(), Gtk2Gui_WLineEdit_GetCharProperty(), Gtk2Gui_WLineEdit_GetIntProperty(), Gtk2Gui_WLineEdit_SetCharProperty(), Gtk2Gui_WLineEdit_SetIntProperty(), Gtk2Gui_WLineEdit_Setup(), Gtk2Gui_WListBox_Setup(), Gtk2Gui_WProgressBar_GetIntProperty(), Gtk2Gui_WProgressBar_SetIntProperty(), Gtk2Gui_WProgressBar_Setup(), Gtk2Gui_WPushButton_GetCharProperty(), Gtk2Gui_WPushButton_GetIntProperty(), Gtk2Gui_WPushButton_SetCharProperty(), Gtk2Gui_WPushButton_SetIntProperty(), Gtk2Gui_WPushButton_Setup(), Gtk2Gui_WRadioButton_GetCharProperty(), Gtk2Gui_WRadioButton_GetIntProperty(), Gtk2Gui_WRadioButton_SetCharProperty(), Gtk2Gui_WRadioButton_SetIntProperty(), Gtk2Gui_WRadioButton_Setup(), Gtk2Gui_WScrollArea_AddChildGuiWidget(), Gtk2Gui_WScrollArea_GetCharProperty(), Gtk2Gui_WScrollArea_GetIntProperty(), Gtk2Gui_WScrollArea_SetCharProperty(), Gtk2Gui_WScrollArea_SetIntProperty(), Gtk2Gui_WScrollArea_Setup(), Gtk2Gui_WSpinBox_GetIntProperty(), Gtk2Gui_WSpinBox_SetIntProperty(), Gtk2Gui_WSpinBox_Setup(), Gtk2Gui_WStack_AddChildGuiWidget(), Gtk2Gui_WStack_GetCharProperty(), Gtk2Gui_WStack_GetIntProperty(), Gtk2Gui_WStack_SetCharProperty(), Gtk2Gui_WStack_SetIntProperty(), Gtk2Gui_WStack_Setup(), Gtk2Gui_WTabBook_AddChildGuiWidget(), Gtk2Gui_WTabBook_GetCharProperty(), Gtk2Gui_WTabBook_GetIntProperty(), Gtk2Gui_WTabBook_SetCharProperty(), Gtk2Gui_WTabBook_SetIntProperty(), Gtk2Gui_WTabBook_Setup(), Gtk2Gui_WTextBrowser_GetCharProperty(), Gtk2Gui_WTextBrowser_GetIntProperty(), Gtk2Gui_WTextBrowser_SetCharProperty(), Gtk2Gui_WTextBrowser_SetIntProperty(), Gtk2Gui_WTextBrowser_Setup(), Gtk2Gui_WTextEdit_GetCharProperty(), Gtk2Gui_WTextEdit_GetIntProperty(), Gtk2Gui_WTextEdit_SetCharProperty(), Gtk2Gui_WTextEdit_SetIntProperty(), Gtk2Gui_WTextEdit_Setup(), Gtk2Gui_WVLayout_AddChildGuiWidget(), Gtk2Gui_WVLayout_GetCharProperty(), Gtk2Gui_WVLayout_GetIntProperty(), Gtk2Gui_WVLayout_SetCharProperty(), Gtk2Gui_WVLayout_SetIntProperty(), Gtk2Gui_WVLayout_Setup(), Gtk2Gui_WVLine_GetIntProperty(), Gtk2Gui_WVLine_SetIntProperty(), Gtk2Gui_WVLine_Setup(), Gtk2Gui_WVSpacer_GetIntProperty(), Gtk2Gui_WVSpacer_SetIntProperty(), and Gtk2Gui_WVSpacer_Setup().
#define I18N | ( | msg | ) | GWEN_I18N_Translate(PACKAGE, msg) |
Definition at line 31 of file gtk2_gui_dialog.c.
int GTK2_Gui_Dialog_Run | ( | GWEN_DIALOG * | dlg, |
int | untilEnd | ||
) |
Definition at line 305 of file gtk2_gui_dialog.c.
References DBG_ERROR, Gtk2Gui_Dialog_GetMainWidget(), Gtk2Gui_Dialog_Unextend(), GWEN_ERROR_INVALID, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, NULL, run_delete_handler(), run_destroy_handler(), and run_unmap_handler().
Referenced by GTK2_Gui_RunDialog().
void Gtk2Gui_Dialog_Extend | ( | GWEN_DIALOG * | dlg | ) |
Definition at line 73 of file gtk2_gui_dialog.c.
References Gtk2Gui_Dialog_FreeData(), Gtk2Gui_Dialog_GetCharProperty(), Gtk2Gui_Dialog_GetIntProperty(), Gtk2Gui_Dialog_SetCharProperty(), Gtk2Gui_Dialog_SetIntProperty(), GWEN_Dialog_SetGetCharPropertyFn(), GWEN_Dialog_SetGetIntPropertyFn(), GWEN_Dialog_SetSetCharPropertyFn(), GWEN_Dialog_SetSetIntPropertyFn(), GWEN_INHERIT_SETDATA, and GWEN_NEW_OBJECT.
Referenced by GTK2_Gui_OpenDialog().
void GWENHYWFAR_CB Gtk2Gui_Dialog_FreeData | ( | void * | bp, |
void * | p | ||
) |
Definition at line 107 of file gtk2_gui_dialog.c.
References GWEN_FREE_OBJECT.
Referenced by Gtk2Gui_Dialog_Extend().
GWENHYWFAR_CB const char* Gtk2Gui_Dialog_GetCharProperty | ( | GWEN_DIALOG * | dlg, |
GWEN_WIDGET * | w, | ||
GWEN_DIALOG_PROPERTY | prop, | ||
int | index, | ||
const char * | defaultValue | ||
) |
Definition at line 164 of file gtk2_gui_dialog.c.
References GWEN_Widget_GetCharProperty().
Referenced by Gtk2Gui_Dialog_Extend().
GWENHYWFAR_CB int Gtk2Gui_Dialog_GetIntProperty | ( | GWEN_DIALOG * | dlg, |
GWEN_WIDGET * | w, | ||
GWEN_DIALOG_PROPERTY | prop, | ||
int | index, | ||
int | defaultValue | ||
) |
Definition at line 143 of file gtk2_gui_dialog.c.
References GWEN_Widget_GetIntProperty().
Referenced by Gtk2Gui_Dialog_Extend().
GtkWidget* Gtk2Gui_Dialog_GetMainWidget | ( | const GWEN_DIALOG * | dlg | ) |
Definition at line 120 of file gtk2_gui_dialog.c.
References GWEN_INHERIT_GETDATA.
Referenced by GTK2_Gui_CloseDialog(), GTK2_Gui_Dialog_Run(), and GTK2_Gui_OpenDialog().
void Gtk2Gui_Dialog_Leave | ( | GWEN_DIALOG * | dlg, |
int | result | ||
) |
Definition at line 238 of file gtk2_gui_dialog.c.
References GWEN_Dialog_GetParentDialog(), and GWEN_INHERIT_GETDATA.
Referenced by changed_handler(), 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(), run_delete_handler(), and run_unmap_handler().
GWENHYWFAR_CB int Gtk2Gui_Dialog_SetCharProperty | ( | GWEN_DIALOG * | dlg, |
GWEN_WIDGET * | w, | ||
GWEN_DIALOG_PROPERTY | prop, | ||
int | index, | ||
const char * | value, | ||
int | doSignal | ||
) |
Definition at line 153 of file gtk2_gui_dialog.c.
References GWEN_Widget_SetCharProperty().
Referenced by Gtk2Gui_Dialog_Extend().
GWENHYWFAR_CB int Gtk2Gui_Dialog_SetIntProperty | ( | GWEN_DIALOG * | dlg, |
GWEN_WIDGET * | w, | ||
GWEN_DIALOG_PROPERTY | prop, | ||
int | index, | ||
int | value, | ||
int | doSignal | ||
) |
Definition at line 132 of file gtk2_gui_dialog.c.
References GWEN_Widget_SetIntProperty().
Referenced by Gtk2Gui_Dialog_Extend().
int Gtk2Gui_Dialog_Setup | ( | GWEN_DIALOG * | dlg, |
GtkWidget * | parentWindow | ||
) |
Definition at line 174 of file gtk2_gui_dialog.c.
References DBG_ERROR, DBG_INFO, GTK2_DIALOG_WIDGET_REAL, Gtk2Gui_Dialog_SetupTree(), GWEN_Dialog_GetWidgets(), GWEN_ERROR_NOT_FOUND, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, GWEN_Widget_GetImplData(), and NULL.
Referenced by GTK2_Gui_OpenDialog().
int Gtk2Gui_Dialog_SetupTree | ( | GWEN_WIDGET * | w | ) |
Definition at line 361 of file gtk2_gui_dialog.c.
References DBG_ERROR, DBG_INFO, Gtk2Gui_WCheckBox_Setup(), Gtk2Gui_WComboBox_Setup(), Gtk2Gui_WDialog_Setup(), Gtk2Gui_WGridLayout_Setup(), Gtk2Gui_WGroupBox_Setup(), Gtk2Gui_WHLayout_Setup(), Gtk2Gui_WHLine_Setup(), Gtk2Gui_WHSpacer_Setup(), Gtk2Gui_WLabel_Setup(), Gtk2Gui_WLineEdit_Setup(), Gtk2Gui_WListBox_Setup(), Gtk2Gui_WProgressBar_Setup(), Gtk2Gui_WPushButton_Setup(), Gtk2Gui_WRadioButton_Setup(), Gtk2Gui_WScrollArea_Setup(), Gtk2Gui_WSpinBox_Setup(), Gtk2Gui_WStack_Setup(), Gtk2Gui_WTabBook_Setup(), Gtk2Gui_WTextBrowser_Setup(), Gtk2Gui_WTextEdit_Setup(), Gtk2Gui_WVLayout_Setup(), Gtk2Gui_WVLine_Setup(), Gtk2Gui_WVSpacer_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_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, and GWEN_Widget_TypeWidgetStack.
Referenced by Gtk2Gui_Dialog_Setup().
void Gtk2Gui_Dialog_Unextend | ( | GWEN_DIALOG * | dlg | ) |
Definition at line 89 of file gtk2_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 GTK2_Gui_CloseDialog(), GTK2_Gui_Dialog_Run(), and GTK2_Gui_OpenDialog().
int Gtk2Gui_GetRawText | ( | const char * | text, |
GWEN_BUFFER * | tbuf | ||
) |
Definition at line 471 of file gtk2_gui_dialog.c.
References GWEN_Buffer_AppendBytes(), GWEN_Buffer_AppendString(), and NULL.
Referenced by Gtk2Gui_WLabel_SetCharProperty(), Gtk2Gui_WLabel_Setup(), Gtk2Gui_WTextBrowser_SetCharProperty(), and Gtk2Gui_WTextBrowser_Setup().
static gint run_delete_handler | ( | GtkWindow * | window, |
GdkEventAny * | event, | ||
gpointer | data | ||
) | [static] |
Definition at line 273 of file gtk2_gui_dialog.c.
References Gtk2Gui_Dialog_Leave(), and GWEN_INHERIT_GETDATA.
Referenced by GTK2_Gui_Dialog_Run().
static void run_destroy_handler | ( | GtkWindow * | window, |
gpointer | data | ||
) | [static] |
Definition at line 291 of file gtk2_gui_dialog.c.
References GWEN_INHERIT_GETDATA.
Referenced by GTK2_Gui_Dialog_Run().
static void run_unmap_handler | ( | GtkWindow * | window, |
gpointer | data | ||
) | [static] |
Definition at line 258 of file gtk2_gui_dialog.c.
References Gtk2Gui_Dialog_Leave(), and GWEN_INHERIT_GETDATA.
Referenced by GTK2_Gui_Dialog_Run().