/[xlog]/xlog/src/types.h
ViewVC logotype

Diff of /xlog/src/types.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by pa4tu, Thu Nov 21 19:36:43 2002 UTC revision 1.7 by pa4tu, Thu Nov 21 19:57:46 2002 UTC
# Line 25  Line 25 
25  #define _TYPES_H 1  #define _TYPES_H 1
26    
27  /* preferences saved to ~/.xlog/preferences */  /* preferences saved to ~/.xlog/preferences */
28  typedef struct {  typedef struct
29          gchar *version;  {
30          gint x;    gchar *version;
31          gint y;    gint x;
32          gint width;    gint y;
33          gint height;    gint width;
34          gdouble latitude;    gint height;
35          gint NS;    gdouble latitude;
36          gdouble longitude;    gint NS;
37          gint EW;    gdouble longitude;
38          gint units; /* kilometers or nautical miles */    gint EW;
39          gchar *modes;    gint units;                   /* kilometers or nautical miles */
40          gchar *bands;    gchar *modes;
41          gint bandseditbox; /* optionmenu or entry for bands? */    gchar *bands;
42          gint modeseditbox; /* optionmenu or entry modes? */    gint bandseditbox;            /* optionmenu or entry for bands? */
43          gint printall;    gint modeseditbox;            /* optionmenu or entry modes? */
44          gint printsize;    gint printall;
45          gint printpoint;    gint printsize;
46          gint printstyle;    gint printpoint;
47          gint printdestination;    gint printstyle;
48          gint hamlib; /* hamlib enabled? 0 = no, 1 = yes, 2 = display freq on statusbar */    gint printdestination;
49          gchar *radio; /* what type of radio do you use? */    gint hamlib;                  /* hamlib enabled? 0 = no, 1 = yes, 2 = display freq on statusbar */
50          gchar *device; /* which serial port does it use? */    gchar *radio;                 /* what type of radio do you use? */
51          gint round; /* how many digits to round to */    gchar *device;                /* which serial port does it use? */
52          gint clock; /* clock on the statusbar? */    gint round;                   /* how many digits to round to */
53          gchar *themecolor;    gint clock;                   /* clock on the statusbar? */
54          gchar *themefont;    gchar *themecolor;
55          gint logcolor; /* do we want to color the log? */    gchar *themefont;
56          gint autosave;    gint logcolor;                /* do we want to color the log? */
57          gchar *savedir;    gint autosave;
58          gchar *logstoload;    gchar *savedir;
59          gchar *locator;    gchar *logstoload;
60          gchar *freefield1;    gchar *locator;
61          gchar *freefield2;    gchar *freefield1;
62          gchar *callsign;    gchar *freefield2;
63          gchar *defaultmhz;    gchar *callsign;
64          gchar *defaultmode;    gchar *defaultmhz;
65          gchar *defaulttxrst;    gchar *defaultmode;
66          gchar *defaultrxrst;    gchar *defaulttxrst;
67          gchar *defaultpower;    gchar *defaultrxrst;
68          gchar *defaultfreefield1;    gchar *defaultpower;
69          gchar *defaultfreefield2;    gchar *defaultfreefield1;
70          gchar *defaultremarks;    gchar *defaultfreefield2;
71  } preferencestype;    gchar *defaultremarks;
72    }
73    preferencestype;
74    
75  /* structure used for program state */  /* structure used for program state */
76  typedef struct {  typedef struct
77          gint minorversion;  {
78          gint majorversion;    gint minorversion;
79          gchar *mylocation;      /* latitude and longitude */    gint majorversion;
80          gint countries;         /* number of countries loaded */    gchar *mylocation;            /* latitude and longitude */
81          gint qsos;              /* number of qso's read from the logs */    gint countries;               /* number of countries loaded */
82          gint prefixes;          /* number of prefixes loaded */    gint qsos;                    /* number of qso's read from the logs */
83          gboolean controlkey;    /* control key is pressed */    gint prefixes;                /* number of prefixes loaded */
84          long long rigfrequency; /* frequency read from the rig */    gboolean controlkey;          /* control key is pressed */
85          guint rigmode;          /* mode read from the rig */    long long rigfrequency;       /* frequency read from the rig */
86          gchar *rigrst;          /* signal strength read from rig */    guint rigmode;                /* mode read from the rig */
87          gint rigpower;          /* rf power */    gchar *rigrst;                /* signal strength read from rig */
88          gint scounter;          /* counter for s-levels stored in array */    gint rigpower;                /* rf power */
89          gint hlcounter;         /* counter for hamlib */    gint scounter;                /* counter for s-levels stored in array */
90          gboolean tx;            /* transmitting or receiving */    gint hlcounter;               /* counter for hamlib */
91          gboolean statustimer;   /* 'ready' timer for the statusbar */    gboolean tx;                  /* transmitting or receiving */
92          gint shmid;             /* id for shared memory */    gboolean statustimer;         /* 'ready' timer for the statusbar */
93          gint logwindows;        /* number of logwindows */    gint shmid;                   /* id for shared memory */
94          gint searchqso;         /* qso number found */    gint logwindows;              /* number of logwindows */
95          gint searchlog;                 /* log currently searched */    gint searchqso;               /* qso number found */
96          gint dupecheck;                 /* dupe check this log or all logs */    gint searchlog;               /* log currently searched */
97          gboolean notdupecheckmode;      /* exclude bands from dupecheck */    gint dupecheck;               /* dupe check this log or all logs */
98          gboolean notdupecheckband;      /* exclude modes from dupecheck */    gboolean notdupecheckmode;    /* exclude bands from dupecheck */
99  } statetype;    gboolean notdupecheckband;    /* exclude modes from dupecheck */
100    }
101    statetype;
102    
103  /* struct for remote data state */  /* struct for remote data state */
104  typedef struct {  typedef struct
105          gint version;  {
106          gchar *program;    gint version;
107          gint nr;    gchar *program;
108  } remotetype;    gint nr;
109    }
110    remotetype;
111    
112  /* struct for the message queue */  /* struct for the message queue */
113  typedef struct {  typedef struct
114          glong mtype;  {
115          gchar mtext[1024];    glong mtype;
116  } msgtype;    gchar mtext[1024];
117    }
118    msgtype;
119    
120  /* struct for dxcc information from cty.dat */  /* struct for dxcc information from cty.dat */
121  typedef struct {  typedef struct
122    {
123    gchar *countryname;    gchar *countryname;
124    gint waz;    gint waz;
125    gint itu;    gint itu;
126    gchar *exceptions;    gchar *exceptions;
127  } dxcc_data;  }
128    dxcc_data;
129    
130    
131  #define QSO_FIELDS 18  #define QSO_FIELDS 18

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26