window name=loadCGUI title="loadC GUI" onclose=promptWriteOptions

menu nitems=3 label="Open Project File"
	menuitem label=.c function=openProjFiles action=,.c*
	menuitem label=.r function=openProjFiles action=,.r
	menuitem label=.log function=openProjFiles action=,.log

menu nitems=3 label=Examples
  menuitem label="fib (for .C)" function=openExamples \
      action="PBSmodelling,fib,.c,.r"
  menuitem label="fib2 (for .Call)" function=openExamples \
      action="PBSmodelling,fib2,.c,.r"
  menuitem label="sum (for .C)" function=openExamples \
      action="PBSmodelling,sum,.c,.r"

menu nitems=1 label=Help
  menuitem label="Setting Up loadC" function=openPackageFile \
      action="PBSmodelling,/doc/loadCSetup.pdf"

grid 2 4 padx=4 pady=4
  label text="File Prefix" font="bold 9" sticky=W padx=4 pady=4
  entry name=prefix mode=character sticky=W width=20 padx=4 pady=4
  null padx=28
  button text="Set WD" function=setwdGUI action="c,cc,cpp,cxx" width=10 \
      padx=4 pady=4
  label text="Lib Prefix" font="bold 9" sticky=W padx=4 pady=4 
  entry name=libPrefix mode=character sticky=W width=20 padx=4 pady=4
  null padx=28
  button text="Clean WD" function=.cleanLoadC width=10 padx=4 pady=4
  

grid 1 4 relief=groove padx=4 pady=4
  button text=COMPILE function=.guiCompileC font="bold 9" width=9 \
      padx=6 pady=4
  button text=LOAD function=.guiDyn action=load font="bold 9" width=9 \
      padx=7 pady=4  
  button text="SOURCE R" function=.guiSource width=10 font="bold 9" \
      padx=7 pady=4         
  button text=UNLOAD function=.guiDyn action=unload font="bold 9" \
      width=9 padx=6 pady=4

grid 2 2 relief=groove padx=4 pady=4
  label text="Options" font="bold underline 9" sticky=W padx=9
  button text="Update" function=setGUIoptions action=* padx=12 pady=5
  entry name=editor value="" width=33 label="Editor " mode=character \
      function=setGUIoptions action=editor font="bold 9" padx=9
  button text="Browse" function=setFileOption action=editor padx=12 pady=5
   
grid 2 1 relief=groove
  grid 1 5
  label text=Comparison font="bold underline 9" padx=11 pady=4
  label text="Times to Run" padx=4 pady=4
  entry name=runs width=13 mode=numeric padx=1 pady=4
  null padx=9
  button text="RUN" function=.loadCRunComparison width=6 \
      padx=12 pady=4

  grid 1 6
  label text="R Time" padx=1 pady=4
  text name=rTime bg=pink scrollbar=FALSE width=10 height=1 padx=1 pady=4  
  label text="C Time" padx=1 pady=4
  text name=cTime bg=pink scrollbar=FALSE width=10 height=1 padx=1 pady=4
  label text="Ratio" padx=1 pady=4
  text name=ratio bg=pink scrollbar=FALSE width=6 height=1 padx=1 pady=4
