home *** CD-ROM | disk | FTP | other *** search
- /* Definitionsdatei fuer Macros kiwilib 07.90 JF
- Modul fuer MS C 5.x Turbo C 2.0 */
-
-
- #define KIWI_INC_IN
- #define BS_X_NORM 80
- #define BS_Y_NORM 25
- #define BS_X_SMALL 40
- #define BS_X_EXT 132
- #define BS_Y_EXT 65
-
- #define MAX_COLOR 5
-
- #define SW_80x25 0x7
- #define C_40x25 0x1
- #define C_80x25 0x3
- #define C_132x25 0x23
- #define C_132x44 0x22
- #define C_80x65 0x26
- #define C_43_50 0x64
-
-
- #define DATEI_NAME_LEN 13
- #define DATEI_PFAD_LEN 51
- #define DATEI_PFAD_NAME_LEN DATEI_NAME_LEN+DATEI_PFAD_LEN
-
- #define MAX_WINDOWS 20
- #define VSCHWARZ 0
- #define HSCHWARZ 0
- #define VBLAU 1
- #define VGRUEN 2
- #define VROT 4
- #define INTENS 8
- #define HBLAU 16
- #define HGRUEN 32
- #define HROT 64
- #define BLINK 128
-
- #define VGRAU (INTENS)
- #define VWEIS (VROT | VBLAU | VGRUEN)
- #define VTUERKIS (VGRUEN | VBLAU)
- #define VMAGENTA (VROT | VBLAU)
- #define VBRAUN (VROT | VGRUEN)
- #define VHELLBLAU (INTENS | VBLAU)
- #define VHELLGRUEN (INTENS | VGRUEN)
- #define VHELLROT (INTENS | VROT)
- #define VHELLMAGENTA (INTENS | VROT | VBLAU)
- #define VGELB (INTENS | VROT | VGRUEN)
- #define VHELLWEIS (INTENS | VROT | VGRUEN | VBLAU)
-
- #define HTUERKIS (HGRUEN | HBLAU)
- #define HMAGENTA (HROT | HBLAU)
- #define HBRAUN (HROT | HGRUEN)
- #define HWEIS (HROT | HGRUEN | HBLAU)
- #define SHADOW (VWEIS | HSCHWARZ)
-
- #define LEER 32
- #define MUSTER 178
-
- #define CURSOR_OBEN 0
- #define CURSOR_UNTEN 1
- #define CURSOR_VOLL 2
- #define CURSOR_WEG 3
-
-
- #define DIREKT 0
- #define BIOS 1
- #define STANDARD 2
- #define MINUS 3
- #define STRICHLI 4
-
- #define KEIN_RAND 0
- #define EINFACH 1
- #define DOPPELT 2
-
- #define SCROLL_HOCH 1
- #define SCROLL_RUNTER 2
- #define SCROLL_LINKS 3
- #define SCROLL_RECHTS 4
- #define HOCH 1
- #define HOCH_RECHTS 2
- #define RECHTS 3
- #define RUNTER_RECHTS 4
- #define RUNTER 5
- #define RUNTER_LINKS 6
- #define LINKS 7
- #define HOCH_LINKS 8
-
-
- #define STANDARD_ATTRIBUT 0
- #define FENSTER_ATTRIBUT 1
- #define NORM_COL 0
- #define INV_COL 1
- #define FLIP 2
- #define STAT_COL 3
-
- #define HORIZONTAL 0
- #define VERTIKAL 1
-
- #define OFF 0
- #define ON 1
- #define STATUS 2
- #define ROW_WISE 3
- #define EXPLODE 4
-
- #define RIGHT_HAND 3
- #define LEFT_HAND 4
-
- #define AL -3
- #define AR -2
- #define AM -1
-
- #define JA 1
- #define NEIN 0
- #define ESCAPE -1
- #define TRUE 1
- #define FALSE 0
-
-
- #define EDIT_EXIT_TASTEND 0
- #define EDIT_PIEPS_TASTEND 1
- #define EDIT_EXIT_CUREND 2
- #define EDIT_PIEPS_CUREND 3
- #define EDIT_EXIT_CURSTART 4
- #define EDIT_PIEPS_CURSTART 5
- #define EDIT_CURSOR_START 6
- #define EDIT_CURSOR_OLD 7
- #define EDIT_ALPHA_OFF 8
- #define EDIT_ALPHA_ON 9
- #define EDIT_NUMERI_OFF 10
- #define EDIT_NUMERI_ON 11
- #define EDIT_CURSOR_OFF 12
- #define EDIT_CURSOR_ON 13
- #define EDIT_CURVERT_OFF 14
- #define EDIT_CURVERT_ON 15
- #define EDIT_BUFFER_ON 16
- #define EDIT_BUFFER_OFF 17
- #define EDIT_INSERT_ON 18
- #define EDIT_INSERT_OFF 19
- #define EDIT_NO_CASE 20
- #define EDIT_UPPER_ONLY 21
- #define EDIT_LOWER_ONLY 22
- #define EDIT_CLEAR_OFF 23
- #define EDIT_CLEAR_ON 24
- #define KW_COMP 25
- #define WS_COMP 26
- #define CTRL_Y_OFF 27
- #define CTRL_Y_ON 28
- #define TABS_OFF 29
- #define TABS_ON 30
-
-
-
- #define EDIT_ROW 0
- #define EDIT_FIELD 1
-
- #define PULL_DOWN 3
- #define POP_UP 4
- #define DOPPELKLICK 5
- #define LOESCH_WIN 6
- #define BEHALT_WIN 7
- #define NACH_MAUS 8
- #define FESTGELEGT 9
- #define COMMENT 10
- #define NO_COMMENT 11
- #define NUR_MENUE 12
- #define AUCH_MENUE 13
- #define OHNE_ESCAPE 14
- #define MIT_ESCAPE 15
- #define DSP_ON 16
- #define DSP_OFF 17
- #define STAT 18
- #define DYN 19
- #define BLOESCH_WIN 20
- #define BBEHALT_WIN 21
- #define MENU_HELP 22
- #define MENU_NO_HELP 23
- #define MENU_ENABLE_KEEP 24
- #define MENU_DISABLE_KEEP 25
-
-
-
-
- #define BELASSEN OFF
- #define LOESCHEN ON
- #define WEITER 3
- #define WARTE 4
- #define KEEP_FILE 8
- #define CLOSE_FILE 9
- #define WEITER_ON 10
- #define WEITER_OFF 11
- #define FORMATIERT 12
- #define UNFORMATIERT 13
-
- #define CHECK 0
- #define APPEND 1
-
- #define SHIFT_KEY 3
- #define CONTROL_KEY 4
- #define ALT_KEY 8
- #define FUNCTION_KEY 16
-
- #define INVERT_ALL 0
- #define INVERT_INPUT 1
- #define EXTRA_COL_ON 2
- #define EXTRA_COL_OFF 3
- #define RETURN_ON 4
- #define RETURN_OFF 5
- #define TOP_DOWN_ON 6
- #define TOP_DOWN_OFF 7
- #define BOOL_RET_ON 8
- #define BOOL_RET_OFF 9
-
-
- #define NUR_PUNKT 0
- #define MIT_RAND 1
-
-
- #define SHADOW_ON 1
- #define SHADOW_OFF 2
- #define KLICK_ON 3
- #define KLICK_OFF 4
- #define KIWI_MODE 5
- #define TURBO_MODE 6
- #define MICROSOFT 7
-
- #define GF_FILES 1
- #define GF_DIRS 2
- #define GF_DRIVES 4
-
-
- #define F1 (unsigned short)((FUNCTION_KEY<<8) | 1)
- #define F2 (unsigned short)((FUNCTION_KEY<<8) | 2)
- #define F3 (unsigned short)((FUNCTION_KEY<<8) | 3)
- #define F4 (unsigned short)((FUNCTION_KEY<<8) | 4)
- #define F5 (unsigned short)((FUNCTION_KEY<<8) | 5)
- #define F6 (unsigned short)((FUNCTION_KEY<<8) | 6)
- #define F7 (unsigned short)((FUNCTION_KEY<<8) | 7)
- #define F8 (unsigned short)((FUNCTION_KEY<<8) | 8)
- #define F9 (unsigned short)((FUNCTION_KEY<<8) | 9)
- #define F10 (unsigned short)((FUNCTION_KEY<<8) | 10)
- #define ALT_F3 (unsigned short)(((ALT_KEY | FUNCTION_KEY)<<8) | 3)
- #define ALT_F10 (unsigned short)(((ALT_KEY | FUNCTION_KEY)<<8) | 10)
- #define CTRL_F10 (unsigned short)(((CONTROL_KEY | FUNCTION_KEY)<<8) | 10)
- #define ALT_CTRL_F10 (unsigned short)(((ALT_KEY | CONTROL_KEY | FUNCTION_KEY)<<8) | 10)
- #define WINDOW_MOVE (unsigned short)(((ALT_KEY | CONTROL_KEY)<<8) | 87)
-
-
- #define KW_TYPEDEF
- typedef short WINDOW;
- typedef short VSCREEN;
- typedef unsigned short BOOLEAN;
-
- #define INT int
- #define SHORT short int
- #define CHAR char
- #define LONG long int
- #define FLOAT float
- typedef unsigned int UINT;
- typedef unsigned short USHORT;
- typedef unsigned char UCHAR;
- typedef unsigned long ULONG;
- typedef short RADIO;
-
-
- typedef struct datum_init{ /* Struct fuer Datum festlegen */
- unsigned short tag; /* Tag 2 Zeichen */
- unsigned short monat; /* Monat 2 Zeichen */
- unsigned short jahr; /* Jahr 4 Zeichen */
- }DATUM;
-
- typedef struct zeit_init{ /* Struct fuer Zeit festlegen */
- unsigned short int stunde; /* Stunde */
- unsigned short int minute; /* Minute */
- unsigned short int sekunde; /* Sekunde */
- unsigned short int zehntel; /* Zehntel */
- }ZEIT;
-
-
- typedef struct menu_data_init{
- UCHAR *name; /* Name */
- SHORT start; /* Suchzeichen */
- UCHAR aktiv; /* Aktives menue*/
- UCHAR *comment; /* Kommentar */
- }MENU;
-
- typedef struct pick_list_data{
- UCHAR *data; /* Pointer auf Data */
- UINT anzahl; /* Anzahl Items */
- UINT breite; /* Breite eines Items */
- UINT hoehe; /* Anzahl gleichzeitig */
- UINT auswahl; /* Anzahl gleichzeitig */
- }PICK_LIST;
-
- typedef struct ks_button_data{
- char flag[4]; /* Flagregister für Modus Gedrückt usw */
- int xa; /* Links oben */
- int ya; /* Links oben */
- int xe; /* Rechts unten */
- int ye; /* Rechts unten */
- int len; /* Länge des Titels */
- int start; /* Startcharacter */
- int shadow_len; /* Länge des Schattens */
- int win_xa; /* Window links oben */
- int win_ya; /* Window links oben */
- int att; /* Normal oder invers */
- CHAR *titel; /* Pointer auf Schalternamen */
- WINDOW win; /* Windowpointer */
- UINT *shadow; /* Pointer auf Schattenspeicher */
- }BUTTON;
-
-
- #define BUTTON_SIZE sizeof(struct ks_button_data)
-
-
-
-
-
-
-
- /*
- Dieser Struct wird vom einer Funktion aus der Procedure Table uebergeben,
- wenn diese Funktion durch den Screenmanager mittels scanf_mask
- aufgerufen wird. Er bietet die Moeglichkeit, Informationen ueber den
- zur Zeit in der Eingabe befindlichen Datenwert.
-
- Die Funktion, die von scanf_mask aufgerufen wird, sollte einen Pointer
- auf diesen Struct erwarten und vom Stack nehmen.
- */
-
- struct inter_func_com{
- void *ptr; /* Pointer auf value */
- int count; /* Nummer des Eintrags in ipp */
- WINDOW win; /* Windowhandle der Eingabe */
- };
-
-
-
-
- /*
- Dieser Struct wird vom einer Funktion über den Windowmanager bei Slidewindows,
- übergeben, wenn eine Grenze erreicht wird. Die Funktionen werden bei Aufruf
- des Slidewindows angegeben. Er ermöglicht die Kontrolle über das Windows und
- den Vs_Screen.
-
- */
-
- struct slide_func_com{
- WINDOW win; /* Windowhandle der Eingabe */
- VSCREEN vs; /* Screenhandle */
- UINT dir; /* Richtung der Bewegung SCROLL_HOCH,RECHTS usw */
- UINT step; /* Wert der Grenzüberschreitung */
- };
-
-
-
- #define ATTRIBUT get_attribut()
- #define TOP_WINDOW get_last_window()
- #define NORMAL set_color(NORM_COL);
- #define INVERS set_color(INV_COL);
- #define PIEPS putchar(7);
- #define FLIPC set_color(FLIP);
- #define HIDE_CURSOR set_cursor_size(CURSOR_WEG);
-
- #define MAX(x,y) ((x) > (y)) ? (x) : (y)
- #define MIN(x,y) ((x) < (y)) ? (x) : (y)
- #ifdef toupper
- #undef toupper
- #endif
- #ifdef tolower
- #undef tolower
- #endif
-
- #define toupper(a) kw_toupper(a)
- #define tolower(a) kw_tolower(a)