home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / clients / editres / Editres.ad < prev    next >
Encoding:
Text File  |  1991-07-20  |  5.3 KB  |  176 lines

  1.  
  2. ! The App-defaults file for Editres.
  3.  
  4. ! The top few items are strictly to make it look `nice', users may
  5. ! modify these as they see fit.
  6.  
  7. Editres.Geometry:            500x600
  8.  
  9. *ShapeStyle:                Oval
  10. *Tree*ShapeStyle:            Rectangle
  11.  
  12. ! The rest of this file are either button names, or important for
  13. ! functionality, modifying these values may cause strange program
  14. ! behavior.
  15.  
  16. *flash.BorderWidth:            0
  17.  
  18. ! Menu Button Names
  19.  
  20. *Box*commands.Label:            Commands
  21. *Box*treeCommands.Label:        Tree
  22.  
  23. ! Menu Entry Names
  24.  
  25. *SimpleMenu*sendTree.Label:        Get Widget Tree
  26. *SimpleMenu*refreshTree.Label:        Refresh Current Widget Tree
  27. *SimpleMenu*dumpTreeToFile.Label:    Dump Widget Tree to a File
  28. *SimpleMenu*getResourceList.Label:    Show Resource Box
  29. *SimpleMenu*setValues.Label:        Set Resource
  30. *SimpleMenu*quit.Label:            Quit
  31.  
  32.  
  33. *SimpleMenu*showClientWidget.Label:    Select Widget in Client
  34. *SimpleMenu*selectAll.Label:        Select All
  35. *SimpleMenu*unselectAll.Label:        Unselect All
  36. *SimpleMenu*invertAll.Label:        Invert All
  37. *SimpleMenu*selectChildren.Label:    Select Children
  38. *SimpleMenu*selectParent.Label:        Select Parent
  39. *SimpleMenu*selectDescendants.Label:    Select Descendants
  40. *SimpleMenu*selectAncestors.Label:    Select Ancestors
  41. *SimpleMenu*showWidgetNames.Label:    Show Widget Names
  42. *SimpleMenu*showClassNames.Label:    Show Class Names
  43. *SimpleMenu*showWidgetIDs.Label:    Show Widget IDs
  44. *SimpleMenu*showWidgetWindows.Label:    Show Widget Windows
  45. *SimpleMenu*flashActiveWidgets.Label:    Flash Active Widgets
  46.  
  47. *MenuButton.leftBitmap:            menu10
  48.  
  49. ! For the Top Area
  50.  
  51. *hPane.orientation:            horizontal
  52. *hPane.preferredPaneSize:        100
  53. *hPane.Panner.width:            100
  54. *hPane.Panner.height:            100
  55. *hPane.Panner.preferredPaneSize:    100
  56. *paned*Panner.showGrip:            False
  57. *paned.box.showGrip:            False
  58. *paned.hPane.showGrip:            True
  59.  
  60. ! For the Filename popup dialog.
  61.  
  62. *fileDialog*value:        
  63. *fileDialog*allowShellResize:        True
  64. *fileDialog*Text.baseTranslations:    #override \n\
  65.     <Key>Return:        PopdownFileDialog(okay)
  66.  
  67. ! Resources for the Resource Box.
  68.  
  69. *resourceBox*resourceLabel.font:            \
  70. -*-new century schoolbook-bold-r-*-*-20-*-*-*-*-*-*-*
  71.  
  72. *resourceBox.allowShellResize:                True
  73.  
  74. *resourceBox*resourceLabel.allowResize:            True
  75.  
  76. *resourceBox*List.verticalList:                True
  77.  
  78. *resourceBox*namesAndClasses*BorderWidth:        0
  79. *resourceBox*star.Label:                *
  80. *resourceBox*dot.Label:                    .
  81. *resourceBox*single.Label:                Any Widget
  82. *resourceBox*any.Label:                    Any Widget Chain
  83.  
  84. *resourceBox*namesLabel.Label:                Normal Resources
  85. *resourceBox*namesLabel.font:                \
  86. -*-new century schoolbook-bold-r-*-*-17-*-*-*-*-*-*-*
  87. *resourceBox*constraintLabel.Label:            Constraint Resources
  88. *resourceBox*constraintLabel.font:            \
  89. -*-new century schoolbook-bold-r-*-*-17-*-*-*-*-*-*-*
  90.  
  91.  
  92. *resourceBox*valueLabel.Label:                Enter Resource Value:
  93. *resourceBox*valueLabel.BorderWidth:            0
  94.  
  95. *resourceBox*valueForm*preferredPaneSize:        100
  96.  
  97. *resourceBox*valueText*editType:            edit
  98. *resourceBox*valueText.Scroll:                WhenNeeded
  99. *resourceBox*valueText.width:                300
  100.  
  101. *resourceBox*setFile.Label:                Set Save File
  102. *resourceBox*save.Label:                Save
  103. *resourceBox*apply.Label:                Apply
  104. *resourceBox*saveAndApply.Label:            Save and Apply
  105. *resourceBox*commandBox.cancel.Label:            Popdown Resource Box
  106.  
  107. ! This gives us an exactly one of many toggle, if toggle is
  108. ! not set in each group the application will probabally core dump.
  109.  
  110. *namesAndClasses*Toggle.baseTranslations: #override \n\
  111.     <Btn1Down>,<Btn1Up>:   set() notify()
  112.     
  113.  
  114. *commandBox.skipAdjust:                True
  115.  
  116. ! Keyboard Actions for Tree and children of the Tree.
  117.  
  118. *Tree.baseTranslations:    #override \n\
  119.     :<Key>space:        Select(nothing) \n\
  120.     :<Key>w:        Select(widget) \n\
  121.     :<Key>s:        Select(all) \n\
  122.     :<Key>i:        Select(invert) \n\
  123.     :<Key>c:        Select(children) \n\
  124.     :<Key>d:        Select(descendants) \n\
  125.     :<Key>p:        Select(parent) \n\
  126.     :<Key>a:        Select(ancestors) \n\
  127.     :<Key>N:        Relabel(name) \n\
  128.     :<Key>C:        Relabel(class) \n\
  129.     :<Key>I:        Relabel(id) \n\
  130.     :<Key>W:        Relabel(window) 
  131.  
  132. *Tree.Toggle.baseTranslations:    #override \n\
  133.     :<Key>space:        Select(nothing) \n\
  134.     :<Key>w:        Select(widget) \n\
  135.     :<Key>s:        Select(all) \n\
  136.     :<Key>i:        Select(invert) \n\
  137.     :<Key>c:        Select(children) \n\
  138.     :<Key>d:        Select(descendants) \n\
  139.     :<Key>p:        Select(parent) \n\
  140.     :<Key>a:        Select(ancestors) \n\
  141.     :<Key>N:        Relabel(name) \n\
  142.     :<Key>C:        Relabel(class) \n\
  143.     :<Key>I:        Relabel(id) \n\
  144.     :<Key>W:        Relabel(window) \n\
  145.     <Btn2Down>,<Btn2Up>:    Select(nothing) toggle() notify() \n\
  146.     <Btn3Down>,<Btn3Up>:    Relabel(toggle)
  147.  
  148. ! For the SetValues popup
  149.  
  150. *setValuesPopup*resizable:        True
  151. *setValuesPopup*left:            ChainLeft
  152. *setValuesPopup*right:            ChainLeft
  153.  
  154. *setValuesPopup*label*Label:        Use <Tab> to Change Fields.
  155. *setValuesPopup*Label*BorderWidth:    0
  156.  
  157. *setValuesPopup*resourceLabel.Label:    Resource Name:
  158. *setValuesPopup*valueLabel.Label:    Value:
  159. *SimpleMenu*setValuesPopup*setValues.Label:    Apply
  160. *setValuesPopup*cancel.Label:        Cancel
  161.  
  162. *setValuesPopup*Text*EditType:        Edit
  163. *setValuesPopup*Text*resize:        Width
  164.  
  165. *setValuesPopup*resourceText.baseTranslations: #override \
  166.   <Key>Return:            no-op(RingBell) \n\
  167.    Ctrl<Key>q,<Key>Tab:    insert-char()    \n\
  168.    <Btn1Down>:             select-start() SVActiveEntry(Resource) \n\
  169.    <Key>Tab:               SVActiveEntry(Value)
  170.  
  171. *setValuesPopup*valueText.baseTranslations: #override \
  172.    <Key>Return:            no-op(RingBell) \n\
  173.    Ctrl<Key>q,<Key>Tab:    insert-char()     \n\
  174.    <Btn1Down>:             select-start() SVActiveEntry(Value)\n\
  175.    <Key>Tab:               SVActiveEntry(Resource)
  176.