# $Revision: 427104 $ on $Date: 2008-04-07 18:18:03 -0400 (Mon, 07 Apr 2008) $
# The above revision line needs to be the first line for ttkrf files
# Copyright (c) 2006 Ansys Inc

dataEntryDialog annotationDEZ "Annotations"
exclusiveGroup annotationEXG "Create / Modify" "Do" 4 ICON
  exclusiveGroupItem annoCreate "Create annotation" PP_AnnoteCreate$icon_size2.gif
    exclusiveGroup annoCreateTypeEG NULL "Create" 1 DROPDOWN CreateAnnoType
      exclusiveGroupItem annoCreateText "Text"
         textOptMenu annoCreateTextFt "Font" anno_data(font) \
                        "small 0 med 1 large 2" 0 NULL
        #textEntry annoCreateTextAg "Angle" ::anno_data(angle) NUM
         colorOptMenu annoCreateTextCol "Color" anno_data(lcolor) NULL
         textEntry annoCreateTextVal "Content" ::anno_data(text,content) TEXT
      exclusiveGroupItem END #0
      exclusiveGroupItem annoCreateUtfText "Utf Text"
         textOptMenu annoCreateUtfTextFt "Font" anno_data(font) \
                        "small 0 med 1 large 2" 0 NULL
         colorOptMenu annoCreateUtfTextCol "Color" anno_data(lcolor) NULL
         textEntry annoCreateUtfTextVal "Content" ::anno_data(utftext,content) TEXT
      exclusiveGroupItem END #1
      exclusiveGroupItem annoCreateLines "Lines"
         textEntry annoCreateLinesWid "Line width" ::anno_data(linew) NUM
         bmpOptMenu annoCreateLinesAw "Arrow type" anno_data(arrow) \
                         \$vpost_library \$arrowlines_predefined 0 NULL
         colorOptMenu annoCreateLinesCol "Color" anno_data(lcolor) NULL
       # textEntry annoCreateLinesPts "Points" ::anno_data(line,pts) NUM
      exclusiveGroupItem END #2
      exclusiveGroupItem annoCreateBox "Box"
         textEntry annoCreateBoxWid "Line width" ::anno_data(linew) NUM
       # textEntry annoCreateBoxXL "X length" ::anno_data(box,xl) NUM
       # textEntry annoCreateBoxYL "Y length" ::anno_data(box,yl) NUM
         colorOptMenu annoCreateBoxCol "Color" anno_data(lcolor) NULL
         checkItem annoCreateBoxFill "Fill the box" ::anno_data(box,fill) NULL
      exclusiveGroupItem END #3
      exclusiveGroupItem annoCreateCircle "Circle"
         textEntry annoCreateCircleWid "Line width" ::anno_data(linew) NUM
       # textEntry annoCreateCircleRad "Radius"     ::anno_data(circle,rad) NUM
         colorOptMenu annoCreateCircleCol "Color" anno_data(lcolor) NULL
         checkItem annoCreateCircleFill "Fill the circle" ::anno_data(circle,fill) NULL
      exclusiveGroupItem END #4
      exclusiveGroupItem annoCreatePolygon "Polygon"
         textEntry annoCreatePolygonsWid "Line width" ::anno_data(linew) NUM
         colorOptMenu annoCreatePolygonCol "Color" anno_data(lcolor) NULL
      exclusiveGroupItem END #5
      exclusiveGroupItem annoCreateMarks  "Marks"
         bmpOptMenu annoCreateMarksSmTy  "Symbol type" anno_data(stype) \
                                  \$vpost_library \$symbols_predefined 6 NULL
         colorOptMenu annoCreateMarksCol "Symbol Color" anno_data(lcolor) NULL
         textEntry annoCreateMarksSmSz "Symbol size" ::anno_data(marksize) NUM
         textEntry annoCreateMarksLWid "Line width" ::anno_data(linew) NUM
         checkItem annoCreateMarksFill "Fill the symbol" ::anno_data(symbol_fill) NULL
      exclusiveGroupItem END #6
      exclusiveGroupItem annoCreatePixmap "Image"
         fileChooser annoCreatePixmapFile "PPM File" ::anno_data(pixmap,file) FALSE "PPM File, .ppm"
      exclusiveGroupItem END #7
      exclusiveGroupItem annoCreateCmapBar "Colormap Bar"
         textOptMenu  annoCreateCmapBarTy "Bar type" anno_data(cmap,bartype) \
                 "spectrum spectrum uniform uniform linescale linescale discrete discrete" 0 NULL
         textEntry annoCreateCmapBarWd "Bar width" ::anno_data(cmap,width) NUM
         textEntry annoCreateCmapBarHt "Bar height" ::anno_data(cmap,height) NUM
         textEntry annoCreateCmapBarFmt "Num format" ::anno_data(cmap,format) TEXT
         checkItem annoCreateCmapBarInv "Inverse" ::anno_data(cmap,inverse) NULL
      exclusiveGroupItem END #8
    exclusiveGroup END

 #  dropDownEntry annoCreateType "Create " anno_data_List anno_data_type FALSE MENULIKE
 ## textOptMenu annoCreateWin "on Window" anno_data(win) ::anno_data(win_list) 0 NULL
 #  frame annoCreateParam "with"
 #     textEntry annoCreatePmTxtA "Text angle" anno_data:angle NUM
 #     textEntry annoCreatePmLWid "Line width" anno_data:linew NUM
 #     textEntry annoCreatePmSmSz "Symbol size" anno_data:marksize NUM
 #     textOptMenu annoCreatePmFont "Text font" anno_data(font) "small 0 med 1 large 2" 0 NULL
 #     bmpOptMenu annoCreatePmAw "Arrow type" anno_data(arrow) \$vpost_library \$arrowlines_predefined 0 NULL
 #     bmpOptMenu annoCreatePmSmTy  "Symbol type" anno_data(stype) \$vpost_library \$symbols_predefined 6 NULL
 #     colorOptMenu annoCreatePmCol "Default color" anno_data(lcolor) NULL
 #  frame END

  exclusiveGroupItem END #0
  exclusiveGroupItem annoModify "Modify annotation" PP_AnnoteEdit$icon_size2.gif
     textLabel annoModifyText "Pick an annotation with left button, confirm with middle or right button"
  exclusiveGroupItem END #1
  exclusiveGroupItem annoMove "Move annotation" PP_AnnoteMove$icon_size2.gif 
     textLabel annoMoveText "Pick and Move annotations with left button down, escape with middle or right button"
  exclusiveGroupItem END #2
  exclusiveGroupItem annoDelete "Pick and delete annotation" PP_AnnoteSelectDelete$icon_size2.gif
     textLabel annoDeleteText "Pick annotations with left button down to be deleted, done with middle or right button"
  exclusiveGroupItem END #3
  exclusiveGroupItem annoClear "Clear annotations" PP_AnnoteDelete$icon_size2.gif
  exclusiveGroupItem END #4
exclusiveGroup END
dataEntryDialog END

dataEntryDialog annoModifyCircleDEZ "Modify Circle Annotation"
  textEntry annoModifyCircleWid "Line width" ::anno_data(circle,lnwidth) NUM
  textEntry annoModifyCircleRad "Radius"     ::anno_data(circle,rad) NUM
  colorOptMenu annoModifyCircleCol "Color" ::anno_data(circle,color) "aie_modify_anno_pick circle"
  checkItem annoModifyCircleFill "Fill the circle" ::anno_data(circle,fill) \
                         "aie_modify_anno_pick circle {}"
dataEntryDialog END

dataEntryDialog annoModifyBoxDEZ "Modify Box Annotation"
  textEntry annoModifyBoxWid "Line width" ::anno_data(box,lnwidth) NUM
  textEntry annoModifyBoxXL "X length" ::anno_data(box,xl) NUM
  textEntry annoModifyBoxYL "Y length" ::anno_data(box,yl) NUM
  colorOptMenu annoModifyBoxCol "Color" anno_data(box,color) "aie_modify_anno_pick box"
  checkItem annoModifyBoxFill "Fill the box" ::anno_data(box,fill) "aie_modify_anno_pick box {}"
dataEntryDialog END

dataEntryDialog annoModifyLineDEZ "Modify Line Annotation"
  textEntry annoModifyLineWid "Line width" ::anno_data(line,lnwidth) NUM
  bmpOptMenu annoModifyLineAw "Arrow type" anno_data(line,arrow) \$vpost_library \
                        \$arrowlines_predefined 0 "aie_modify_anno_pick line"
  colorOptMenu annoModifyLineCol "Color" anno_data(line,color) "aie_modify_anno_pick line"
  textEntry annoModifyLinePts "End points" ::anno_data(line,pts) NUM
dataEntryDialog END

dataEntryDialog annoModifyPolygonDEZ "Modify Polygon Annotation"
  textEntry annoModifyPolyWid "Line width" ::anno_data(line,lnwidth) NUM
# bmpOptMenu annoModifyPolyAw "Arrow type" anno_data(line,arrow) \$vpost_library \
#                       \$arrowlines_predefined 0 "aie_modify_anno_pick polygon"
  colorOptMenu annoModifyPolyCol "Color" anno_data(line,color) "aie_modify_anno_pick polygon"
  textEntry annoModifyPolyPts "End points" ::anno_data(line,pts) NUM
dataEntryDialog END

dataEntryDialog annoModifyMarkDEZ "Modify Mark/Symbol Annotation"
  bmpOptMenu annoModifyMarkSmTy "Type" anno_data(mark,stype) \$vpost_library \
                        \$symbols_predefined 6 "aie_modify_anno_pick mark"
  textEntry annoModifyMarkSmSz "Size" ::anno_data(mark,ssize) NUM
  textEntry annoModifyMarkLWid "Line width" ::anno_data(mark,lnwidth) NUM
  colorOptMenu annoModifyMarkCol "Color" anno_data(mark,scolor) "aie_modify_anno_pick mark"
  checkItem annoModifyMarkFill "Fill the symbol" ::anno_data(mark,fill) "aie_modify_anno_pick mark {}"
dataEntryDialog END

dataEntryDialog annoModifyTextDEZ "Modify Text Annotation"
  textOptMenu annoModifyTextFt "Text font" anno_data(text,font) \
                        "small 0 med 1 large 2" 0 "aie_modify_anno_pick text"
# textEntry annoModifyTextAg "Text angle" ::anno_data(text,angle) NUM
  colorOptMenu annoModifyTextCol "Color" anno_data(text,lcolor) "aie_modify_anno_pick text"
  textEntry annoModifyTextVal "Text content" ::anno_data(text,text) TEXT
dataEntryDialog END

dataEntryDialog annoModifyUtftextDEZ "Modify Utf Text Annotation"
  textOptMenu annoModifyUTxtFt "Text font" anno_data(utftext,font) \
                       "small 0 med 1 large 2" 0 "aie_modify_anno_pick utftext"
  colorOptMenu annoModifyUTxtCol "Color" anno_data(utftext,lcolor) "aie_modify_anno_pick utftext"
  textEntry annoModifyUTxtVal "Text content" ::anno_data(utftext,text) TEXT
dataEntryDialog END

dataEntryDialog annoModifyCmapDEZ "Modify Colormap Bar Annotation"
  textOptMenu  annoModifyCmapTy "Bar type" anno_data(cmap,bartype) "spectrum spectrum \
                 uniform uniform linescale linescale discrete discrete hidden hidden" \
                 0 "aie_modify_anno_pick cmap"
  textEntry annoModifyCmapWd "Bar width" ::anno_data(cmap,width) NUM
  textEntry annoModifyCmapHt "Bar height" ::anno_data(cmap,height) NUM
  textEntry annoModifyCmapFmt "Num format" ::anno_data(cmap,format) TEXT
  checkItem annoModifyCmapInv "Inverse" ::anno_data(cmap,inverse) "aie_modify_anno_pick cmap {}"
ifdef TEST_ANNO_BG
  checkItem annoModifyCmapLvl "Put In Background" \
             ::anno_data(cmap,level) "aie_modify_anno_pick cmap {}"
endif
dataEntryDialog END

dataEntryDialog annoModifyVframeDEZ "Modify VFrame"
  textEntry annoModifyVFXL "X length" ::anno_data(vframe,xL) NUM
  textEntry annoModifyVFYL "Y length" ::anno_data(vframe,yL) NUM
  textEntry annoModifyVFBwid "Border width" ::anno_data(vframe,borderwidth) NUM
  textOptMenu annoModifyVFBrel "Border relief" anno_data(vframe,relief) \
         "flat flat ridge ridge groove groove sunken sunken raised raised solid solid" \
         0 "aie_modify_anno_pick vframe"
  colorOptMenu annoModifyVFBcol "Border color" \
             anno_data(vframe,bordercolor) "aie_modify_anno_pick vframe"
  colorOptMenu annoModifyVFBG  "Background" \
             anno_data(vframe,background) "aie_modify_anno_pick vframe"
  checkItem annoModifyVFIm "Freeze image" \
             ::anno_data(vframe,draw_im) "aie_modify_anno_pick vframe {}"
ifdef TEST_ANNO_BG
  checkItem annoModifyVFLvl "Put In Background" \
             ::anno_data(vframe,level) "aie_modify_anno_pick vframe {}"
endif
dataEntryDialog END

dataEntryDialog annoModifyPixmapDEZ "Modify Pixmap"
  checkItem annoModifyPixmapLvl "Put In Background" \
             ::anno_data(pixmap,level) "aie_modify_anno_pick pixmap {}"
dataEntryDialog END

dataEntryDialog vpColorMapDEZ "Modify Colormap"
  dropDownEntry vpColorMapPreSet "Preset" vpCMapPreList vpCMapPreOpt FALSE MENULIKE
  frame vpCMapSM "Modify Scale"
     textEntry vpCMapMNum "Entry number" ::cmap_info(nentries) NUM
     textEntry vpCMapMMin "Min value" ::cmap_info(minv) NUM
     textEntry vpCMapMMax "Max value" ::cmap_info(maxv) NUM   
  frame END
  frame vpCMapEM "Modify Entry"
     dropDownEntry vpCMapMEnVal "Value" ::cmap_info(entries) vpCMapEnVal FALSE WRITABLE
     colorOptMenu vpCMapMEnCol "Color" cmap_info(ecol) "aie_modify_vpcmap set_ecol"
  frame END
# entityButton vpCMapAddEn "Add entry" select_location$icon_size2.gif cmap_info:addval \
#                    "aie_modify_vpcmap add_entry" "Add a new entry"
  entryButton vpCMapAddEn "Add entry" NULL cmap_info:addval \
                     "aie_modify_vpcmap add_entry" "Add a new entry"
  frame vpCMapIM "Modify Intensity"
     entryButton vpCMapIMty "Intensitify with" NULL cmap_info:intensity \
                     "aie_modify_vpcmap intensity" "Intensitify"
     entryButton vpCMapIMsc "Trianglize with" NULL cmap_info:mscale \
                     "aie_modify_vpcmap mscale" "Mutiple Scale"
     entryButton vpCMapIMSc2 "Sinusoidalize with" NULL cmap_info:mscale2 \
                     "aie_modify_vpcmap mscale2" "Sinusoidalize"
     entryButton vpCMapIMSt  "Multiplicate with" NULL cmap_info:strip \
                     "aie_modify_vpcmap strip" "Multiple Strips"
  frame END
# textButton vpCMapMIv "Inverse map" "aie_modify_vpcmap inverse {}"
# textButton vpCMapMRS "Direct rescale" "aie_modify_vpcmap rescale {}"
dataEntryDialog END


