home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d777
/
chemesthetics.lha
/
Chemesthetics
/
Source.LHA
/
prefs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-26
|
13KB
|
367 lines
/* $Revision Header *** Header built automatically - do not edit! ***********
*
* (C) Copyright 1991 by Metalworx
*
* Name .....: prefs.h
* Created ..: Sun 20-Oct-91 09:48
* Revision .: 6
*
* Date Author Comment
* ========= ======== ====================
* 26-Apr-92 Mtwx Einbau des Default-Gadgets
* 13-Apr-92 Mtwx Images f. Load & Save geändert
* 04-Feb-92 Mtwx Gadgets f. Schatten- und Reflex.farbe
* 29-Jan-92 Mtwx Task-Priorität-Gadget eingebaut
* 15-Nov-91 Mtwx Laden & Speichern - Gadgets
* 20-Oct-91 Mtwx Gadgets f. Zeit-Info, Icon f. CDM-Files
* 02-Apr-91 Mtwx Created this file!
*
* $Revision Header ********************************************************/
#define REVISION 6
/***************************************************************************
* prefs.h: Header-File für prefs.c *
***************************************************************************/
/* ------------------------------- includes ----------------------------- */
#include <intuition/intuition.h>
#include "messages.h"
/* ------------------------------- defines ------------------------------ */
#define BVERH 1
#define PRIORITY 2
#define ICONCREAIFF 3
#define ICONCREACDM 4
#define TITEL 5
#define TIMEWINDOW 6
#define LOADPREFS 7
#define SAVEPREFS 8
#define PALETTE 9
#define DEFAULTPREFS 10
/* Gadgets f. Schattenfarbe 11-26 */
/* Gadgets f. Reflexionsfarbe 27-42 */
/* ------------------------------- external references ------------------ */
extern struct Border StringGBorder1;
extern struct Image ToggleImg1;
extern struct Image ToggleImg2;
extern struct Image RadioImage1;
extern struct Image RadioImage2;
/* ------------------------------- global variables --------------------- */
#define Palette1_iff_width 50
#define Palette1_iff_height 25
#define Palette1_iff_num_planes 4
#define Palette1_iff_words_per_plane 100
static UWORD __chip Palette1_iff_data[4][25][4] = {
{
0x0000,0x0000,0x0000,0x0000,0x00ff,0x8000,0x0000,0x4000,
0x07fe,0x0000,0x0000,0x4000,0x1ff8,0x0000,0x0000,0x4000,
0x7fc0,0x0000,0x0000,0x4000,0x7f00,0x0003,0xfff0,0x4000,
0x7800,0x00fc,0x0018,0x4000,0x6000,0x0f00,0x7c20,0x4000,
0x0000,0xf000,0x7cc0,0x4000,0x0007,0x07c0,0x7c80,0x4000,
0x0018,0x0780,0x0100,0x4000,0x0060,0x073f,0x8100,0x4000,
0x00fc,0x0040,0x4100,0x4000,0x017c,0x0040,0x4180,0x4000,
0x027c,0x003f,0x8060,0x4000,0x0180,0x07c0,0x0030,0x4000,
0x0070,0x07c0,0x7c0c,0x4000,0x000f,0x07c0,0x7c0c,0x4000,
0x0000,0xf800,0x7cf0,0x4000,0x0000,0x07ff,0xff00,0x4000,
0x0000,0x0000,0x0000,0x4000,0x0000,0x0000,0x0000,0x4000,
0x0000,0x0000,0x0000,0x4000,0x0000,0x0000,0x0000,0x4000,
0x7fff,0xffff,0xffff,0xc000
},
{
0xffff,0xffff,0xffff,0x8000,0x8000,0x0000,0x0000,0x0000,
0x8000,0x0000,0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,
0x8000,0x0000,0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,
0x8000,0x0003,0xffe0,0x0000,0x8000,0x00ff,0xffc0,0x0000,
0x8000,0x0fe0,0xff00,0x0000,0x8000,0xf820,0xff00,0x0000,
0x8007,0xf87f,0xfe00,0x0000,0x801f,0xf8c0,0x7e00,0x0000,
0x807f,0xff80,0x3e00,0x0000,0x80ff,0xff80,0x3e00,0x0000,
0x81fe,0x0fc0,0x7f80,0x0000,0x807e,0x083f,0xfe00,0x0000,
0x800e,0x083f,0xfe30,0x0000,0x8000,0xf83f,0xfff0,0x0000,
0x8000,0x07ff,0xff00,0x0000,0x8000,0x0000,0x0000,0x0000,
0x8000,0x0000,0x0000,0x0000,0x8000,0x0000,0x0f80,0x0000,
0x8000,0x0000,0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000
},
{
0x0000,0x0000,0x0000,0x0000,0x0000,0x00fe,0x0000,0x0000,
0x0000,0x03f8,0x0000,0x0000,0x0000,0x0fe0,0x0000,0x0000,
0x0000,0x7f00,0x0000,0x0000,0x0001,0xfc00,0x0000,0x0000,
0x000f,0xf000,0x0000,0x0000,0x003f,0x8000,0x0000,0x0000,
0x00fe,0x001f,0x0000,0x0000,0x07f0,0x07df,0x0000,0x0000,
0x1fc1,0xf780,0x0000,0x0000,0x7f01,0xf700,0x0000,0x0000,
0x787d,0xf000,0x0000,0x0000,0x607c,0x0000,0x0000,0x0000,
0x007c,0x0000,0x0000,0x0000,0x0000,0x0000,0x01c0,0x0000,
0x0000,0x0000,0x01c0,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x003c,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000
},
{
0x0000,0x0000,0x0000,0x0000,0x0000,0x7ffe,0x0000,0x0000,
0x0001,0xfff8,0x0000,0x0000,0x0007,0xffe0,0x0000,0x0000,
0x003f,0xff00,0x0000,0x0000,0x00ff,0xfc00,0x0000,0x0000,
0x07ff,0xf000,0x0000,0x0000,0x1fff,0x8000,0x0000,0x0000,
0x7ffe,0x0000,0x0000,0x0000,0x7ff0,0x0000,0x0000,0x0000,
0x7fc0,0x0000,0x0000,0x0000,0x7f00,0x0000,0x0000,0x0000,
0x7800,0x0000,0x0000,0x0000,0x6000,0x0000,0x0000,0x0000,
0x0001,0xf000,0x0000,0x0000,0x0001,0xf7c0,0x01c0,0x0000,
0x0001,0xf7df,0x7dc0,0x0000,0x0000,0x07df,0x7c00,0x0000,
0x0000,0x001f,0x7c00,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x00ff,0xffff,0xf07c,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000
},
};
#define Palette2_iff_width 50
#define Palette2_iff_height 25
#define Palette2_iff_num_planes 4
#define Palette2_iff_words_per_plane 100
static UWORD __chip Palette2_iff_data[4][25][4] = {
{
0xffff,0xffff,0xffff,0x8000,0x80ff,0x8000,0x0000,0x0000,
0x87fe,0x0000,0x0000,0x0000,0x9ff8,0x0000,0x0000,0x0000,
0xffc0,0x0000,0x0000,0x0000,0xff00,0x0003,0xfff0,0x0000,
0xf800,0x00fc,0x0018,0x0000,0xe000,0x0f00,0x7c20,0x0000,
0x8000,0xf000,0x7cc0,0x0000,0x8007,0x07c0,0x7c80,0x0000,
0x8018,0x0780,0x0100,0x0000,0x8060,0x073f,0x8100,0x0000,
0x80fc,0x0040,0x4100,0x0000,0x817c,0x0040,0x4180,0x0000,
0x827c,0x003f,0x8060,0x0000,0x8180,0x07c0,0x0030,0x0000,
0x8070,0x07c0,0x7c0c,0x0000,0x800f,0x07c0,0x7c0c,0x0000,
0x8000,0xf800,0x7cf0,0x0000,0x8000,0x07ff,0xff00,0x0000,
0x8000,0x0000,0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,
0x8000,0x0000,0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000
},
{
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x4000,
0x0000,0x0000,0x0000,0x4000,0x0000,0x0000,0x0000,0x4000,
0x0000,0x0000,0x0000,0x4000,0x0000,0x0000,0x0000,0x4000,
0x0000,0x0003,0xffe0,0x4000,0x0000,0x00ff,0xffc0,0x4000,
0x0000,0x0fe0,0xff00,0x4000,0x0000,0xf820,0xff00,0x4000,
0x0007,0xf87f,0xfe00,0x4000,0x001f,0xf8c0,0x7e00,0x4000,
0x007f,0xff80,0x3e00,0x4000,0x00ff,0xff80,0x3e00,0x4000,
0x01fe,0x0fc0,0x7f80,0x4000,0x007e,0x083f,0xfe00,0x4000,
0x000e,0x083f,0xfe30,0x4000,0x0000,0xf83f,0xfff0,0x4000,
0x0000,0x07ff,0xff00,0x4000,0x0000,0x0000,0x0000,0x4000,
0x0000,0x0000,0x0000,0x4000,0x0000,0x0000,0x0f80,0x4000,
0x0000,0x0000,0x0000,0x4000,0x0000,0x0000,0x0000,0x4000,
0x7fff,0xffff,0xffff,0xc000
},
{
0x0000,0x0000,0x0000,0x0000,0x0000,0x00fe,0x0000,0x0000,
0x0000,0x03f8,0x0000,0x0000,0x0000,0x0fe0,0x0000,0x0000,
0x0000,0x7f00,0x0000,0x0000,0x0001,0xfc00,0x0000,0x0000,
0x000f,0xf000,0x0000,0x0000,0x003f,0x8000,0x0000,0x0000,
0x00fe,0x001f,0x0000,0x0000,0x07f0,0x07df,0x0000,0x0000,
0x1fc1,0xf780,0x0000,0x0000,0x7f01,0xf700,0x0000,0x0000,
0x787d,0xf000,0x0000,0x0000,0x607c,0x0000,0x0000,0x0000,
0x007c,0x0000,0x0000,0x0000,0x0000,0x0000,0x01c0,0x0000,
0x0000,0x0000,0x01c0,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x003c,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000
},
{
0x0000,0x0000,0x0000,0x0000,0x0000,0x7ffe,0x0000,0x0000,
0x0001,0xfff8,0x0000,0x0000,0x0007,0xffe0,0x0000,0x0000,
0x003f,0xff00,0x0000,0x0000,0x00ff,0xfc00,0x0000,0x0000,
0x07ff,0xf000,0x0000,0x0000,0x1fff,0x8000,0x0000,0x0000,
0x7ffe,0x0000,0x0000,0x0000,0x7ff0,0x0000,0x0000,0x0000,
0x7fc0,0x0000,0x0000,0x0000,0x7f00,0x0000,0x0000,0x0000,
0x7800,0x0000,0x0000,0x0000,0x6000,0x0000,0x0000,0x0000,
0x0001,0xf000,0x0000,0x0000,0x0001,0xf7c0,0x01c0,0x0000,
0x0001,0xf7df,0x7dc0,0x0000,0x0000,0x07df,0x7c00,0x0000,
0x0000,0x001f,0x7c00,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x00ff,0xffff,0xf07c,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000
},
};
#include "LoadPrefs1.h"
#include "LoadPrefs2.h"
#include "SavePrefs1.h"
#include "SavePrefs2.h"
#include "default1.h"
#include "default2.h"
static struct Image PaletteImage1 =
{
0,0,Palette1_iff_width,Palette1_iff_height,Palette1_iff_num_planes,
(USHORT *)Palette1_iff_data,0xf,0,NULL
};
static struct Image PaletteImage2 =
{
0,0,Palette2_iff_width,Palette2_iff_height,Palette2_iff_num_planes,
(USHORT *)Palette2_iff_data,0xf,0,NULL
};
static struct IntuiText PaletteText =
{
1,0,JAM1,-3,27,NULL,(UBYTE *)"Palette",NULL
};
static struct Image DefaultImage1 =
{
0,0,default1_iff_width,default1_iff_height,default1_iff_num_planes,
(USHORT *)default1_iff_data,0xf,0,NULL
};
static struct Image DefaultImage2 =
{
0,0,default2_iff_width,default2_iff_height,default2_iff_num_planes,
(USHORT *)default2_iff_data,0xf,0,NULL
};
static struct IntuiText DefaultText =
{
1,0,JAM1,-3,27,NULL,(UBYTE *)"Default",NULL
};
static struct Gadget ReflexionsfarbeGadget[16];
static struct Gadget SchattenfarbeGadget[16];
static struct Gadget DefaultGadget =
{
&SchattenfarbeGadget[0],230,150,default1_iff_width,default1_iff_height,
GADGIMAGE|GADGHIMAGE,RELVERIFY,BOOLGADGET,(APTR)&DefaultImage1,
(APTR)&DefaultImage2,&DefaultText,0,NULL,DEFAULTPREFS,NULL
};
static struct Gadget PaletteGadget =
{
&DefaultGadget,160,150,Palette1_iff_width,Palette1_iff_height,
GADGIMAGE|GADGHIMAGE,RELVERIFY,BOOLGADGET,(APTR)&PaletteImage1,
(APTR)&PaletteImage2,&PaletteText,0,NULL,PALETTE,NULL
};
static struct Image SavePrefsImage1 =
{
0,0,SavePrefs1_iff_width,SavePrefs1_iff_height,SavePrefs1_iff_num_planes,
(USHORT *)SavePrefs1_iff_data,0xf,0,NULL
};
static struct Image SavePrefsImage2 =
{
0,0,SavePrefs2_iff_width,SavePrefs2_iff_height,SavePrefs2_iff_num_planes,
(USHORT *)SavePrefs2_iff_data,0xf,0,NULL
};
static struct IntuiText SavePrefsText =
{
#ifdef GERMAN
1,0,JAM1,-11,27,NULL,(UBYTE *)"Speichern",NULL
#endif
#ifdef ENGLISH
1,0,JAM1,9,27,NULL,(UBYTE *)"Save",NULL
#endif
};
static struct Gadget SavePrefsGadget =
{
&PaletteGadget,20,150,SavePrefs1_iff_width,SavePrefs1_iff_height,
GADGIMAGE|GADGHIMAGE,RELVERIFY,BOOLGADGET,(APTR)&SavePrefsImage1,
(APTR)&SavePrefsImage2,&SavePrefsText,0,NULL, SAVEPREFS,NULL
};
static struct Image LoadPrefsImage1 =
{
0,0,LoadPrefs1_iff_width,LoadPrefs1_iff_height,LoadPrefs1_iff_num_planes,
(USHORT *)LoadPrefs1_iff_data,0xf,0,NULL
};
static struct Image LoadPrefsImage2 =
{
0,0,LoadPrefs2_iff_width,LoadPrefs2_iff_height,LoadPrefs2_iff_num_planes,
(USHORT *)LoadPrefs2_iff_data,0xf,0,NULL
};
static struct IntuiText LoadPrefsText =
{
#ifdef GERMAN
1,0,JAM1,5,27,NULL,(UBYTE *)"Laden",NULL
#endif
#ifdef ENGLISH
1,0,JAM1,9,27,NULL,(UBYTE *)"Load",NULL
#endif
};
static struct Gadget LoadPrefsGadget =
{
&SavePrefsGadget,90,150,LoadPrefs1_iff_width,LoadPrefs1_iff_height,
GADGIMAGE|GADGHIMAGE,RELVERIFY,BOOLGADGET,(APTR)&LoadPrefsImage1,
(APTR)&LoadPrefsImage2,&LoadPrefsText,0,NULL, LOADPREFS,NULL
};
static struct Gadget TimeWindowGadget =
{
&LoadPrefsGadget,20,65,26,11,GADGIMAGE|GADGHIMAGE|SELECTED,TOGGLESELECT|
RELVERIFY, BOOLGADGET, (APTR)&ToggleImg1,(APTR)&ToggleImg2,NULL,0,NULL,
TIMEWINDOW,NULL
};
static struct Gadget TitleGadget =
{
&TimeWindowGadget,20,50,26,11,GADGIMAGE|GADGHIMAGE,TOGGLESELECT|RELVERIFY,
BOOLGADGET, (APTR)&ToggleImg1,(APTR)&ToggleImg2,NULL,0,NULL,TITEL,NULL
};
static struct Gadget IconCreaCDMGadget =
{
&TitleGadget,20,35,26,11,GADGIMAGE|GADGHIMAGE|SELECTED,TOGGLESELECT|
RELVERIFY,BOOLGADGET,(APTR)&ToggleImg1,(APTR)&ToggleImg2,NULL,0,NULL,
ICONCREACDM,NULL
};
static struct Gadget IconCreaIFFGadget =
{
&IconCreaCDMGadget,20,20,26,11,GADGIMAGE|GADGHIMAGE|SELECTED,TOGGLESELECT|
RELVERIFY,BOOLGADGET,(APTR)&ToggleImg1,(APTR)&ToggleImg2,NULL,0,NULL,
ICONCREAIFF,NULL
};
static UBYTE PriorityBuffer[5];
static struct StringInfo PriorityInfo =
{
PriorityBuffer,NULL,0,5,0,0,0,0,0,0,NULL,0,NULL
};
static struct Gadget PriorityGadget =
{
&IconCreaIFFGadget,580,37,40,8,GADGHCOMP,RELVERIFY|LONGINT,STRGADGET,
(APTR)NULL, NULL,NULL,NULL,(APTR)&PriorityInfo,PRIORITY,NULL
};
static UBYTE BVBuffer[4];
static struct StringInfo BVInfo = { BVBuffer,NULL,0,4,0,0,0,0 };
static struct Gadget BVGadget =
{
&PriorityGadget,588,22,32,8,GADGHCOMP,RELVERIFY,STRGADGET,(APTR)NULL,
NULL,NULL,NULL,(APTR)&BVInfo,BVERH,NULL
};
static struct NewWindow PrefsFenster =
{
0,0,640,200,-1,-1,GADGETUP|CLOSEWINDOW,
WINDOWDRAG|WINDOWCLOSE|SMART_REFRESH|ACTIVATE|GIMMEZEROZERO,
&BVGadget,NULL,(UBYTE *)PREFSTITLE,NULL,NULL,-1,-1,-1,-1,CUSTOMSCREEN
};