home *** CD-ROM | disk | FTP | other *** search
-
- #include "includes/Project.h"
- #include <datatypes/soundclass.h>
-
-
- typedef struct
- {
- struct IBox ibox;
- struct TextAttr txtattr;
- char fontname[32];
- char picture[256];
-
- ULONG a4;
- struct Library *library;
- struct Library *module;
- IPCData *ipc;
-
- struct FontRequester *freq;
-
- struct Screen *screen;
- struct PubScreenNode *pubscr;
- struct DrawInfo *discr;
-
- struct TextFont *txtfont;
- struct IntuiText itext[3];
- char ibuffer[3][16];
-
- struct Window *win;
- struct Window *req;
- struct Gadget *gad;
-
- ULONG signals;
-
- struct BitMap *bm;
- struct BitMap *oldbm;
-
- Object *obj;
- struct BitMap *sourcebm;
- struct BitMapHeader *sourcebmhead;
- struct BitScaleArgs bsa;
-
- struct IntuiMessage *inmsg;
- struct IntuiMessage imsg;
-
- PopUpMenu popmenu;
- PopUpItem *popitem;
- struct MinList submenu;
- struct MinList subtime;
-
- ULONG flags;
-
- struct EasyStruct es;
-
- LONG running;
- ULONG hour;
- ULONG minute;
-
- ULONG day;
-
- APTR notify;
- struct MsgPort *notify_port;
- DOpusNotify *nmsg;
-
- TimerHandle *th;
-
- struct DateStamp date;
-
- struct DateTime dt;
- IPCMessage *ipcmsg;
-
- char buffer [32];
- char woday [16];
-
- Object *sound;
- Object *alarm;
-
- NewConfigWindow ncfg;
- struct Window *time_req;
- ObjectList *olist;
- UBYTE h;
- UBYTE min;
- } ClockData;
-
-
- enum
- {
- POPID_CHANGE_BACK,
- POPID_CHANGE_FONT,
- POPID_SOUND,
- POPID_BORDER,
- POPID_AUTOSTART,
- POPID_ALARM,
- POPID_FIX_IT,
- POPID_CLOSE,
- POPID_ABOUT,
- POPID_PLAIN = 20,
- POPID_TRANSPARENT,
- POPID_PICTURE,
- POPID_ALARMSET = 60,
- POPID_ALARMONOFF
- };
-
-
- #define DEFAULT_LEFT_EDGE 40
- #define DEFAULT_TOP_EDGE 20
-
-
- #include <libraries/gadtools.h>
- #include <intuition/gadgetclass.h>
-
- // a lazyness define (and more readable...)
- #define GET_ID(a) (((struct Gadget *)(a->IAddress))->GadgetID)
-
-
-
-
-
-
-
-
-
-