gitkrwoptionchoice.c File Reference

gitk text renderer widget : optionchoice More...

#include "gitkrincludes.h"

Include dependency graph for gitk-renderer-text/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 (GitkrTextWidgetPtr widget)
 get the choices of an optionchoice widget

GList * gitkr_widget_optionchoice_get_ids (GitkrTextWidgetPtr 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 (GitkrTextWidgetPtr widget, gint line)
 handle events of a optionchoice widget

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

void gitkr_widget_optionchoice_output (GitkrTextWidgetPtr widget, gint line, gboolean active)
 display an optionchoice widget

gint gitkr_widget_optionchoice_value_output (gint col, gint line, gint value, GList *choices)
 display the value of an optionchoice widget


Detailed Description

gitk text renderer widget : optionchoice

Id
gitkrwoptionchoice.c,v 1.27 2004/06/30 16:53:02 ensonic Exp

Author:
Stefan Kost <ensonic@users.sf.net>
Date:
Thu Mar 7 15:47:38 2002

Definition in file gitk-renderer-text/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 205 of file gitk-renderer-text/widgets/gitkrwoptionchoice.c.

References gitkr_widget_optionchoice_free_list().

Referenced by gitkr_widget_optionchoice_output().

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 254 of file gitk-renderer-text/widgets/gitkrwoptionchoice.c.

References gitkr_widget_optionchoice_free_list().

Referenced by handle_dialog_ctrl_widgets().

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 261 of file gitk-renderer-text/widgets/gitkrwoptionchoice.c.

Referenced by gitkr_widget_optionchoice_free_choices(), and gitkr_widget_optionchoice_free_ids().

GList* gitkr_widget_optionchoice_get_choices GitkrTextWidgetPtr  widget  ) 
 

get the choices of an optionchoice widget

Definition at line 171 of file gitk-renderer-text/widgets/gitkrwoptionchoice.c.

References GitkrTextWidget::dialog, gitk_err, GITK_NS_PREFIX, gitk_xpath_type_filter(), GitkrTextWidgetPtr, and GitkrTextWidget::id.

Referenced by gitkr_widget_optionchoice_handle(), gitkr_widget_optionchoice_new(), and gitkr_widget_optionchoice_output().

Here is the call graph for this function:

GList* gitkr_widget_optionchoice_get_ids GitkrTextWidgetPtr  widget  ) 
 

get the ids of an optionchoice widget

Definition at line 223 of file gitk-renderer-text/widgets/gitkrwoptionchoice.c.

References GitkrTextWidget::dialog, gitk_err, GITK_NS_PREFIX, gitk_xpath_type_filter(), GitkrTextWidgetPtr, and GitkrTextWidget::id.

Referenced by handle_dialog_ctrl_widgets().

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 210 of file gitk-renderer-text/widgets/gitkrwoptionchoice.c.

Referenced by gitkr_widget_optionchoice_handle().

gboolean gitkr_widget_optionchoice_handle GitkrTextWidgetPtr  widget,
gint  line
 

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 54 of file gitk-renderer-text/widgets/gitkrwoptionchoice.c.

References GitkrTextWidget::dialog, ftinfo, gitkr_event_loop_getkey(), gitkr_widget_get_value(), gitkr_widget_optionchoice_get_choices(), gitkr_widget_optionchoice_get_position(), gitkr_widget_output_pre(), gitkr_widget_set_value(), GitkrTextWidgetPtr, GitkrTextWidget::id, KEY_F10, KEY_RETURN, GitkrTextWidget::label, GitkrTextWidget::output, and run.

Here is the call graph for this function:

void gitkr_widget_optionchoice_new GitkrTextWidgetPtr  widget,
GitkDialogPtr  dialog,
xmlNodePtr  node
 

create a new optionchoice widget

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

References GITK_WIDGET_TYPE_OPTIONCHOICE, GitkDialogPtr, gitkr_widget_new(), gitkr_widget_optionchoice_handle(), gitkr_widget_optionchoice_output(), GitkrTextWidgetPtr, GitkrTextWidget::handle, GitkrTextWidget::icon, GitkrTextWidget::output, and GitkrTextWidget::type.

Referenced by gitkr_dialog_generate_dialog_widgets(), gitkr_dialog_generate_layout_walker(), and gitkr_dialog_generate_sequential_layout_build_page().

Here is the call graph for this function:

void gitkr_widget_optionchoice_output GitkrTextWidgetPtr  widget,
gint  line,
gboolean  active
 

display an optionchoice widget

Definition at line 27 of file gitk-renderer-text/widgets/gitkrwoptionchoice.c.

References GitkrTextWidget::dialog, ftinfo, gitkr_widget_get_value(), gitkr_widget_optionchoice_free_choices(), gitkr_widget_optionchoice_get_choices(), gitkr_widget_optionchoice_value_output(), gitkr_widget_output_post(), gitkr_widget_output_pre(), GitkrTextWidgetPtr, GitkrTextWidget::id, and GitkrTextWidget::label.

Here is the call graph for this function:

gint gitkr_widget_optionchoice_value_output gint  col,
gint  line,
gint  value,
GList *  choices
 

display the value of an optionchoice widget

Todo:
handle col>COLS-1

Definition at line 144 of file gitk-renderer-text/widgets/gitkrwoptionchoice.c.

Referenced by gitkr_widget_optionchoice_output().


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