Copyright (c) 1994 X Consortium
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of the X Consortium shall
not be used in advertising or otherwise to promote the sale, use or
other dealings in this Software without prior written authorization
from the X Consortium.
$XFree86: xc/programs/viewres/viewres.man,v 1.3 2001/01/27 18:21:07 dawes Exp $
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. does not inherit from its parent) when a widget is created. This application allows the user to visually examine the structure and inherited resources for the Athena Widget Set.
8 -top name This option specifies the name of the highest widget in the hierarchy to display. This is typically used to limit the display to a subset of the tree. The default is Object.
8 -variable This option indicates that the widget variable names (as declared in header files) should be displayed in the nodes rather than the widget class name. This is sometimes useful to distinguish widget classes that share the same name (such as Text).
8 -vertical This option indicates that the tree should be displayed top to bottom rather left to right.
8 "Show Variable Names" This entry causes the node labels to be set to the variable names used to declare the corresponding widget class. This operation may also be performed with the SetLabelType(variable) translation.
8 "Show Class Names" This entry causes the node labels to be set to the class names used when specifying resources. This operation may also be performed with the SetLabelType(class) translation.
8 "Layout Horizontal" This entry causes the tree to be laid out from left to right. This operation may also be performed with the SetOrientation(West) translation.
8 "Layout Vertical" This entry causes the tree to be laid out from top to bottom. This operation may also be performed with the SetOrientation(North) translation.
8 "Show Resource Boxes" This entry expands the selected nodes (see next section) to show the new widget and constraint resources. This operation may also be performed with the Resources(on) translation.
8 "Hide Resource Boxes" This entry removes the resource displays from the selected nodes (usually to conserve space). This operation may also be performed with the Resources(off) translation.
Collections of nodes may also be selected through the various entries in the Select menu:
8 "Unselect All" This entry removes all nodes from the selection list. This operation may also be performed with the Select(nothing) translation.
8 "Select All" This entry adds all nodes to the selection list. This operation may also be performed with the Select(all) translation.
8 "Invert All" This entry adds unselected nodes to, and removes selected nodes from, the selection list. This operation may also be performed with the Select(invert) translation.
8 "Select Parent" This entry selects the immediate parents of all selected nodes. This operation may also be performed with the Select(parent) translation.
8 "Select Ancestors" This entry recursively selects all parents of all selected nodes. This operation may also be performed with the Select(ancestors) translation.
8 "Select Children" This entry selects the immediate children of all selected nodes. This operation may also be performed with the Select(children) translation.
8 "Select Descendants" This entry recursively selects all children of all selected nodes. This operation may also be performed with the Select(descendants) translation.
8 "Select Has Resources" This entry selects all nodes that add new resources (regular or constraint) to their corresponding widget classes. This operation may also be performed with the Select(resources) translation.
8 "Select Shown Resource Boxes" This entry selects all nodes whose resource boxes are currently expanded (usually so that they can be closed with Hide Resource Boxes). This operation may also be performed with the Select(shown) translation.
8 "Quit()"
This action causes viewres to exit.
8 "SetLabelType(type)" This action sets the node labels to display the widget variable or class names, according to the argument type.
8 "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.
8 "Select(what)" This action selects the indicated nodes, as described in the VIEW MENU section: nothing (unselects all nodes), invert, parent, ancestors, children, descendants, resources, shown.
8 "Resources(op)" This action turns on, off, or toggles the resource boxes for the selected nodes. If invoked from within one of the nodes (through the keyboard or pointer), only that node is used.
Viewres viewres Paned pane Box buttonbox Command quit MenuButton view SimpleMenu viewMenu SmeBSB layoutHorizontal SmeBSB layoutVertical SmeLine line1 SmeBSB namesVariable SmeBSB namesClass SmeLine line2 SmeBSB viewResources SmeBSB viewNoResources MenuButton select SimpleMenu selectMenu SmeBSB unselect SmeBSB selectAll SmeBSB selectInvert SmeLine line1 SmeBSB selectParent SmeBSB selectAncestors SmeBSB selectChildren SmeBSB selectDescendants SmeLine line2 SmeBSB selectHasResources SmeBSB selectShownResources Form treeform Porthole porthole Tree tree Box variable-name Toggle variable-name List variable-name Panner pannerwhere variable-name is the widget variable name of each node.