home *** CD-ROM | disk | FTP | other *** search
- /*
- * Source machine generated by GadToolsBox V2.0b
- * which is (c) Copyright 1991-1993 Jaba Development
- *
- * GUI Designed by : Martin W Scott
- */
-
- #define GetString(g) (((struct StringInfo *)g->SpecialInfo)->Buffer )
- #define GetNumber(g) (((struct StringInfo *)g->SpecialInfo)->LongInt)
-
- /* Windows identifiers */
-
- #define NO_WINDOW 0
- #define ROOT_WINDOW 1
- #define HOTKEY_WINDOW 2
- #define MISC_WINDOW 3
- #define BLANK_WINDOW 4
- #define KEYDEF_WINDOW 5
-
- /* Root Window gadgets */
-
- #define GD_Hide 0
- #define GD_Quit 1
- #define GD_AutoCheck 2
- #define GD_KeyActCheck 3
- #define GD_CTFCheck 4
- #define GD_CTBCheck 5
- #define GD_ScrCycleCheck 6
- #define GD_ScrActCheck 7
- #define GD_AutoPopCheck 8
- #define GD_RMBActCheck 9
- #define GD_Miscellaneous 10
- #define GD_EditHotkeys 11
- #define GD_AutoPat 12
- #define GD_ClickPat 13
- #define GD_PopPat 14
- #define GD_ClickWinPat 15
- #define GD_MMBActCheck 16
- #define GD_Blanking 17
-
- #define GDX_Hide 0
- #define GDX_Quit 1
- #define GDX_AutoCheck 2
- #define GDX_KeyActCheck 3
- #define GDX_CTFCheck 4
- #define GDX_CTBCheck 5
- #define GDX_ScrCycleCheck 6
- #define GDX_ScrActCheck 7
- #define GDX_AutoPopCheck 8
- #define GDX_RMBActCheck 9
- #define GDX_Miscellaneous 10
- #define GDX_EditHotkeys 11
- #define GDX_AutoPat 12
- #define GDX_ClickPat 13
- #define GDX_PopPat 14
- #define GDX_ClickWinPat 15
- #define GDX_MMBActCheck 16
- #define GDX_Blanking 17
-
-
- /* HotKeys Window gadgets */
-
- #define GD_Hotkeys 0
- #define GD_Actions 1
- #define GD_Argument 2
- #define GD_Options 3
- #define GD_Add 4
- #define GD_Delete 5
- #define GD_Return 6
-
- #define GDX_Hotkeys 0
- #define GDX_Actions 1
- #define GDX_Argument 2
- #define GDX_Options 3
- #define GDX_Add 4
- #define GDX_Delete 5
- #define GDX_Return 6
-
- /* Miscellaneous Window gadgets */
-
- #define GD_ClickVol 0
- #define GD_AutoPointDelay 1
- #define GD_Return2 2
- #define GD_BlackBorderCheck 3
- #define GD_WildStarCheck 4
- #define GD_NoClickCheck 5
-
- #define GDX_ClickVol 0
- #define GDX_AutoPointDelay 1
- #define GDX_Return2 2
- #define GDX_BlackBorderCheck 3
- #define GDX_WildStarCheck 4
- #define GDX_NoClickCheck 5
-
- /* Blanking Window gadgets */
-
- #define GD_ScrTONum 0
- #define GD_MouseTONum 1
- #define GD_MBMethod 2
- #define GD_Return3 3
- #define GD_BlankMouseOnKey 4
-
- #define GDX_ScrTONum 0
- #define GDX_MouseTONum 1
- #define GDX_MBMethod 2
- #define GDX_Return3 3
- #define GDX_BlankMouseOnKey 4
-
-
- /* KeyDef window gadgets */
-
- #define GD_Class 0
- #define GD_Stroke 1
- #define GD_Desc 2
- #define GD_Ok 3
- #define GD_Cancel 4
-
- #define GDX_Class 0
- #define GDX_Stroke 1
- #define GDX_Desc 2
- #define GDX_Ok 3
- #define GDX_Cancel 4
-
-
- /* Number of gadgets for each window */
-
- #define Root_CNT 18
- #define HotKey_CNT 7
- #define Misc_CNT 6
- #define Blank_CNT 5
- #define KeyDef_CNT 5
-
-
-
- /* Global variables */
-
-
- GLOBAL struct Library *GadToolsBase;
- GLOBAL struct Screen *Scr;
- GLOBAL struct Window *curwin;
- GLOBAL UBYTE *PubScreenName;
- GLOBAL APTR VisualInfo;
- GLOBAL struct Window *RootWnd;
- GLOBAL struct Window *HotKeyWnd;
- GLOBAL struct Window *MiscWnd;
- GLOBAL struct Window *BlankWnd;
-
- GLOBAL struct Gadget *RootGList;
- GLOBAL struct Gadget *HotKeyGList;
- GLOBAL struct Gadget *MiscGList;
- GLOBAL struct Gadget *BlankGList;
- GLOBAL struct Menu *RootMenus;
- GLOBAL struct Gadget *RootGadgets[Root_CNT];
- GLOBAL struct Gadget *HotKeyGadgets[HotKey_CNT];
- GLOBAL struct Gadget *MiscGadgets[Misc_CNT];
- GLOBAL struct Gadget *BlankGadgets[Blank_CNT];
- GLOBAL UWORD RootLeft;
- GLOBAL UWORD RootWidth;
- GLOBAL UWORD RootHeight;
- GLOBAL UWORD HotKeyLeft;
- GLOBAL UWORD HotKeyWidth;
- GLOBAL UWORD HotKeyHeight;
- GLOBAL UWORD MiscLeft;
- GLOBAL UWORD MiscWidth;
- GLOBAL UWORD MiscHeight;
- GLOBAL UWORD BlankLeft;
- GLOBAL UWORD BlankWidth;
- GLOBAL UWORD BlankHeight;
- GLOBAL UBYTE *RootWdt;
- GLOBAL UBYTE *HotKeyWdt;
- GLOBAL UBYTE *MiscWdt;
- GLOBAL UBYTE *BlankWdt;
- GLOBAL UWORD WindowTop;
- GLOBAL struct TextAttr *Font, Attr;
- GLOBAL UWORD FontX, FontY;
- GLOBAL UWORD OffX, OffY;
- GLOBAL UBYTE *MBMethod0Labels[];
- GLOBAL UBYTE *Options1Labels[];
- GLOBAL struct MinList Actions1List;
- GLOBAL struct IntuiText RootIText[];
- GLOBAL struct IntuiText BlankIText[];
- GLOBAL struct NewMenu RootNewMenu[];
- GLOBAL UWORD RootGTypes[];
- GLOBAL UWORD HotKeyGTypes[];
- GLOBAL UWORD MiscGTypes[];
- GLOBAL UWORD BlankGTypes[];
- GLOBAL struct NewGadget RootNGad[];
- GLOBAL struct NewGadget HotKeyNGad[];
- GLOBAL struct NewGadget MiscNGad[];
- GLOBAL struct NewGadget BlankNGad[];
- GLOBAL ULONG RootGTags[];
- GLOBAL ULONG HotKeyGTags[];
- GLOBAL ULONG MiscGTags[];
- GLOBAL ULONG BlankGTags[];
- GLOBAL struct Node Actions1Nodes[];
-
-
-
- GLOBAL struct Window *KeyDefWnd;
- GLOBAL struct Gadget *KeyDefGList;
- GLOBAL struct Gadget *KeyDefGadgets[KeyDef_CNT];
- GLOBAL UWORD KeyDefLeft;
- GLOBAL UWORD KeyDefTop;
- GLOBAL UWORD KeyDefWidth;
- GLOBAL UWORD KeyDefHeight;
- GLOBAL UBYTE *KeyDefWdt;
- GLOBAL UBYTE *Class0Labels[];
- GLOBAL UBYTE *Stroke0Labels[];
- GLOBAL UWORD KeyDefGTypes[];
- GLOBAL struct NewGadget KeyDefNGad[];
- GLOBAL ULONG KeyDefGTags[];
-
-
- /* Functions prototypes */
-
- GLOBAL VOID InitMBMethod0Labels (VOID);
- GLOBAL VOID InitOptions1Label (VOID);
- GLOBAL VOID InitActions1Nodes (VOID);
- GLOBAL VOID InitClass0Labels (VOID);
- GLOBAL VOID InitStroke0Labels (VOID);
- GLOBAL VOID InitBlankNGad (VOID);
- GLOBAL VOID InitHotKeyNGad (VOID);
- GLOBAL VOID InitMiscNGad (VOID);
- GLOBAL VOID InitKeyDefNGad (VOID);
- GLOBAL VOID InitRootIText (VOID);
- GLOBAL int SetupScreen (VOID);
- GLOBAL VOID CloseDownScreen (VOID);
- GLOBAL VOID RootRender (VOID);
- GLOBAL int OpenRootWindow (VOID);
- GLOBAL VOID CloseRootWindow (VOID);
- GLOBAL VOID HotKeyRender (VOID);
- GLOBAL int OpenHotKeyWindow (VOID);
- GLOBAL VOID CloseHotKeyWindow (VOID);
- GLOBAL VOID MiscRender (VOID);
- GLOBAL int OpenMiscWindow (VOID);
- GLOBAL VOID CloseMiscWindow (VOID);
- GLOBAL VOID BlankRender (VOID);
- GLOBAL int OpenBlankWindow (VOID);
- GLOBAL VOID CloseBlankWindow (VOID);
- GLOBAL VOID CloseKeyDefWindow ( VOID );
- GLOBAL int OpenKeyDefWindow ( VOID );
- GLOBAL VOID KeyDefRender ( VOID );
- GLOBAL VOID InitGUI (VOID);
- GLOBAL UBYTE *GetPubScreenName (struct Screen *s);
- GLOBAL UWORD ComputeX (UWORD value);
- GLOBAL UWORD ComputeY (UWORD value);
- GLOBAL VOID ComputeFont (UWORD width,UWORD height);
- GLOBAL VOID CloseOneWindow (struct Window *Wnd, struct Menu *Menus, struct Gadget *GList);
- GLOBAL LONG HandleBlankIDCMP (VOID);
- GLOBAL LONG HandleMiscIDCMP (VOID);
- GLOBAL LONG HandleHotKeyIDCMP (VOID);
- GLOBAL LONG HandleRootIDCMP (VOID);
- GLOBAL LONG HandleKeyDefIDCMP (VOID);
- GLOBAL __regargs VOID InitToggleGadgets( UBYTE WindowID );
- GLOBAL __regargs VOID InitWindowGadget(UWORD num, LONG tagtype, LONG tagvalue, UBYTE WindowID);
- GLOBAL BOOL ShowBlankWindow (VOID);
- GLOBAL BOOL ShowHotKeyWindow (VOID);
- GLOBAL BOOL ShowMiscWindow (VOID);
- GLOBAL BOOL ShowRootWindow (VOID);
- GLOBAL BOOL ShowKeyDefWindow (VOID);
- GLOBAL VOID UpdateWindowsPosition (VOID);
- GLOBAL BOOL SwitchToKeyDefWindow(VOID);
-
-
-
- #ifndef GTMN_NewLookMenus
- #define GTMN_NewLookMenus GT_TagBase+67
- #endif
-
- #ifndef WA_NewLookMenus
- #define WA_NewLookMenus WA_Dummy+0x30
- #endif
-
- /* other changes: CreateMenus call and OpenWindow call for NewLookMenus */
-
- #include <graphics/text.h>
- #define CalcFontX() (TextLength(&Scr->RastPort,"ABCDEFGHIJKLMNOPQRSTUVWXYZ",26)/26)
-