gitktools.c File Reference

libgitk tools More...

#include "gitkincludes.h"

Include dependency graph for gitktools.c:

Include dependency graph

Go to the source code of this file.

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_comp_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_dump_walker (xmlNodePtr cur, const gint level)
 recursively walks down a document tree and dumps nodes 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.c,v 1.51 2004/07/01 14:39:42 ensonic Exp

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

Definition in file gitktools.c.


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_dump_walker xmlNodePtr  cur,
const gint  level
[static]
 

recursively walks down a document tree and dumps nodes to STDOUT

Definition at line 29 of file gitktools.c.

References ANSI_COLOR_DARKGRAY, ANSI_COLOR_LIGHTBLUE, ANSI_COLOR_LIGHTGRAY, ANSI_COLOR_LIGHTRED, ANSI_COLOR_WHITE, gitk_dump, gitk_dump1, gitk_dump2, and print_ansi.

Referenced by gitk_dialog_dump().

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:41 2004 for gitk by doxygen 1.3.6