gitkrtools.c File Reference

gitk renderer tool routines More...

#include "gitkrincludes.h"

Include dependency graph for gitk-renderer-text/gitkrtools.c:

Include dependency graph

Go to the source code of this file.

Functions

gboolean color_name_to_attr (gchar *name, gboolean def)
 get curses dim/bold attribute color name

guint color_name_to_code (gchar *name, guint def)
 get curses color code from color name

gchar * gitkr_cxpath_get_string (GitkDialogPtr dialog, xmlXPathCompExprPtr xpath_expr, xmlNodePtr root_node)
 return the result as string of the evaluation of the supplied xpath expression agains the given document and converts the codeset of the result

gchar * gitkr_widget_get_value (GitkDialogPtr const dialog, gchar *const widget_id, const gchar *name)
 get data value of the attribute name of the given widget and converts the codeset of the result don't forget to free the returned value using g_free

void gitkr_widget_set_value (GitkDialogPtr const dialog, gchar *const widget_id, const gchar *name, const gchar *data)
 set data value of the attribute name of the given widget and converts the codeset of the data


Detailed Description

gitk renderer tool routines

Id
gitkrtools.c,v 1.18 2004/07/01 14:39:47 ensonic Exp

Author:
Stefan Kost <ensonic@users.sf.net>
Date:
Wed Oct 08 11:09:59 2003

Definition in file gitk-renderer-text/gitkrtools.c.


Function Documentation

gboolean color_name_to_attr gchar *  name,
gboolean  def
 

get curses dim/bold attribute color name

Definition at line 103 of file gitk-renderer-text/gitkrtools.c.

Referenced by gitkr_dialog_generate_layout(), and gitkr_widget_new().

guint color_name_to_code gchar *  name,
guint  def
 

get curses color code from color name

Definition at line 85 of file gitk-renderer-text/gitkrtools.c.

References gitk_log1.

Referenced by gitkr_dialog_generate_layout(), and gitkr_widget_new().

gchar* gitkr_cxpath_get_string GitkDialogPtr  dialog,
xmlXPathCompExprPtr  xpath_expr,
xmlNodePtr  root_node
 

return the result as string of the evaluation of the supplied xpath expression agains the given document and converts the codeset of the result

Parameters:
dialog gitk dialog
xpath_expr compiles xpath expression to use
root_node from where to search, uses doc root when NULL
Returns:
gchar pointer to result of NULL, do not forget to free the result after use.

Definition at line 24 of file gitk-renderer-text/gitkrtools.c.

References GitkDialogPtr.

Referenced by gitkr_dialog_generate_sequential_layout_build_page(), gitkr_dialog_new_layout(), gitkr_select_context(), and gitkr_widget_new().

gchar* gitkr_widget_get_value GitkDialogPtr const  dialog,
gchar *const  widget_id,
const gchar *  name
 

get data value of the attribute name of the given widget and converts the codeset of the result don't forget to free the returned value using g_free

Parameters:
dialog the dialog which contains the widget
widget_id the id of the widget to look up
name child-node, of which the value should be retrieved
Returns:
the value of the widget

Definition at line 67 of file gitk-renderer-text/gitkrtools.c.

References GitkDialogPtr.

Referenced by gitkr_widget_characterinput_handle(), gitkr_widget_characterinput_output(), gitkr_widget_label_output(), gitkr_widget_optionchoice_boolean_handle(), gitkr_widget_optionchoice_boolean_output(), gitkr_widget_optionchoice_handle(), gitkr_widget_optionchoice_output(), and handle_dialog_ctrl_widgets().

void gitkr_widget_set_value GitkDialogPtr const  dialog,
gchar *const  widget_id,
const gchar *  name,
const gchar *  data
 

set data value of the attribute name of the given widget and converts the codeset of the data

Parameters:
dialog the dialog which contains the widget
widget_id the id of the widget to look up
name child-node, of which the value should be retrieved
data the new content of the value

Definition at line 45 of file gitk-renderer-text/gitkrtools.c.

References GitkDialogPtr.

Referenced by gitkr_widget_characterinput_handle(), gitkr_widget_optionchoice_boolean_handle(), and gitkr_widget_optionchoice_handle().


Generated on Thu Oct 28 11:01:26 2004 for gitk by doxygen 1.3.6