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.r
	button text="R Code" func=openFile action=CCA.r
	button text=Window func=openFile action=CCAWin.txt

grid 1 4 sticky=W
	label text="Age\nData" font="bold 10"
	grid 2 1 sticky=W
		entry name="fnam" mode=character label="File" value="CCA.qbr" width=10
		entry name="year" mode=character label="Year" value="2004" width=10
	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

grid 1 4 sticky=W
	label text=Design font="bold 10" sticky=NE pady=10
	vector names=phi length=11 width=5 mode=numeric vertical=T \
		labels="k A B b0 eps m b1 b2 b3 b4 b5" \
		values="5 30 200 20 0.025 2 0 0 0 0 0"
	label text=Model font="bold 10" sticky=NE pady=10
	data nrow=11 ncol=4 names=theta width=5 mode="numeric numeric numeric logical" \
		rownames="Z alpha betak tau sigma n rho1 rho2 rho3 rho4 rho5" \
		colnames="val min max active" \
		rowlabels="Z alpha betak tau sigma n rho1 rho2 rho3 rho4 rho5" \
		collabels="val min max active" \
		values="0.05 0 1 T 5 2 25 T 0.2 0 1 T 1 0 5 T 1 0 3 T 100 10 5000 T \
		1 0 10 T 1 0 10 T 1 0 10 F 1 0 10 F 1 0 10 F"

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 6
	button text="Set"  func=Uset
	button text="NLM"  func=Ueval
	button text="Plot " func=Uplot padx=10
	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="----------------BRugs----------------" sticky=W font="courier bold 12" pady=5

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 4 sticky=W
	label text=Compile font="bold 10" pady=4 sticky=SW
	entry name=nc label="# chains" value=2 width=3 padx=5
	button text=Compile func=modCompile stick="SE" pady=5 padx=10
	button text=Data func=openFile action=CCAdat.txt sticky=SE pady=5 padx=0

grid 1 4 sticky=W byrow=T
	label text=Update font="bold 10" sticky=SW pady=4
	vector length=2 names="clen cthin" labels="Length Thin" values="100 1" vertical=F width=7 padx=0
	entry name="ctot" label="Total" value="0" width=6 padx=5 pady=2 entrybg="#FDB3C1" sticky=S
	button text=Update func=modUpdate stick="SE" pady=3 padx=15

grid 1 4 sticky=W byrow=T
	label text="Report" font="bold 10" sticky=SW pady=4
	vector length=3 names="s1 s2 sthin" labels="Start End Thin" \
		values="1 100 1" vertical=F width=7 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
