gitkrwoptionchoice.c File Reference

gitk phone renderer widget More...

#include "gitkrincludes.h"

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

Include dependency graph

Go to the source code of this file.

Functions

void gitkr_widget_optionchoice_free_choices (GList *choices)
 free the choices of an optionchoice widget

void gitkr_widget_optionchoice_free_ids (GList *ids)
 free the ids of an optionchoice widget

void gitkr_widget_optionchoice_free_list (GList *items)
 free a GList of an optionchoice widget

GList * gitkr_widget_optionchoice_get_choices (GitkrPhoneWidgetPtr widget)
 get the choices of an optionchoice widget

GList * gitkr_widget_optionchoice_get_ids (GitkrPhoneWidgetPtr widget)
 get the ids of an optionchoice widget

gint gitkr_widget_optionchoice_get_position (GList *choices, gint value)
 get the position of the current choice in the line with the choices

gboolean gitkr_widget_optionchoice_handle (GitkrPhoneWidgetPtr widget)
 handle events of a optionchoice widget

void gitkr_widget_optionchoice_new (GitkrPhoneWidgetPtr widget, GitkDialogPtr dialog, xmlNodePtr node)
 create a new optionchoice widget

void gitkr_widget_optionchoice_output (GitkrPhoneWidgetPtr widget, gboolean active)
 display an optionchoice widget

gint gitkr_widget_optionchoice_value_output (gint value, GList *choices, gboolean all)
 display the value of an optionchoice widget


Detailed Description

gitk phone renderer widget

Id
gitkrwoptionchoice.c,v 1.7 2004/06/08 11:38:40 sast Exp

Author:
Steffen Ast <sast@users.sf.net>
Date:
Sat Mar 27 21:38:00 2004

Definition in file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.


Function Documentation

void gitkr_widget_optionchoice_free_choices GList *  choices  ) 
 

free the choices of an optionchoice widget

Parameters:
choices the list of items

Definition at line 235 of file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.

References gitkr_widget_optionchoice_free_list().

Here is the call graph for this function:

void gitkr_widget_optionchoice_free_ids GList *  ids  ) 
 

free the ids of an optionchoice widget

Parameters:
ids the list of items

Definition at line 284 of file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.

References gitkr_widget_optionchoice_free_list().

Here is the call graph for this function:

void gitkr_widget_optionchoice_free_list GList *  items  ) 
 

free a GList of an optionchoice widget

Definition at line 291 of file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.

GList* gitkr_widget_optionchoice_get_choices GitkrPhoneWidgetPtr  widget  ) 
 

get the choices of an optionchoice widget

Definition at line 201 of file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.

References code_set, GitkrPhoneWidget::dialog, gitk_err, GITK_NS_PREFIX, gitk_xpath_type_filter(), GitkrPhoneWidgetPtr, and GitkrPhoneWidget::id.

Here is the call graph for this function:

GList* gitkr_widget_optionchoice_get_ids GitkrPhoneWidgetPtr  widget  ) 
 

get the ids of an optionchoice widget

Definition at line 253 of file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.

References GitkrPhoneWidget::dialog, gitk_err, GITK_NS_PREFIX, gitk_xpath_type_filter(), GitkrPhoneWidgetPtr, and GitkrPhoneWidget::id.

Here is the call graph for this function:

gint gitkr_widget_optionchoice_get_position GList *  choices,
gint  value
 

get the position of the current choice in the line with the choices

Definition at line 240 of file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.

gboolean gitkr_widget_optionchoice_handle GitkrPhoneWidgetPtr  widget  ) 
 

handle events of a optionchoice widget

Todo:
this is problematic for the dialog-control widget, as this not exist in source and we are not really interested in its new value. SOLUTION, each widget can have a custom get_<attr>, set_<attr> methods

Definition at line 50 of file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.

References capi_dtmf_input_arrow(), capi_sound_beep(), capi_text_output(), capiinfo, GitkrPhoneWidget::dialog, GitkLayout::focus, ftinfo, GITK_FOCUS_TYPE_CTRL, GITK_FOCUS_TYPE_MAIN, gitk_log1, gitkr_event_loop_getkey(), gitkr_widget_get_value(), gitkr_widget_optionchoice_get_choices(), gitkr_widget_set_value(), GitkrPhoneWidgetPtr, GitkrPhoneWidget::id, GitkrPhoneWidget::label, GitkDialog::layout, and run.

Referenced by gitkr_widget_optionchoice_new().

Here is the call graph for this function:

void gitkr_widget_optionchoice_new GitkrPhoneWidgetPtr  widget,
GitkDialogPtr  dialog,
xmlNodePtr  node
 

create a new optionchoice widget

Definition at line 18 of file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.

References GITK_WIDGET_TYPE_OPTIONCHOICE, GitkDialogPtr, gitkr_widget_new(), gitkr_widget_optionchoice_handle(), gitkr_widget_optionchoice_output(), GitkrPhoneWidgetPtr, GitkrPhoneWidget::handle, GitkrPhoneWidget::output, and GitkrPhoneWidget::type.

Here is the call graph for this function:

void gitkr_widget_optionchoice_output GitkrPhoneWidgetPtr  widget,
gboolean  active
 

display an optionchoice widget

Definition at line 26 of file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.

References capi_text_output(), capiinfo, GitkrPhoneWidget::dialog, ftinfo, gitk_log, gitk_log1, gitkr_widget_get_value(), gitkr_widget_optionchoice_free_choices(), gitkr_widget_optionchoice_get_choices(), gitkr_widget_optionchoice_value_output(), GitkrPhoneWidgetPtr, GitkrPhoneWidget::id, GitkrPhoneWidget::label, and selected.

Referenced by gitkr_widget_optionchoice_new().

Here is the call graph for this function:

gint gitkr_widget_optionchoice_value_output gint  value,
GList *  choices,
gboolean  all
 

display the value of an optionchoice widget

Definition at line 178 of file gitk-renderer-phone/widgets/gitkrwoptionchoice.c.

References _, capi_text_output(), capiinfo, ftinfo, and gitk_log.

Here is the call graph for this function:


Generated on Thu Oct 28 11:02:17 2004 for gitk by doxygen 1.3.6