gitkrlayout.c File Reference

gitk renderer layout routines More...

#include "gitkrincludes.h"

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

Include dependency graph

Go to the source code of this file.

Defines

#define giml_ctrl_text   N_("Next");
#define giml_ctrl_text   N_("Prev");
#define GITK_RENDERER_C
#define GITKR_LAYOUT_C
#define LINES   99

Functions

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

void gitkr_dialog_generate_dialog_widgets (GitkDialogPtr dialog)
 generate dialog meta widgets

void gitkr_dialog_generate_hierarchical_layout (GitkDialogPtr dialog, xmlNodePtr root)
 generate a layout with pure hierarchical order

void gitkr_dialog_generate_layout (GitkDialogPtr dialog)
 generate a layout for a given dialog

void gitkr_dialog_generate_sequential_layout (GitkDialogPtr dialog, xmlNodePtr root)
 generate a layout with pure sequential order

gint gitkr_dialog_generate_sequential_layout_build_page (GitkDialogPtr dialog, xmlNodePtr root, xmlXPathCompExprPtr xpath_get_widgets, gint pageIx)
 build a single page

gint gitkr_dialog_generate_sequential_layout_count_pages (GitkDialogPtr dialog, xmlNodePtr root, xmlNodeSetPtr pages, xmlXPathCompExprPtr xpath_get_widgets)
 helper function that calculates the number of page we will need

GitkrPhoneLayoutPtr gitkr_dialog_new_layout (GitkDialogPtr dialog)
 create a initialise a layout structure

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

GitkrPhoneWidgetPtr gitkr_layout_get_current_widget (GitkrPhoneLayoutPtr layout)
 get the current active widget

gint gitkr_layout_get_current_widget_line (GitkrPhoneLayoutPtr layout)
 get the line position of the current widget


Detailed Description

gitk renderer layout routines

Id
gitkrlayout.c,v 1.4 2004/06/08 10:30:49 sast Exp

Author:
Steffen Ast <sast@users.sf.net>
Date:
Mon Mar 29 20:08:16 2004

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


Define Documentation

#define giml_ctrl_text   N_("Next");
 

Todo:
this is a hack to make gettext aware of these

Definition at line 20 of file gitk-renderer-phone/gitkrlayout.c.

#define giml_ctrl_text   N_("Prev");
 

Todo:
this is a hack to make gettext aware of these

Definition at line 20 of file gitk-renderer-phone/gitkrlayout.c.

#define LINES   99
 

Todo:
Stefan fragen wegen LINES

Definition at line 24 of file gitk-renderer-phone/gitkrlayout.c.

Referenced by gitkr_dialog_generate_layout(), gitkr_dialog_new_layout(), gitkr_dialog_output_layout(), and handle_dialog_ctrl_widgets().


Function Documentation

void gitkr_dialog_free_layout GitkDialogPtr  dialog  ) 
 

frees the layout data of a dialog

Definition at line 428 of file gitk-renderer-phone/gitkrlayout.c.

References GitkrPhoneLayout::ctrl, gitk_log, GitkDialogPtr, GitkrPhoneLayoutPtr, GitkrPhoneWidgetPtr, GitkrPhoneWidget::id, GitkrPhoneWidget::label, GitkDialog::layout, GitkrPhoneLayout::maxWidgetsPerPage, GitkrPhoneLayout::numberOfPages, GitkrPhoneLayout::pages, GitkrPhoneLayout::title, and GitkrPhoneLayoutPage::widgets.

void gitkr_dialog_generate_dialog_widgets GitkDialogPtr  dialog  ) 
 

generate dialog meta widgets

Definition at line 81 of file gitk-renderer-phone/gitkrlayout.c.

References GitkrPhoneLayout::ctrl, gitk_err, gitk_err1, gitk_log, gitk_log1, gitk_log3, GITK_NS_PREFIX, GitkDialogPtr, gitkr_widget_optionchoice_new(), GitkrPhoneLayoutPtr, GitkrPhoneWidgetPtr, GitkrPhoneWidget::id, GitkDialog::layout, GitkrPhoneLayoutPage::widgets, and GitkrPhoneLayoutPage::widgetsPerPage.

Here is the call graph for this function:

void gitkr_dialog_generate_hierarchical_layout GitkDialogPtr  dialog,
xmlNodePtr  root
 

generate a layout with pure hierarchical order

Todo:
implement this part

Definition at line 329 of file gitk-renderer-phone/gitkrlayout.c.

References gitk_log, GitkDialogPtr, GitkrPhoneLayoutPtr, and GitkDialog::layout.

void gitkr_dialog_generate_layout GitkDialogPtr  dialog  ) 
 

generate a layout for a given dialog

Todo:
do this for every page

decide which layouting algorithm to use (XSLT)

Definition at line 30 of file gitk-renderer-phone/gitkrlayout.c.

References gitk_err, gitk_log, GITK_NS_PREFIX, GitkDialogPtr, GitkLayoutPtr, gitkr_dialog_free_layout(), gitkr_dialog_generate_dialog_widgets(), gitkr_dialog_generate_sequential_layout(), gitkr_dialog_new_layout(), GitkrPhoneLayoutPtr, and GitkDialog::layout.

Here is the call graph for this function:

void gitkr_dialog_generate_sequential_layout GitkDialogPtr  dialog,
xmlNodePtr  root
 

generate a layout with pure sequential order

Todo:
Currently we do not yet handle arbitrary deep netsed widgetgroups (only level2). We need to flatten the whole hierarchy.

Definition at line 110 of file gitk-renderer-phone/gitkrlayout.c.

References gitk_err, gitk_log, gitk_log1, GITK_NS_PREFIX, gitk_xpath_type_filter(), GitkDialogPtr, gitkr_dialog_generate_sequential_layout_build_page(), gitkr_dialog_generate_sequential_layout_count_pages(), GitkrPhoneLayoutPtr, GitkDialog::layout, GitkrPhoneLayout::maxWidgetsPerPage, GitkrPhoneLayout::numberOfPages, GitkrPhoneLayout::pages, GitkrPhoneLayout::title, and GitkrPhoneLayoutPage::widgets.

Here is the call graph for this function:

gint gitkr_dialog_generate_sequential_layout_build_page GitkDialogPtr  dialog,
xmlNodePtr  root,
xmlXPathCompExprPtr  xpath_get_widgets,
gint  pageIx
 

build a single page

Todo:
set initial value

set initial value

implement widget

set initial value, choices

Definition at line 216 of file gitk-renderer-phone/gitkrlayout.c.

References GitkrPhoneLayout::currentPage, GitkrPhoneLayout::currentWidget, GitkrPhoneLayout::focus, gitk_err, GITK_FOCUS_TYPE_MAIN, 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, gitk_xpath_type_filter(), GitkDialogPtr, gitkr_cxpath_get_string(), gitkr_widget_action_new(), gitkr_widget_characterinput_alphabetic_new(), gitkr_widget_characterinput_new(), gitkr_widget_label_new(), gitkr_widget_new(), gitkr_widget_optionchoice_boolean_new(), gitkr_widget_optionchoice_new(), GitkrPhoneLayoutPtr, GitkrPhoneWidgetPtr, GitkDialog::layout, GitkrPhoneLayout::maxWidgetsPerPage, GitkrPhoneLayout::pages, GitkrPhoneLayoutPage::title, GitkrPhoneLayoutPage::widgets, GitkrPhoneLayoutPage::widgetsPerPage, and xpath_get_label.

Here is the call graph for this function:

gint gitkr_dialog_generate_sequential_layout_count_pages GitkDialogPtr  dialog,
xmlNodePtr  root,
xmlNodeSetPtr  pages,
xmlXPathCompExprPtr  xpath_get_widgets
 

helper function that calculates the number of page we will need

Definition at line 167 of file gitk-renderer-phone/gitkrlayout.c.

References gitk_log1, gitk_log_intro, gitk_log_outro, gitk_xpath_type_filter(), GitkDialogPtr, GitkrPhoneLayoutPtr, GitkDialog::layout, and GitkrPhoneLayout::maxWidgetsPerPage.

Here is the call graph for this function:

GitkrPhoneLayoutPtr gitkr_dialog_new_layout GitkDialogPtr  dialog  ) 
 

create a initialise a layout structure

Todo:
currently the first gadget (even a label) will have the focus

Definition at line 60 of file gitk-renderer-phone/gitkrlayout.c.

References GitkrPhoneLayout::ctrl, GitkrPhoneLayout::currentPage, GitkrPhoneLayout::currentWidget, GitkrPhoneLayout::focus, GITK_FOCUS_TYPE_CTRL, gitk_log, GitkDialogPtr, gitkr_cxpath_get_string(), GitkrPhoneLayoutPtr, LINES, GitkrPhoneLayout::maxWidgetsPerPage, GitkrPhoneLayout::pages, GitkrPhoneLayout::title, GitkrPhoneLayoutPage::widgets, and xpath_get_dialog_name.

Here is the call graph for this function:

void gitkr_dialog_output_layout GitkDialogPtr  dialog  ) 
 

display the layout of a dialog

Definition at line 347 of file gitk-renderer-phone/gitkrlayout.c.

References capi_text_output(), capiinfo, GitkrPhoneLayout::ctrl, GitkrPhoneLayout::currentPage, GitkrPhoneLayout::currentWidget, ftinfo, gitk_log, gitk_log1, GitkDialogPtr, GITKR_TEXT_NAVIGATION, GitkrPhoneLayoutPtr, GitkrPhoneWidgetPtr, IconApplication, GitkrPhoneWidget::id, GitkDialog::layout, GitkrPhoneLayout::numberOfPages, GitkrPhoneWidget::output, GitkrPhoneLayout::pages, GitkrPhoneLayoutPage::title, GitkrPhoneLayout::title, GitkrPhoneLayoutPage::widgets, and GitkrPhoneLayoutPage::widgetsPerPage.

Here is the call graph for this function:

GitkrPhoneWidgetPtr gitkr_layout_get_current_widget GitkrPhoneLayoutPtr  layout  ) 
 

get the current active widget

Definition at line 467 of file gitk-renderer-phone/gitkrlayout.c.

References GitkrPhoneLayout::currentPage, GitkrPhoneLayout::currentWidget, GitkrPhoneLayoutPtr, GitkrPhoneWidgetPtr, GitkrPhoneLayout::pages, and GitkrPhoneLayoutPage::widgets.

gint gitkr_layout_get_current_widget_line GitkrPhoneLayoutPtr  layout  ) 
 

get the line position of the current widget

Definition at line 480 of file gitk-renderer-phone/gitkrlayout.c.

References GitkrPhoneLayout::currentWidget, and GitkrPhoneLayoutPtr.


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