gitktools.h File Reference

libgitk tools More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define gitk_cxpath_get_node(dialog, xpath_comp_expression, root_node)   gitk__xpath_get_node(dialog,GITK_DIALOG_ACCESS_RENDERER,xpath_comp_expression,root_node)
#define gitk_cxpath_get_object(dialog, xpath_comp_expression, root_node)   gitk__cxpath_get_object(dialog,GITK_DIALOG_ACCESS_RENDERER,xpath_comp_expression,root_node)
#define gitk_cxpath_get_string(dialog, xpath_comp_expression, root_node)   gitk__cxpath_get_string(dialog,GITK_DIALOG_ACCESS_RENDERER,xpath_comp_expression,root_node)
#define gitk_xpath_get_node(dialog, xpath_expression, root_node)   gitk__xpath_get_node(dialog,GITK_DIALOG_ACCESS_RENDERER,xpath_expression,root_node)
#define gitk_xpath_get_object(dialog, xpath_expression, root_node)   gitk__xpath_get_object(dialog,GITK_DIALOG_ACCESS_RENDERER,xpath_expression,root_node)
#define gitk_xpath_get_string(dialog, xpath_expression, root_node)   gitk__xpath_get_string(dialog,GITK_DIALOG_ACCESS_RENDERER,xpath_expression,root_node)

Functions

void cleanup_commandline_args (guint *const argc, gchar ***const argv)
 remove found parameters (which are marked by parse_commandline_arg() as NULL) from the commandline array.

xmlNodePtr gitk__cxpath_get_node (GitkDialogPtr const dialog, GitkDialogAccessType access_type, xmlXPathCompExprPtr const xpath_comp_expression, xmlNodePtr const root_node)
 return the first node of the result of the evaluation of the supplied compiled xpath expression agains the given document

xmlXPathObjectPtr gitk__cxpath_get_object (GitkDialogPtr const dialog, GitkDialogAccessType access_type, xmlXPathCompExprPtr const xpath_expression, xmlNodePtr const root_node)
 return the result as xmlXPathObjectPtr of the evaluation of the supplied compiled xpath expression agains the given document

gchar * gitk__cxpath_get_string (GitkDialogPtr const dialog, GitkDialogAccessType access_type, xmlXPathCompExprPtr const xpath_comp_expression, xmlNodePtr const root_node)
 return the result as string of the evaluation of the supplied compiled xpath expression agains the given document

xmlNodePtr gitk__xpath_get_node (GitkDialogPtr const dialog, GitkDialogAccessType access_type, gchar *const xpath_expression, xmlNodePtr const root_node)
 return the first node of the result of the evaluation of the supplied xpath expression agains the given document

xmlXPathObjectPtr gitk__xpath_get_object (GitkDialogPtr const dialog, GitkDialogAccessType access_type, gchar *const xpath_expression, xmlNodePtr const root_node)
 return the result as xmlXPathObjectPtr of the evaluation of the supplied xpath expression agains the given document

gchar * gitk__xpath_get_string (GitkDialogPtr const dialog, GitkDialogAccessType access_type, gchar *const xpath_expression, xmlNodePtr const root_node)
 return the result as string of the evaluation of the supplied xpath expression agains the given document

void gitk_dialog_dump (xmlDocPtr const doc)
 dump contents of supplied document to STDOUT

void gitk_dialog_safe_new_child (xmlNsPtr const ns, xmlNodePtr const parent, gchar *const name, gchar *const content)
 add a new node with a default value, but only if it not yet exists

gchar * gitk_get_widget_child_xpath_expression (const gchar *const widget_id, const gchar *const widget_value)
 get xpath expression that addresses the value of a widget for the given id and name

gchar * gitk_get_widget_xpath_expression (const gchar *const widget_id)
 get xpath expression that addresses the widget for the given id

int gitk_printf (const char *utf8,...)
 converts an utf8 encoded string to the local charset and print it to the console using printf

int gitk_puts (const char *utf8)
 converts an utf8 encoded string to the local charset and print it to the console using puts

xmlXPathObjectPtr gitk_xpath_type_filter (xmlXPathObjectPtr xpath_optr, const xmlXPathObjectType type)
 test if the given XPathObject is of the expected type, otherwise discard the object

char * parse_commandline_arg (guint *const argc, gchar ***const argv, guint *const i, gchar *const argn)
 parse commandline arg


Detailed Description

libgitk tools

Id
gitktools.h,v 1.22 2004/06/30 16:53:01 ensonic Exp

Author:
Stefan Kost <ensonic@users.sf.net>
Date:
Tue Aug 21 13:23:36 2001

Definition in file gitktools.h.


Function Documentation

void cleanup_commandline_args guint *const  argc,
gchar ***const  argv
 

remove found parameters (which are marked by parse_commandline_arg() as NULL) from the commandline array.

Parameters:
argc pointer to argument count
argv pointer to argument values

Definition at line 387 of file gitktools.c.

Referenced by gitk_init_process_commandline(), and gitkr_init_process_commandline().

void gitk_dialog_safe_new_child xmlNsPtr const  ns,
xmlNodePtr const  parent,
gchar *const  name,
gchar *const  content
 

add a new node with a default value, but only if it not yet exists

Definition at line 311 of file gitktools.c.

gchar* gitk_get_widget_child_xpath_expression const gchar *const  widget_id,
const gchar *const  widget_value
 

get xpath expression that addresses the value of a widget for the given id and name

Parameters:
widget_id the id of the widget to address
widget_value the value name of the widget

Definition at line 294 of file gitktools.c.

References GITK_CONTROL_ID_MAXLEN, and GITK_NS_PREFIX.

Referenced by gitk__widget_set_value().

gchar* gitk_get_widget_xpath_expression const gchar *const  widget_id  ) 
 

get xpath expression that addresses the widget for the given id

Parameters:
widget_id the id of the widget to address

Definition at line 279 of file gitktools.c.

References GITK_CONTROL_ID_MAXLEN, and GITK_NS_PREFIX.

Referenced by gitk__dialog_attach_callback(), gitk__dialog_get_widget(), and gitk_dialog_detach_callback().

int gitk_printf const char *  utf8,
... 
 

converts an utf8 encoded string to the local charset and print it to the console using printf

Parameters:
utf8 unicode (utf8) encoded string
... parameters
Returns:
the number of characters written; or EOF in case of problems

Definition at line 428 of file gitktools.c.

Referenced by gitk_template_message_with_title(), main(), and main_show().

int gitk_puts const char *  utf8  ) 
 

converts an utf8 encoded string to the local charset and print it to the console using puts

Parameters:
utf8 unicode (utf8) encoded string
Returns:
the number of characters written; or EOF in case of problems

Definition at line 408 of file gitktools.c.

Referenced by gitk_init_process_commandline(), gitkr_init_process_commandline(), and main().

char* parse_commandline_arg guint *const  argc,
gchar ***const  argv,
guint *const  i,
gchar *const  argn
 

parse commandline arg

Parameters:
argc pointer to argument count
argv pointer to argument values
i pointer to current argument index
argn argument name

Definition at line 337 of file gitktools.c.

References gitk_log, gitk_log1, and gitk_log2.

Referenced by gitk_init_process_commandline(), and gitkr_init_process_commandline().


Generated on Thu Oct 28 11:02:42 2004 for gitk by doxygen 1.3.6