#include <os2.h>
#include "os2drvs.h"

MENU ID_OS2DRVS
{
    SUBMENU "~File", IDM_FILE
    {
	MENUITEM "~Save",	IDM_FILE_SAVE
	MENUITEM "Save ~As",	IDM_FILE_SAVE_AS,
	MENUITEM SEPARATOR
	MENUITEM "~Quit",	IDM_FILE_QUIT
    }
    SUBMENU "~Mouse", IDM_MOUSE
    {
	MENUITEM "~More Sensitive",	IDM_MOUSE_MORE
	MENUITEM "~Less Sensitive",	IDM_MOUSE_LESS
    }
    SUBMENU "~State", IDM_STATE
    {
	MENUITEM "~More Isolines",	IDM_STATE_MORE_ISO
	MENUITEM "~Less Isolines",	IDM_STATE_LESS_ISO
	MENUITEM SEPARATOR
	MENUITEM "~Finer Approximation",IDM_STATE_FINER_APPROX
	MENUITEM "~Coarser Approximation",IDM_STATE_COARSER_APPROX
	MENUITEM SEPARATOR
	MENUITEM "~Shorter Vectors",	IDM_STATE_SHORTER_VEC
	MENUITEM "Longer ~Vectors",	IDM_STATE_LONGER_VEC
	MENUITEM SEPARATOR
	MENUITEM "~Wider Lines",	IDM_STATE_WIDE_LINES
	MENUITEM "~Thinner Lines",	IDM_STATE_THIN_LINES

    }
    SUBMENU "~Toggles", IDM_TOGGLE
    {
	MENUITEM "~Screen Transformation",IDM_TGLS_SCREEN
	MENUITEM "~Perspecive",		IDM_TGLS_PERSP
	MENUITEM "~Depth Cue",		IDM_TGLS_DEPTH_CUE
	MENUITEM "~Back Face Cull",	IDM_TGLS_BFACE_CULL
	MENUITEM "~Internal Edges",	IDM_TGLS_INTERNAL
	MENUITEM "Normals of ~Vertices",IDM_TGLS_VRTX_NRML
	MENUITEM "Normals of Poly~Gons",IDM_TGLS_POLY_NRML
	MENUITEM "Draw ~Ctl Mesh/Poly", IDM_TGLS_CTL_MESH
        MENUITEM "~Surface Polygons",   IDM_TGLS_SRF_POLYS
    }
    SUBMENU "~Views", IDM_VIEWS
    {
	MENUITEM "~Front",		IDM_VIEW_FRONT
	MENUITEM "~Side",		IDM_VIEW_SIDE
	MENUITEM "~Top",		IDM_VIEW_TOP
	MENUITEM "~Isometry",		IDM_VIEW_ISOMETRY
    }
    SUBMENU "~Anims", IDM_ANIM
    {
	MENUITEM "~Animation",		IDM_ANIM_ACTIVE
    }
}

DLGTEMPLATE IDM_ANIM LOADONCALL MOVEABLE DISCARDABLE
BEGIN
  DIALOG  "Animation", IDM_ANIM, 0, 0, 200, 60, ,
           FCF_SYSMENU | FCF_TITLEBAR | FCF_MOUSEALIGN | FCF_SCREENALIGN
  BEGIN
    CONTROL         "", ID_ANIM_SLIDER, 2, 20, 196, 20, 
                    WC_SLIDER,
                    SLS_HORIZONTAL | SLS_BOTTOM | 
                    SLS_SNAPTOINCREMENT | SLS_BUTTONSRIGHT | 
                    SLS_HOMELEFT | SLS_PRIMARYSCALE1 | 
                    WS_GROUP | WS_TABSTOP | WS_VISIBLE
                    CTLDATA 12, 0, 101, 0, 0, 0
    RADIOBUTTON     "Save",    ID_ANIM_SAVE_FILE,    2,  42,  46,  16
    PUSHBUTTON      "MinT",    ID_ANIM_MIN_TIME,    52,  42,  46,  16
    PUSHBUTTON      "MaxT",    ID_ANIM_MAX_TIME,   102,  42,  46,  16
    PUSHBUTTON      "TStep",   ID_ANIM_TIME_STEP,  152,  42,  46,  16

    PUSHBUTTON      "Begin",   ID_ANIM_BEGIN,        2,   2,  46,  16
    PUSHBUTTON      "Stop",    ID_ANIM_STOP,        77,   2,  46,  16
    PUSHBUTTON      "Dismiss", ID_ANIM_DISMISS,    152,   2,  46,  16
  END
END

DLGTEMPLATE ID_ANIM_GET_TIME LOADONCALL MOVEABLE DISCARDABLE
BEGIN
  DIALOG  "Time Value:", ID_ANIM_GET_TIME, 50, 10, 100, 40, ,
           FCF_SYSMENU | FCF_TITLEBAR | FCF_MOUSEALIGN | FCF_SCREENALIGN
  BEGIN
    CONTROL	    "Enter New Time", -1, 5, 30, 90, 8, WC_STATIC,
			SS_TEXT | DT_CENTER | DT_TOP | WS_GROUP | WS_VISIBLE
    ENTRYFIELD      "", ID_ANIM_GOT_TIME,  5, 18, 90, 10, ES_MARGIN

    PUSHBUTTON      "Enter",  ID_ANIM_GET_TIME_ENT,  5,   2,  40,  14, WS_GROUP
    PUSHBUTTON      "Cancel", ID_ANIM_GET_TIME_CAN, 55,   2,  40,  14, WS_GROUP
  END
END
