gitkdialog.h

Go to the documentation of this file.
00001 
00012 #ifndef GITK_DIALOG_H
00013 #define GITK_DIALOG_H
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018 
00019 #ifdef GITK_DIALOG_C
00020 GitkDialogPtr gitk_dialog_new_from_file(gchar * const filename);
00021 GitkDialogPtr gitk_dialog_new_from_memory(gchar * const buffer, const guint size);
00022 GitkDialogPtr gitk_dialog_new_from_string(gchar * const str);
00023 GitkDialogPtr gitk_dialog_new_from_parser_context(xmlParserCtxtPtr const ctxt);
00024 void gitk_dialog_free(GitkDialogPtr const dialog);
00025 GitkDialogPtr gitk_dialog_new(xmlDocPtr const doc);
00026 xmlDocPtr gitk_dialog_get_src(GitkDialogPtr const dialog);
00027 xmlDocPtr gitk_dialog_get_dst(GitkDialogPtr const dialog);
00028 xmlDocPtr gitk__dialog_get_doc(GitkDialogPtr const dialog,GitkDialogAccessType access_type);
00029 void gitk_dialog_invalidate(GitkDialogPtr const dialog);
00030 
00031 void gitk_dialog_set_content(GitkDialogPtr const dialog,GitkDialogAccessType const access_type,xmlXPathCompExprPtr cxpath_expr,gchar * const xpath_expr,const gchar * const new_value);
00032 
00033 xmlNodePtr gitk__dialog_get_widget(GitkDialogPtr const dialog,GitkDialogAccessType const access_type,gchar * const widget_id);
00034 void gitk__dialog_set_title(GitkDialogPtr const dialog,GitkDialogAccessType const access_type,gchar * const new_title);
00035 
00036 void gitk_dialog_move_focus(GitkWidgetPtr old_widget, GitkWidgetPtr new_widget);
00037 #else
00038 extern GitkDialogPtr gitk_dialog_new_from_file(gchar * const filename);
00039 extern GitkDialogPtr gitk_dialog_new_from_memory(gchar * const buffer, const guint size);
00040 extern GitkDialogPtr gitk_dialog_new_from_string(gchar * const str);
00041 extern GitkDialogPtr gitk_dialog_new_from_parser_context(xmlParserCtxtPtr const ctxt);
00042 extern void gitk_dialog_free(GitkDialogPtr const dialog);
00043 extern GitkDialogPtr gitk_dialog_new(xmlDocPtr const doc);
00044 #ifdef GITK_LIB_C
00045 extern xmlDocPtr gitk_dialog_get_src(GitkDialogPtr const dialog);
00046 extern xmlDocPtr gitk_dialog_get_dst(GitkDialogPtr const dialog);
00047 extern xmlDocPtr gitk__dialog_get_doc(GitkDialogPtr const dialog,GitkDialogAccessType access_type);
00048 #endif
00049 extern void gitk_dialog_invalidate(GitkDialogPtr const dialog);
00050 
00051 extern void gitk_dialog_set_content(GitkDialogPtr const dialog,GitkDialogAccessType const access_type,xmlXPathCompExprPtr cxpath_expr,gchar * const xpath_expr,const gchar * const new_value);
00052 
00053 extern xmlNodePtr gitk__dialog_get_widget(GitkDialogPtr const dialog,GitkDialogAccessType const access_type,gchar * const widget_id);
00054 extern void gitk__dialog_set_title(GitkDialogPtr const dialog,GitkDialogAccessType const access_type,gchar * const new_title);
00055 
00056 extern void gitk_dialog_move_focus(GitkWidgetPtr old_widget, GitkWidgetPtr new_widget);
00057 
00058 #endif
00059 
00060 #if defined(GITK_LIB_C) || defined(GITK_RENDERER_C)
00061   #define gitk_dialog_get_doc(dialog) gitk__dialog_get_doc(dialog,GITK_DIALOG_ACCESS_RENDERER)
00062   #define gitk_dialog_get_widget(dialog,widget_id) gitk__dialog_get_widget(dialog,GITK_DIALOG_ACCESS_RENDERER,widget_id)
00063   #define gitk_dialog_set_title(dialog,new_title) gitk__dialog_set_title(dialog,GITK_DIALOG_ACCESS_RENDERER,new_title)
00064 #else
00065 //  #define gitk_dialog_get_doc(dialog) gitk__dialog_get_doc(dialog,GITK_DIALOG_ACCESS_CLIENT)
00066 //  #define gitk_dialog_get_widget(dialog,widget_id) gitk__dialog_get_widget(dialog,GITK_DIALOG_ACCESS_CLIENT,widget_id)
00067   #define gitk_dialog_set_title(dialog,new_title) gitk__dialog_set_title(dialog,GITK_DIALOG_ACCESS_CLIENT,new_title)
00068 #endif
00069 
00070 #ifdef __cplusplus
00071 } // extern "C"
00072 #endif
00073 
00074 #endif /* GITK_DIALOG_H */

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