gitkdialog.c File Reference

libgitk dialog class (xml-doc-tree) More...

#include "gitkincludes.h"

Include dependency graph for gitkdialog.c:

Include dependency graph

Go to the source code of this file.

Functions

xmlDocPtr gitk__dialog_get_doc (GitkDialogPtr const dialog, GitkDialogAccessType access_type)
 get the source/destination giml/xml document

xmlNodePtr gitk__dialog_get_widget (GitkDialogPtr const dialog, GitkDialogAccessType const access_type, gchar *const widget_id)
 retrieve the widget from the doc-tree

void gitk__dialog_set_title (GitkDialogPtr const dialog, GitkDialogAccessType const access_type, gchar *const new_title)
 sets the dialog title

void gitk_dialog_free (GitkDialogPtr const dialog)
 free a GitkDialog. This unconnects all callbacks and releases memory.

xmlDocPtr gitk_dialog_get_dst (GitkDialogPtr const dialog)
 get the target xml document, this takes care that the target document gets generated at least when someone accesses it

xmlDocPtr gitk_dialog_get_src (GitkDialogPtr const dialog)
 get the source giml/xml document

void gitk_dialog_invalidate (GitkDialogPtr const dialog)
 invalidate the prepared dst doc, this ensures that on the next access the transformations are repeated

void gitk_dialog_move_focus (GitkWidgetPtr old_widget, GitkWidgetPtr new_widget)
 move the focus mark from one widget to another.

GitkDialogPtr gitk_dialog_new (xmlDocPtr const doc)
 create GitkDialog from xml-doc

GitkDialogPtr gitk_dialog_new_from_file (gchar *const filename)
 create a GitkDialog from a giml-file

GitkDialogPtr gitk_dialog_new_from_memory (gchar *const buffer, const guint size)
 create a GitkDialog from a memory block containing giml dialog description

GitkDialogPtr gitk_dialog_new_from_parser_context (xmlParserCtxtPtr const ctxt)
 create a GitkDialog from a parser context

GitkDialogPtr gitk_dialog_new_from_string (gchar *const str)
 create a GitkDialog from a string containing giml dialog description

void gitk_dialog_set_content (GitkDialogPtr const dialog, GitkDialogAccessType const access_type, xmlXPathCompExprPtr cxpath_expr, gchar *const xpath_expr, const gchar *const new_value)
 sets content in gitk doc tree to a new value

gboolean gitk_dialog_validate (GitkDialogPtr const dialog)
 test wheter the document is of correct type

GitkDialogAccessType gitk_toggle_access_type (GitkDialogAccessType access_type)
 returns the other access type


Detailed Description

libgitk dialog class (xml-doc-tree)

Id
gitkdialog.c,v 1.16 2004/10/28 08:53:56 ensonic Exp

Author:
Stefan Kost <ensonic@users.sf.net>
Date:
Tue Dec 30 15:33:52 MET 2003

Definition in file gitkdialog.c.


Function Documentation

void gitk_dialog_move_focus GitkWidgetPtr  old_widget,
GitkWidgetPtr  new_widget
 

move the focus mark from one widget to another.

Definition at line 437 of file gitkdialog.c.

References GitkWidget::dialog, gitk__dialog_get_widget(), GITK_DIALOG_ACCESS_CLIENT, GITK_DIALOG_ACCESS_RENDERER, GitkWidgetPtr, and GitkWidget::id.

Referenced by handle_dialog_main_widgets(), next_widget(), and prev_widget().

Here is the call graph for this function:

gboolean gitk_dialog_validate GitkDialogPtr const  dialog  )  [static]
 

test wheter the document is of correct type

Definition at line 176 of file gitkdialog.c.

References _, GITK_ERROR_EMPTY_DOCUMENT, GITK_ERROR_WRONG_DOCTYPE_NAMESPACE, GITK_ERROR_WRONG_DOCTYPE_ROOTNODE, gitk_log, gitk_log2, GITK_NS_URL, gitk_save_get_string, gitk_set_error(), GitkDialogPtr, GitkDialog::ns, and GitkDialog::src.

Referenced by gitk_dialog_new().

Here is the call graph for this function:

GitkDialogAccessType gitk_toggle_access_type GitkDialogAccessType  access_type  )  [static]
 

returns the other access type

Parameters:
access_type current access type
Returns:
the other access type

Definition at line 333 of file gitkdialog.c.

References GitkDialogAccessType.

Referenced by gitk_dialog_set_content().


Generated on Thu Oct 28 10:59:27 2004 for gitk by doxygen 1.3.6