Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for tucniak/cuchar/cc.h between version 1.3 and 1.4

version 1.3, 2005/12/01 18:52:28 version 1.4, 2005/12/08 21:13:03
Line 5 
Line 5 
 */  */
 // modified by Juraj Kolesar <koli@koli.sk>  // modified by Juraj Kolesar <koli@koli.sk>
   
 #include <curses.h>   //of course we have to include curses library  #include <curses.h>   // of course we have to include curses library
 #include <glib.h>   //we use glib dynamic structures GList and GSList to store menu and table items  #include <glib.h>   // we use glib dynamic structures GList and GSList to store
                       // menu, list and table items
   
 //and of course we use a lot of other standard libraries  //and of course we use a lot of other standard libraries
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <sys/timeb.h>  #include <sys/timeb.h>
 #include <sys/ioctl.h>  #include <sys/ioctl.h>
   #include <signal.h>
 #include <gpm.h>  #include <gpm.h>
 #include <pthread.h>  #include <pthread.h>
   
Line 46 
Line 48 
 #define MIN_FOB_VX 23  #define MIN_FOB_VX 23
 #define MIN_FOB_VY 13  #define MIN_FOB_VY 13
   
   #define TIMER_GRANULATE 1000000   // nanoseconds
   
 #define LUCORN 0  #define LUCORN 0
 #define LDCORN 1  #define LDCORN 1
 #define RUCORN 2  #define RUCORN 2
Line 148  typedef struct _COMBO{ /* {{{ COMBO BOX
Line 152  typedef struct _COMBO{ /* {{{ COMBO BOX
   char pushed;    char pushed;
   void (*change)();    void (*change)();
   long maxvisitems;    long maxvisitems;
   struct _WIN *list,    struct _Cc_Win *list,
               *edit;                *edit;
   GList *activeitem;    GList *activeitem;
 }COMBO; /* }}} */  }COMBO; /* }}} */
Line 166  typedef struct _LIST{ /* {{{ LIST BOX **
Line 170  typedef struct _LIST{ /* {{{ LIST BOX **
   GList *lines;    GList *lines;
   void (*change)();    void (*change)();
   void (*dblclk)();    void (*dblclk)();
   struct _WIN *hscroll,    struct _Cc_Win *hscroll,
               *vscroll;                *vscroll;
   struct _WIN *hfade,    struct _Cc_Win *hfade,
               *vfade;                *vfade;
   char exvscroll,    char exvscroll,
        exhscroll;         exhscroll;
Line 208  typedef struct _MENU{ /* {{{ MENU ******
Line 212  typedef struct _MENU{ /* {{{ MENU ******
   void (*change)();    void (*change)();
   void (*select)();    void (*select)();
   bool vert;    bool vert;
   struct _WIN *hfade,    struct _Cc_Win *hfade,
               *vfade;                *vfade;
 }MENU; /* }}} */  }MENU; /* }}} */
 typedef struct _DIALOG{ /* {{{ DIALOG **************************************/  typedef struct _DIALOG{ /* {{{ DIALOG **************************************/
Line 220  typedef struct _DIALOG{ /* {{{ DIALOG **
Line 224  typedef struct _DIALOG{ /* {{{ DIALOG **
        tmpy,         tmpy,
        tmpvx,         tmpvx,
        tmpvy;         tmpvy;
   struct _WIN *bclose,    struct _Cc_Win *bclose,
               *bmaximize,                *bmaximize,
               *bminimize;                *bminimize;
   struct _WIN *menu;    struct _Cc_Win *menu;
   struct _WIN *hfade,    struct _Cc_Win *hfade,
               *vfade;                *vfade;
   long cbactive,    long cbactive,
        cbinactive;         cbinactive;
Line 250  typedef union _UNION{ /* {{{ UNION *****
Line 254  typedef union _UNION{ /* {{{ UNION *****
   DIALOG dialog;    DIALOG dialog;
   FADE fade;    FADE fade;
 }UNION; /* }}} */  }UNION; /* }}} */
 typedef struct _WIN{ /* {{{ WINDOW *****************************************/  typedef struct _Cc_Win{ /* {{{ WIN *****************************************/
   struct _WIN *next,    struct _Cc_Win *next,
               *parent,                *parent,
               *child,                *child,
               *childend,                *childend,
Line 277  typedef struct _WIN{ /* {{{ WINDOW *****
Line 281  typedef struct _WIN{ /* {{{ WINDOW *****
   UNION *extra;    UNION *extra;
   char stat;    char stat;
   void *user;    void *user;
 }WIN;  }Cc_Win;
 #define __WIN /* }}} */  #define __Cc_Win /* }}} */
 typedef struct _TIMER{ /* {{{ TIMER */  typedef struct _Cc_Timer{ /* {{{ TIMER */
   struct _TIMER *next;    struct _Cc_Timer *next;
   WIN *win;    Cc_Win *win;
   long period;    long period;
   long tminus;    long tminus;
   long prior;    long prior;
   void (*timer)();    void (*timer)();
 }TIMER;  }Cc_Timer;
 #define __TIMER /* }}} */  #define __Cc_Timer /* }}} */
  /* }}} */   /* }}} */
   
 #include "share/cuchar.h"  #include "share/cuchar.h"

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top