libgitk widget class
[libgitk core]


Files

file  gitkwidget.c
 libgitk widget functions

file  gitkwidget.h
 libgitk widget functions


Functions

gchar * gitk__widget_get_value (GitkDialogPtr const dialog, GitkDialogAccessType access_type, gchar *const widget_id, const gchar *const name)
 get data value of the attribute name of the given widget. don't forget to free the returned value using xmlFree()

void gitk__widget_set_value (GitkDialogPtr const dialog, GitkDialogAccessType access_type, gchar *const widget_id, const gchar *const name, const gchar *const data)
 set data value of the attribute name of the given widget

GitkWidgetType gitk_widget_get_type (xmlNodePtr widget)
 gets the type attribute from a widget node and returns the respective widget type


Detailed Description

The methods are related to interface object (called widgets). You can retrive them from a dialog instance

Function Documentation

gchar* gitk__widget_get_value GitkDialogPtr const  dialog,
GitkDialogAccessType  access_type,
gchar *const  widget_id,
const gchar *const  name
 

get data value of the attribute name of the given widget. don't forget to free the returned value using xmlFree()

Parameters:
dialog the dialog which contains the widget
access_type how to access the dialog
widget_id the id of the widget to look up
name attribute name, of which the value should be retrieved
Returns:
the value of the widget
Todo:
should name be a xpath-expr ?
See also:
gitk_dialog_get_widget

Definition at line 61 of file gitkwidget.c.

References gitk__dialog_get_widget(), gitk_log2, gitk_log3, gitk_save_get_string, GitkDialogAccessType, and GitkDialogPtr.

Here is the call graph for this function:

void gitk__widget_set_value GitkDialogPtr const  dialog,
GitkDialogAccessType  access_type,
gchar *const  widget_id,
const gchar *const  name,
const gchar *const  data
 

set data value of the attribute name of the given widget

Parameters:
dialog the dialog which contains the widget
access_type how to access the dialog
widget_id the id of the widget to look up
name attribute name, from which the value should be set
data the new content of the value
Todo:
should name be a xpath-expr ?
See also:
gitk_dialog_get_widget

Definition at line 31 of file gitkwidget.c.

References GitkEvent::data, gitk_dialog_process_event(), gitk_dialog_set_content(), GITK_EVENT_TYPE_ON_CHANGED, gitk_get_widget_child_xpath_expression(), GitkDialogAccessType, GitkDialogPtr, and GitkEvent::type.

Here is the call graph for this function:

GitkWidgetType gitk_widget_get_type xmlNodePtr  widget  ) 
 

gets the type attribute from a widget node and returns the respective widget type

Parameters:
widget the xmlnode containing the widget
Todo:
add test cases to check that functions handle GITK_WIDGET_TYPE_UNDEF

Todo:
further break down types ?

Definition at line 94 of file gitkwidget.c.

References GITK_WIDGET_TYPE_ACTION, GITK_WIDGET_TYPE_CHARACTERINPUT, GITK_WIDGET_TYPE_CHARACTERINPUT_ALPHABETIC, GITK_WIDGET_TYPE_LABEL, GITK_WIDGET_TYPE_OPTIONCHOICE, GITK_WIDGET_TYPE_OPTIONCHOICE_BOOLEAN, GITK_WIDGET_TYPE_OPTIONCHOICE_SINGLE, GITK_WIDGET_TYPE_OPTIONCHOICE_SINGLE_COMPACT, GITK_WIDGET_TYPE_UNDEF, and GitkWidgetType.

Referenced by gitkr_dialog_generate_layout_walker(), and gitkr_dialog_generate_sequential_layout_build_page().


Generated on Thu Oct 28 11:04:27 2004 for gitk by doxygen 1.3.6