gitkrlayout.c File Reference

gitk renderer layout routines More...

#include "gitkrincludes.h"

Include dependency graph for gitk-renderer-gtk/gitkrlayout.c:

Include dependency graph

Go to the source code of this file.

Functions

void gitkr_dialog_free_layout (GitkDialogPtr dialog)
 frees the layout data of a dialog

void gitkr_dialog_generate_layout (GitkDialogPtr dialog)
 generate a layout for a given dialog. reads the dialog node and recursively processes the children.

gint gitkr_dialog_generate_layout_walker (GitkDialogPtr dialog, GtkContainer *container, xmlNodePtr cur, gboolean box_vert, gint widget_index)
 step down the layout tree

void gitkr_dialog_output_layout (GitkDialogPtr dialog)
 display the layout of a dialog


Detailed Description

gitk renderer layout routines

Id
gitkrlayout.c,v 1.39 2004/06/24 18:35:27 ensonic Exp

Author:
Stefan Kost <ensonic@users.sf.net>
Date:
Fri Jan 25 09:40:03 2002

Definition in file gitk-renderer-gtk/gitkrlayout.c.


Function Documentation

void gitkr_dialog_free_layout GitkDialogPtr  dialog  ) 
 

frees the layout data of a dialog

Definition at line 268 of file gitk-renderer-gtk/gitkrlayout.c.

References GitkrGtkLayout::ctrl, gitk_log1, gitk_log2, gitk_log_intro, gitk_log_outro, gitk_save_get_string, GitkDialogPtr, GitkrGtkLayoutPtr, GitkrGtkWidgetPtr, GitkrGtkWidget::id, GitkDialog::layout, GitkrGtkLayout::main, GitkrGtkLayout::title, GitkrGtkLayoutPage::widgets, GitkrGtkLayoutPage::widgetsPerPage, and GitkrGtkLayout::window.

void gitkr_dialog_generate_layout GitkDialogPtr  dialog  ) 
 

generate a layout for a given dialog. reads the dialog node and recursively processes the children.

Todo:
initialize box_vert from ""GITK_NS_PREFIX":dialogwidgets/"GITK_NS_PREFIX":orientation"

get default spacing from xml

Definition at line 22 of file gitk-renderer-gtk/gitkrlayout.c.

References GitkrGtkLayout::focused_widget, gitk_err, gitk_err1, gitk_log, gitk_log1, gitk_log2, GITK_NS_PREFIX, gitk_save_get_string, gitk_xpath_type_filter(), GitkDialogPtr, GitkLayoutPtr, gitkr_dialog_free_layout(), gitkr_dialog_generate_layout_walker(), gitkr_widget_action_new(), GitkrGtkLayoutPtr, GitkrGtkWidgetPtr, GitkrGtkWidget::impl, GitkDialog::layout, GitkrGtkLayout::main, sighandler_window_on_close(), sighandler_window_on_destroy(), GitkrGtkLayout::title, GitkrGtkLayoutPage::widgets, GitkrGtkLayoutPage::widgetsPerPage, GitkrGtkLayout::window, xpath_get_dialog_name, and xpath_get_label.

Here is the call graph for this function:

gint gitkr_dialog_generate_layout_walker GitkDialogPtr  dialog,
GtkContainer *  container,
xmlNodePtr  cur,
gboolean  box_vert,
gint  widget_index
 

step down the layout tree

Todo:
use a GtkTable(nr_of_widgets,2) instead of a box

make this a function somewhere ?

Definition at line 142 of file gitk-renderer-gtk/gitkrlayout.c.

References gitk_log, gitk_log1, gitk_log2, gitk_widget_get_type(), GITK_WIDGET_TYPE_ACTION, GITK_WIDGET_TYPE_CHARACTERINPUT, GITK_WIDGET_TYPE_CHARACTERINPUT_ALPHABETIC, GITK_WIDGET_TYPE_LABEL, GITK_WIDGET_TYPE_OPTIONCHOICE, GITK_WIDGET_TYPE_OPTIONCHOICE_BOOLEAN, GITK_WIDGET_TYPE_OPTIONCHOICE_SINGLE, GITK_WIDGET_TYPE_OPTIONCHOICE_SINGLE_COMPACT, GITK_WIDGET_TYPE_UNDEF, GitkDialogPtr, gitkr_widget_action_new(), gitkr_widget_characterinput_new(), gitkr_widget_label_new(), gitkr_widget_optionchoice_boolean_new(), gitkr_widget_optionchoice_new(), GitkrGtkLayoutPtr, GitkrGtkWidgetPtr, GitkrGtkWidget::impl, GitkDialog::layout, GitkrGtkWidget::type, and xpath_get_label.

Referenced by gitkr_dialog_generate_layout().

Here is the call graph for this function:

void gitkr_dialog_output_layout GitkDialogPtr  dialog  ) 
 

display the layout of a dialog

Definition at line 238 of file gitk-renderer-gtk/gitkrlayout.c.

References gitk_err, gitk_log_intro, gitk_log_outro, GITK_NS_PREFIX, GitkDialogPtr, GitkrGtkLayoutPtr, GitkDialog::layout, and GitkrGtkLayout::window.


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