gitkreventloop.c File Reference

gitk renderer event loop More...

#include "gitkrincludes.h"

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

Include dependency graph

Go to the source code of this file.

Functions

void gitkr_event_loop_end (void)
 terminates the event-loop

gint gitkr_event_loop_getkey (void)
 read a keycode from keyboard

void gitkr_event_loop_restart (void)
 terminates the event-loop so that it will be restarted after relayouting the dialogs

void gitkr_event_loop_start (void)
 curses based event-loop

void gitkr_welcome_help ()
void handle_dialog_ctrl_widgets (GitkrPhoneLayoutPtr layout)
 run the event loop for the dialog control widgets

void handle_dialog_main_widgets (GitkrPhoneLayoutPtr layout)
 run the event loop for the main dialog widgets

void next_page (GitkrPhoneLayoutPtr layout)
 switch to next page

void next_widget (GitkrPhoneLayoutPtr layout)
 switch to next widget

void prev_page (GitkrPhoneLayoutPtr layout)
 switch to previous page

void prev_widget (GitkrPhoneLayoutPtr layout)
 switch to previous widget


Variables

GitkDialogPtr cur_context
 current context, show all contexts of highest priority if NULL or use one if there is only one


Detailed Description

gitk renderer event loop

Id
gitkreventloop.c,v 1.7 2004/08/31 17:42:01 ensonic Exp

Author:
Steffen Ast <sast@users.sf.net>
Date:
Thu Oct 09 09:43:54 2003

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


Function Documentation

gint gitkr_event_loop_getkey void   ) 
 

read a keycode from keyboard

Todo:
sleep a bit

Definition at line 419 of file gitk-renderer-phone/gitkreventloop.c.

References gitk_log_intro, gitk_log_outro, and run.

Referenced by capi_dtmf_input_text(), gitkr_widget_characterinput_handle(), gitkr_widget_optionchoice_handle(), and handle_dialog_main_widgets().

void handle_dialog_ctrl_widgets GitkrPhoneLayoutPtr  layout  ) 
 

run the event loop for the dialog control widgets

Parameters:
layout the layout handle of the displayed dialog

Definition at line 371 of file gitk-renderer-phone/gitkreventloop.c.

References _, capi_text_output(), capiinfo, GitkrPhoneLayout::ctrl, cur_context, GitkrPhoneLayout::currentWidget, GitkEvent::data, GitkrPhoneWidget::dialog, ftinfo, gitk_dialog_process_event(), GITK_EVENT_TYPE_ON_CLICKED, gitk_log1, gitk_log_intro, gitk_log_outro, gitkr_dialog_output_layout(), GITKR_TEXT_NAVIGATION, gitkr_widget_get_value(), gitkr_widget_optionchoice_free_ids(), gitkr_widget_optionchoice_get_ids(), GitkrPhoneLayoutPtr, GitkrPhoneWidgetPtr, GitkrPhoneWidget::handle, GitkrPhoneWidget::id, next_page(), prev_page(), run, GitkEvent::type, and GitkrPhoneLayoutPage::widgets.

Here is the call graph for this function:

void handle_dialog_main_widgets GitkrPhoneLayoutPtr  layout  ) 
 

run the event loop for the main dialog widgets

Parameters:
layout the layout handle of the displayed dialog

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

References _, capi_dtmf_input_arrow(), capi_text_output(), capiinfo, cur_context, GitkEvent::data, GitkrPhoneWidget::dialog, ftinfo, gitk_dialog_process_event(), GITK_EVENT_TYPE_ON_CHANGED, GITK_EVENT_TYPE_ON_CLICKED, GITK_EVENT_TYPE_ON_CLOSE, gitk_log1, gitk_log2, gitk_log3, gitk_log_intro, GITK_WIDGET_TYPE_ACTION, GITK_WIDGET_TYPE_CHARACTERINPUT, GITK_WIDGET_TYPE_CHARACTERINPUT_ALPHABETIC, GITK_WIDGET_TYPE_OPTIONCHOICE, GITK_WIDGET_TYPE_OPTIONCHOICE_BOOLEAN, GITK_WIDGET_TYPE_OPTIONCHOICE_SINGLE, GITK_WIDGET_TYPE_OPTIONCHOICE_SINGLE_COMPACT, gitkr_dialog_output_layout(), gitkr_event_loop_getkey(), gitkr_layout_get_current_widget(), GitkrPhoneLayoutPtr, GitkrPhoneWidgetPtr, GitkrPhoneWidget::handle, handle_dialog_ctrl_widgets(), GitkrPhoneWidget::id, KEYCODE_TO_ASCII, next_page(), next_widget(), prev_page(), prev_widget(), run, GitkrPhoneWidget::type, and GitkEvent::type.

Here is the call graph for this function:

void next_page GitkrPhoneLayoutPtr  layout  ) 
 

switch to next page

Definition at line 142 of file gitk-renderer-phone/gitkreventloop.c.

References capi_sound_beep(), capiinfo, GitkrPhoneLayout::currentPage, GitkrPhoneLayout::currentWidget, ftinfo, GitkrPhoneLayoutPtr, and GitkrPhoneLayout::numberOfPages.

Here is the call graph for this function:

void next_widget GitkrPhoneLayoutPtr  layout  ) 
 

switch to next widget

Definition at line 105 of file gitk-renderer-phone/gitkreventloop.c.

References GitkrPhoneLayout::currentPage, GitkrPhoneLayout::currentWidget, gitk_dialog_move_focus(), GitkrPhoneLayoutPtr, GitkrPhoneWidgetPtr, GitkWidgetPtr, GitkrPhoneLayout::pages, GitkrPhoneLayoutPage::widgets, and GitkrPhoneLayoutPage::widgetsPerPage.

Here is the call graph for this function:

void prev_page GitkrPhoneLayoutPtr  layout  ) 
 

switch to previous page

Definition at line 154 of file gitk-renderer-phone/gitkreventloop.c.

References capi_sound_beep(), capiinfo, GitkrPhoneLayout::currentPage, GitkrPhoneLayout::currentWidget, ftinfo, and GitkrPhoneLayoutPtr.

Here is the call graph for this function:

void prev_widget GitkrPhoneLayoutPtr  layout  ) 
 

switch to previous widget

Definition at line 123 of file gitk-renderer-phone/gitkreventloop.c.

References GitkrPhoneLayout::currentPage, GitkrPhoneLayout::currentWidget, gitk_dialog_move_focus(), GitkrPhoneLayoutPtr, GitkrPhoneWidgetPtr, GitkWidgetPtr, GitkrPhoneLayout::pages, GitkrPhoneLayoutPage::widgets, and GitkrPhoneLayoutPage::widgetsPerPage.

Here is the call graph for this function:


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