A
download gitkrincludes.h
Language: C
LOC: 81
Project Info
GITK - Generalized Interface Toolkit(gitk)
Server: SourceForge
Type: cvs
...k\gitk\gitk‑renderer‑phone\
   autogen.sh
   config.h.in
   configure.in
   gitkr-phoneConf.sh.in
   gitkrdefines.h
   gitkrdone.c
   gitkrdone.h
   gitkreventloop.c
   gitkreventloop.h
   gitkrglobal.c
   gitkrglobal.h
   gitkrhideshow.c
   gitkrhideshow.h
   gitkrincludes.h
   gitkrinfo.c
   gitkrinfo.h
   gitkrinit.c
   gitkrinit.h
   gitkrlayout.c
   gitkrlayout.h
   gitkrrenderer.c
   gitkrrenderer.h
   gitkrtools.c
   gitkrtools.h
   Makefile.am

/** $Id: gitkrincludes.h,v 1.8 2004/06/08 10:30:49 sast Exp $
 *
 * @file   gitk-renderer-phone/gitkrincludes.h
 * @author Steffen Ast <sast@users.sf.net>
 * @date   Thu Oct 09 09:43:54 2003
 * 
 * @brief  gitk renderer local includes
 * @ingroup gitkrendererphone
 * 
 */
 
#ifndef GITKR_INCLUDES_H
#define GITKR_INCLUDES_H

//-- global includes -----------------------------------------------------------

#include "config.h"
#include <libgitk/gitk.h>

#include <stdlib.h>

#include <ctype.h>
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include <curses.h>

#if HAVE_TERMIOS_H
	#include <termios.h>
#else
	#include <sgtty.h>
#endif

#if !defined(sun) || !defined(HAVE_TERMIOS_H)
	#if HAVE_SYS_IOCTL_H
		#include <sys/ioctl.h>
		#endif
#endif


/* This is needed to compile 'struct winsize' */
#if HAVE_SYS_STREAM_H
	#include <sys/stream.h>
#endif
#if HAVE_SYS_PTEM_H
	#include <sys/ptem.h>
#endif

#ifdef HAVE_SPEECH
#include "speech/festival/festival.h"
#endif

#include "capi/alaw_pcm.h"
#include "capi/tel_keyboard.h"
#include "capi/capi.h"

//-- general widget structure --------------------------------------------------

/** @brief gitkr phone mode widget */
typedef struct GitkrPhoneWidget GitkrPhoneWidget;
/** @brief pointer to gitkr phone mode widget */
typedef GitkrPhoneWidget *GitkrPhoneWidgetPtr;
/** @brief output (display,speak) the widget */
typedef void (*GitkrWidgetOutputPtr)(GitkrPhoneWidgetPtr widget,gboolean active);
/** @brief process widget invokation */
typedef gboolean (*GitkrWidgetHandlePtr)(GitkrPhoneWidgetPtr widget);
/** @brief general gitkr phone widget
 * @see gitk.h, GitkWidget
 */
struct GitkrPhoneWidget {
  GitkWidgetFields
  gchar *label; /**< @brief display label */
  gchar *value; /**< @brief hold value */
  gint display_attrs; /**< @brief display attributes */
  gint input_type; /**< @brief which type of input model may used */
  
  GitkrWidgetOutputPtr output; /**< @brief display widget */
  GitkrWidgetHandlePtr handle; /**< @brief process widget invokation */
};

//-- layout structure ----------------------------------------------------------

/** @brief gitkr Phone mode layout page */
typedef struct GitkrPhoneLayoutPage GitkrPhoneLayoutPage;
/** @brief pointer to gitkr Phone mode layout page */
typedef GitkrPhoneLayoutPage *GitkrPhoneLayoutPagePtr;
/** @brief gitkr Phone mode layout page */
struct GitkrPhoneLayoutPage {
	GitkrPhoneWidgetPtr widgets; /**< @brief dialog widgets */
	gint widgetsPerPage; /**< @brief number of widgets on this dialog page */
	gchar *title;	/**< @brief the page-title (from the label of the widgetgroup) */
};

/** @brief gitkr phone layout */
typedef struct GitkrPhoneLayout GitkrPhoneLayout;
/** @brief pointer to gitkr phone layout */
typedef GitkrPhoneLayout *GitkrPhoneLayoutPtr;
/** @brief gitkr phone layout
 * @see gitk.h, GitkLayout
 */
struct GitkrPhoneLayout {
  GitkLayoutFields
  gint currentPage;	/**< @brief page index for member pages */
  gint numberOfPages;	/**< @brief number of pages in one dialog */
  gint currentWidget;	/**< @brief index number of the current active widget */
  gint maxWidgetsPerPage;	/**< @brief maximum number of widgets on one page */
  GitkrPhoneLayoutPagePtr pages;	/**< @brief pointer to the separate pages of this dialog */
  GitkrPhoneLayoutPage ctrl; /**< @brief dialog ctrl widgets (such as okay, cancel) */
};

/** @brief currentWidget special value */
#define GITKR_TEXT_NAVIGATION -1

//-- local includes ------------------------------------------------------------

#include "gitkrdone.h"
#include "gitkrdefines.h"
#include "gitkrglobal.h"
#include "gitkreventloop.h"
#include "gitkrrenderer.h"
#include "gitkrhideshow.h"
#include "gitkrlayout.h"
#include "gitkrtools.h"
#include "gitkrinit.h"

#include "widgets/gitkrw.h"

#include "widgets/gitkrwaction.h"

#include "widgets/gitkrwcharacterinput.h"
#include "widgets/gitkrwcharacterinputalphabetic.h"

#include "widgets/gitkrwoptionchoice.h"
#include "widgets/gitkrwoptionchoiceboolean.h"

#include "widgets/gitkrwlabel.h"

#endif /* GITKR_INCLUDES_H */

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us