/*                                                                             */
/*   ___ _            _    _            ___       __ _                         */
/*  | _ ) |_  _ ___  | |  (_)___ _ _   / __| ___ / _| |___ __ ____ _ _ _ ___   */
/*  | _ \ | || / -_) | |__| / _ \ ' \  \__ \/ _ \  _|  _\ V  V / _` | '_/ -_)  */
/*  |___/_|\_,_\___| |____|_\___/_||_| |___/\___/_|  \__|\_/\_/\__,_|_| \___|  */
/*                                                                             */
/*             Copyright 2002, Miklós Németh (Blue Lion Software)              */
/*                        email: desco@freemail.hu                             */
/*                   WWW: http://amigos.amiga.hu/bluelion                      */
/*                                                                             */
#include <stdio.h>
#include <string.h>

#include <libraries/mui.h>
#include <mui/texteditor_mcc.h>
#include <libraries/gadtools.h>
#include <libraries/asl.h>
#include <libraries/locale.h>
#include <utility/hooks.h>
#include <dos/dos.h>
#include <dos/exall.h>
#include <exec/memory.h>

#include <clib/alib_protos.h>
#include <clib/dos_protos.h>
#include <clib/exec_protos.h>
#include <clib/intuition_protos.h>
#include <clib/muimaster_protos.h>
#include <clib/locale_protos.h>

#ifdef NEED_INLINES
#include <inline/muimaster.h>
#include <inline/exec.h>
#include <inline/dos.h>
#include <inline/locale.h>
#endif

/* --- ID creation --- */
#ifndef MAKE_ID
#define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
#endif

#define MUI_Menu(title)  MUIA_Family_Child, MenuObject, MUIA_Menu_Title, title
#define MUI_Menuitem(title,key,udata) MUIA_Family_Child, MenuitemObject, MUIA_Menuitem_Title, title, MUIA_Menuitem_Shortcut, key, MUIA_UserData, udata,End
#define MUI_Bar MUIA_Family_Child, MenuitemObject, MUIA_Menuitem_Title, NM_BARLABEL, End

#define WButton(name)\
        TextObject,\
                ButtonFrame,\
                MUIA_Font, MUIV_Font_Button,\
                MUIA_Text_Contents, name,\
                MUIA_Text_PreParse,"\033c",\
                MUIA_Weight, 0,\
                MUIA_InputMode    , MUIV_InputMode_RelVerify,\
                MUIA_Background   , MUII_ButtonBack,\
                End
