gitkrincludes.h

Go to the documentation of this file.
00001 
00012 #ifndef GITKR_INCLUDES_H
00013 #define GITKR_INCLUDES_H
00014 
00015 //-- global includes -----------------------------------------------------------
00016 
00017 #include "config.h"
00018 #include <libgitk/gitk.h>
00019 
00020 #include <stdlib.h>
00021 
00022 #include <ctype.h>
00023 #include <errno.h>
00024 #include <signal.h>
00025 #include <unistd.h>
00026 #include <curses.h>
00027 
00028 #if HAVE_TERMIOS_H
00029   #include <termios.h>
00030 #else
00031   #include <sgtty.h>
00032 #endif
00033 
00034 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
00035   #if HAVE_SYS_IOCTL_H
00036     #include <sys/ioctl.h>
00037     #endif
00038 #endif
00039 
00040 
00041 /* This is needed to compile 'struct winsize' */
00042 #if HAVE_SYS_STREAM_H
00043   #include <sys/stream.h>
00044 #endif
00045 #if HAVE_SYS_PTEM_H
00046   #include <sys/ptem.h>
00047 #endif
00048 
00049 #ifdef HAVE_SPEECH
00050 #include "speech/festival/festival.h"
00051 #endif
00052 
00053 #include "capi/alaw_pcm.h"
00054 #include "capi/tel_keyboard.h"
00055 #include "capi/capi.h"
00056 
00057 //-- general widget structure --------------------------------------------------
00058 
00060 typedef struct GitkrPhoneWidget GitkrPhoneWidget;
00062 typedef GitkrPhoneWidget *GitkrPhoneWidgetPtr;
00064 typedef void (*GitkrWidgetOutputPtr)(GitkrPhoneWidgetPtr widget,gboolean active);
00066 typedef gboolean (*GitkrWidgetHandlePtr)(GitkrPhoneWidgetPtr widget);
00070 struct GitkrPhoneWidget {
00071   GitkWidgetFields
00072   gchar *label; 
00073   gchar *value; 
00074   gint display_attrs; 
00075   gint input_type; 
00077   GitkrWidgetOutputPtr output; 
00078   GitkrWidgetHandlePtr handle; 
00079 };
00080 
00081 //-- layout structure ----------------------------------------------------------
00082 
00084 typedef struct GitkrPhoneLayoutPage GitkrPhoneLayoutPage;
00086 typedef GitkrPhoneLayoutPage *GitkrPhoneLayoutPagePtr;
00088 struct GitkrPhoneLayoutPage {
00089   GitkrPhoneWidgetPtr widgets; 
00090   gint widgetsPerPage; 
00091   gchar *title; 
00092 };
00093 
00095 typedef struct GitkrPhoneLayout GitkrPhoneLayout;
00097 typedef GitkrPhoneLayout *GitkrPhoneLayoutPtr;
00101 struct GitkrPhoneLayout {
00102   GitkLayoutFields
00103   gint currentPage; 
00104   gint numberOfPages; 
00105   gint currentWidget; 
00106   gint maxWidgetsPerPage; 
00107   GitkrPhoneLayoutPagePtr pages;  
00108   GitkrPhoneLayoutPage ctrl; 
00109 };
00110 
00112 #define GITKR_TEXT_NAVIGATION -1
00113 
00114 //-- local includes ------------------------------------------------------------
00115 
00116 #include "gitkrdone.h"
00117 #include "gitkrdefines.h"
00118 #include "gitkrglobal.h"
00119 #include "gitkreventloop.h"
00120 #include "gitkrrenderer.h"
00121 #include "gitkrhideshow.h"
00122 #include "gitkrlayout.h"
00123 #include "gitkrtools.h"
00124 #include "gitkrinit.h"
00125 
00126 #include "widgets/gitkrw.h"
00127 
00128 #include "widgets/gitkrwaction.h"
00129 
00130 #include "widgets/gitkrwcharacterinput.h"
00131 #include "widgets/gitkrwcharacterinputalphabetic.h"
00132 
00133 #include "widgets/gitkrwoptionchoice.h"
00134 #include "widgets/gitkrwoptionchoiceboolean.h"
00135 
00136 #include "widgets/gitkrwlabel.h"
00137 
00138 #endif /* GITKR_INCLUDES_H */

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