#include <hwim.rh>
#include <hwim.rg>

RESOURCE DIALOG kats_dl_mac_name
    {
    title="Record keyboard macro";
    flags=DLGBOX_NOTIFY_ENTER|DLGBOX_RBUF_FILLED;
    controls=
        {
        CONTROL
            {
            class=C_EDWIN;
            prompt="Name for macro";
            info=EDWIN 
                { 
                flags=IN_EDWIN_VULEN_CHARACTERS;
                vulen=16;                       
                maxlen=23;
                };
            }
        };
    }

RESOURCE DIALOG kats_dl_playback
    {
    title="Playback keyboard macro";
    flags=DLGBOX_NOTIFY_ENTER|DLGBOX_RBUF_FILLED;
    controls=
        {
        CONTROL
            {
            class=C_CHLIST;
            prompt="Macro name";
            info=CHLIST { };
            }
        };
    }

RESOURCE ACLIST_ARRAY kats_ac_confirm
    {
    button =
        {
        PUSH_BUT
            {
            keycode=W_KEY_ESCAPE;
            str="Cancel";
            },
        PUSH_BUT
            {
            keycode=W_KEY_SPACE;
            str="Overwrite";
            },
        PUSH_BUT
            {
            keycode=W_KEY_DELETE_LEFT;
            str="Delete";
            }
        };
    }                  

RESOURCE DIALOG kats_dl_confirm
    {
    title="Name already exists";
    controls=
        {
        CONTROL
            {
            class=C_ACLIST;
            info=ACLIST { rid=kats_ac_confirm; };
            }
        };
    }

RESOURCE ACLIST_ARRAY kats_ac_save
    {
    button =
        {
        PUSH_BUT
            {
            keycode=W_KEY_ESCAPE;
            str="Cancel";
            },
        PUSH_BUT
            {
            keycode=W_KEY_RETURN;
            str="Confirm";
            }
        };
    }                  

RESOURCE DIALOG kats_dl_save
    {
    title="Save macros to file";
    controls=
        {
        CONTROL
            {
            class=C_ACLIST;
            info=ACLIST { rid=kats_ac_save; };
            }
        };
    }
