home *** CD-ROM | disk | FTP | other *** search
- /* Bilanz.h */
-
- #include <intuition/intuition.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <clib/graphics_protos.h>
- #include "Bilanz_protos.h"
-
- #define PATH "Daten/" /* path for data */
- #define FILENAME "Bilanz" /* default filename */
- #define PRTNAME "PRT:" /* outputname for printing */
- #define MAXLINE 15 /* number of entries on screen */
- #define FILTER 7 /* number of filters */
- #define INS 1 /* insert-modus for input */
- #define OVR 0 /* overwrite-modus for input */
-
- unsigned char
- file[120], /* argument from start */
- filename[200],
- stopRead[] = {13,27,1,4,0}, /* chars for stopping input;
- see procedure ReadText */
- filterflag[FILTER], /* flag, if filter on or off */
- prtname[71]; /* print to "PRT:" (default) */
-
- struct Entry {
- unsigned char area[21], title[41], date;
- long costs;
- struct Entry *next;
- };
-
- struct Month {
- long income, expend;
- short number; /* number of entries */
- struct Entry *first;
- };
-
- struct Year {
- short year;
- long income, expend;
- struct Month month[13]; /* 0..12 : 0 isn't used */
- struct Year *next;
- unsigned char filtername[FILTER][10], filtertext[FILTER][21];
- } *year, *firstyear;
-
- struct Time {
- short hour, min, sec, day, month, year;
- unsigned char weekday[11];
- } time;
-
- short curmonth, curyear,/* month/year of showed entries */
- count, /* start of output */
- counter, /* for timer */
- status, /* for timer */
- modus, /* of output */
- entrygadgets, /* 0 = off, 1 = on */
- include, /* = 1 show filter; = 0 show all except filter */
- filter, /* bits for filter */
- number, /* of filtered entries */
- changeflag; /* set if entries changed */
- long yearincome, yearexpend,
- monthincome, monthexpend; /* of filtered entries */
-
- unsigned char Weekday[7][3] = {
- "So","Mo","Di","Mi","Do","Fr","Sa" };
-
- unsigned char Monthname[13][4] = { " ",
- "Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez" };
-
- ULONG class;
- USHORT code, qualifier;
- APTR adr;
-
- struct IntuiMessage *message;
- struct Window *win;
- struct RastPort *RP;
- struct ViewPort *VP;
-