Linux "viewres" Command Line Options and Examples
graphical class browser for Xt

The viewres program displays a tree showing the widget class hierarchy of the Athena Widget Set. Each node in the tree can be expanded to show the resources that the corresponding class adds (i.e.


Usage:

viewres [-option ...]






Command Line Options:

-top
This option specifies the name of the highest widget in the hierarchy to display. This is typicallyused to limit the display to a subset of the tree. The default is Object.
viewres -top ...
-variable
This option indicates that the widget variable names (as declared in header files) should be displayedin the nodes rather than the widget class name. This is sometimes useful to distinguish widgetclasses that share the same name (such as Text).
viewres -variable ...
-vertical
This option indicates that the tree should be displayed top to bottom rather left to right.VIEW MENUThe way in which the tree is displayed may be changed through the entries in the View menu:Show Variable NamesThis entry causes the node labels to be set to the variable names used to declare the correspondingwidget class. This operation may also be performed with the SetLabelType(variable) translation.Show Class NamesThis entry causes the node labels to be set to the class names used when specifying resources. Thisoperation may also be performed with the SetLabelType(class) translation.Layout HorizontalThis entry causes the tree to be laid out from left to right. This operation may also be performedwith the SetOrientation(West) translation.Layout VerticalThis entry causes the tree to be laid out from top to bottom. This operation may also be performedwith the SetOrientation(North) translation.Show Resource BoxesThis entry expands the selected nodes (see next section) to show the new widget and constraintresources. This operation may also be performed with the Resources(on) translation.Hide Resource BoxesThis entry removes the resource displays from the selected nodes (usually to conserve space). Thisoperation may also be performed with the Resources(off) translation.SELECT MENUResources for a single widget class can be displayed by clicking Button2 on the corresponding node, or byadding the node to the selection list with Button1 and using the Show Resource Boxes entry in the View menu.Since Button1 actually toggles the selection state of a node, clicking on a selected node will cause it to beremoved from the selected list.Collections of nodes may also be selected through the various entries in the Select menu:Unselect AllThis entry removes all nodes from the selection list. This operation may also be performed with theSelect(nothing) translation.Select AllThis entry adds all nodes to the selection list. This operation may also be performed with theSelect(all) translation.Invert AllThis entry adds unselected nodes to, and removes selected nodes from, the selection list. This opera‐tion may also be performed with the Select(invert) translation.Select ParentThis entry selects the immediate parents of all selected nodes. This operation may also be performedwith the Select(parent) translation.Select AncestorsThis entry recursively selects all parents of all selected nodes. This operation may also be per‐formed with the Select(ancestors) translation.Select ChildrenThis entry selects the immediate children of all selected nodes. This operation may also be performedwith the Select(children) translation.Select DescendantsThis entry recursively selects all children of all selected nodes. This operation may also be per‐formed with the Select(descendants) translation.Select Has ResourcesThis entry selects all nodes that add new resources (regular or constraint) to their correspondingwidget classes. This operation may also be performed with the Select(resources) translation.Select Shown Resource BoxesThis entry selects all nodes whose resource boxes are currently expanded (usually so that they can beclosed with Hide Resource Boxes). This operation may also be performed with the Select(shown) trans‐lation.ACTIONSThe following application actions are provided:Quit()This action causes viewres to exit.SetLabelType(type)This action sets the node labels to display the widget variable or class names, according to the argu‐ment type.SetOrientation(direction)This action sets the root of the tree to be one of the following areas of the window: West, North,East, or South.Select(what)This action selects the indicated nodes, as described in the VIEW MENU section: nothing (unselects allnodes), invert, parent, ancestors, children, descendants, resources, shown.Resources(op)This action turns on, off, or toggles the resource boxes for the selected nodes. If invoked fromwithin one of the nodes (through the keyboard or pointer), only that node is used.WIDGET HIERARCHYResources may be specified for the following widgets:Viewres viewresPaned paneBox buttonboxCommand quitMenuButton viewSimpleMenu viewMenuSmeBSB layoutHorizontalSmeBSB layoutVerticalSmeLine line1SmeBSB namesVariableSmeBSB namesClassSmeLine line2SmeBSB viewResourcesSmeBSB viewNoResourcesMenuButton selectSimpleMenu selectMenuSmeBSB unselectSmeBSB selectAllSmeBSB selectInvertSmeLine line1SmeBSB selectParentSmeBSB selectAncestorsSmeBSB selectChildrenSmeBSB selectDescendantsSmeLine line2SmeBSB selectHasResourcesSmeBSB selectShownResourcesForm treeformPorthole portholeTree treeBox variable-nameToggle variable-nameList variable-namePanner pannerwhere variable-name is the widget variable name of each node.
viewres -vertical ...