window title="Catch-Curve Analysis"
grid 1 6 sticky=W
  label text=View: font=bold
  button text=Docs func=openFile action=CCADoc.pdf
  button text=Model func=openFile action=CCAMod.txt
  button text=Data func=openFile action=CCA.qbr.hl.r
  button text="R Code" func=openFile action=CCA.r
  button text=Window func=openFile action=CCAWin.txt

grid 5 1 sticky=W
  grid 1 4 sticky=W
    label text="Age\nData" font="bold 10"
    vector names="type spp year" mode=character labels="Type Spp Year" \
      values="hl qbr 2004" width=5
    button text="Get Data" func=Uget padx=5 pady=10 sticky=SW
    text name=allflds mode=character height=2 width=23 edit=FALSE \
      bg="white" padx=5
  matrix nrow=1 ncol=11 names=phi width=4 mode=numeric rownames="phi" \
    rowlabels="phi" collabels="k A B b0 epsilon m b1 b2 b3 b4 b5" \
    colnames="k A B b0 epsilon m b1 b2 b3 b4 b5" \
    values="5 30 200 20 0.025 2 0 0 0 0 0"
  matrix nrow=3 ncol=11 names=theta width=4 mode=numeric \
    rownames="start min max" \
    colnames="Z alpha betak tau sigma n rho1 rho2 rho3 rho4 rho5" \
    rowlabels="theta min max" \
    collabels="Z alpha betak tau sigma n rho1 rho2 rho3 rho4 rho5" \
    values="0.05 5 0.2 1 1 100 1 1 1 1 1 \
            0 2 0 0 0 10 0 0 0 0 0 \
            1 25 1 5 3 5000 10 10 10 10 10"
  grid 1 2 sticky=W
    label text="On/Off" font="bold 10"
    vector length=11 names=onoff mode=logical values="T T T T T T T T F F F" \
      labels="Z alpha betak tau sigma n rho1 rho2 rho3 rho4 rho5"
  grid 1 4 sticky=W
    label text="Distribution" font="bold 10"
    vector names=modT length=3 mode=logical values="F T F" \
      labels="Multinomial Dirichlet Logistic-normal"
    label text="Auto A" font="bold 10" padx=10 pady=10
    check name=autoA checked=T pady=10

grid 1 7
  button text="Set"  func=Uset
  button text="NLM"  func=Ueval
  null padx=10
  button text="Plot " func=Uplot
  check name=seepa checked=T text=pa padx=0
  check name=seepi checked=F text=pi padx=0
  check name=wmf checked=F text=wmf padx=0

label text="--------------------------------------" sticky=W font=courier

grid 1 2 sticky=W
  label text="Distribution" font="bold 10" sticky=W
  radio name=MDL value=2 text="Dirichlet (Case 4 only)" padx=10
  #radio name=MDL value=1 text="Multinomial" padx=10
  #radio name=MDL value=3 text="Logistic-normal" padx=10

grid 1 1 sidetitle=Monitor sidefont="bold 10" sticky=W
  vector length=11 names=pset \
    labels="Z alpha betak tau sigma n rho1 rho2 rho3 rho4 rho5" \
    mode=logical values="T T T T F T T T F F F" vertical=F

grid 1 3 sidetitle=Compile sidefont="bold 10" sticky=W
  grid 2 1
    label text="# chains" padx=10
    entry name=nc value=2 width=3
  button text=Compile func=modCompile stick="SE" pady=5 padx=3
  button text=Data func=openFile action=CCAdat.txt \
    stick="SE" pady=5 padx=3

grid 1 3 sticky=W byrow=T
  label text=Update font="bold 10" padx=0 sticky="S" pady=4
  vector length=3 names="clen cthin ctot" labels="Length Thin Total" \
    values="1000 1 0" vertical=F width=6 padx=0
  button text=Update func=modUpdate stick="SE" pady=3 padx=20

grid 1 4 sticky=W byrow=T
  label text="Report" font="bold 10" padx=0 sticky="S" pady=4
  vector length=3 names="s1 s2 sthin" labels="Start End Thin" \
    values="1 1000 1" vertical=F width=6 padx=0
  label text="Chains" font="10" padx=5 sticky="S" pady=4
  vector length=2 names="chn1 chn2" labels="First Last" values="1 2" vertical=F width=4 padx=0

grid 1 5
  button text=Trace func=modTrace
  button text=Density func=modDens
  button text=ACF func=modACF
  button text=Pairs func=modPairs
  button text=Histogram func=modHist
