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

RESOURCE MENU oqm_daynames
    {
    items =
        {
        CHOICE_ITEM { str="Monday";},
        CHOICE_ITEM { str="Tuesday";},
        CHOICE_ITEM { str="Wednesday";},
        CHOICE_ITEM { str="Thursday";},
        CHOICE_ITEM { str="Friday";},
        CHOICE_ITEM { str="Saturday";},
        CHOICE_ITEM { str="Sunday";}
        };
    }

RESOURCE ACLIST_ARRAY oqa_date_combins
    {
    button =
        {
        PUSH_BUT
            {
            keycode=W_KEY_ESCAPE;
            str="Stop";
            },
        PUSH_BUT
            {
            keycode=W_KEY_MENU;
            str="Backwards";
            },
        PUSH_BUT
            {
            keycode=W_KEY_RETURN;
            str="Forwards";
            }
        };
    }                  

RESOURCE DIALOG oqd_date_combins
    {
    title="Find date combinations";
    controls=
        {
        CONTROL
            {
            class=C_CHLIST;
            prompt="Day in week";
            info=CHLIST { rid=oqm_daynames; };
            },
    	CONTROL
    	    {
    	    class=C_NCEDIT;
    	    prompt="Day in month";
    	    info=NCEDIT
    		{
    		low=1;
    		high=31;
    		};
    	    },
        CONTROL
            {
            class=C_DTEDIT;
            prompt="Found date";
            info=DTEDIT
                {
                flags=IN_DTEDIT_DDMMYYYY|IN_DTEDIT_INIT;
    		low=0;
    		high=93501l;
                };
            },
        CONTROL
            {
            class=C_ACLIST;
            info=ACLIST { rid=oqa_date_combins; };
            }
        };
    }

RESOURCE STRING oqs_no_further_matches { str="No further matches"; }
