# VIEWRES(1) - man - phpman

[VIEWRES(1)](https://www.chedong.com/phpMan.php/man/VIEWRES/1/markdown)                             General Commands Manual                            [VIEWRES(1)](https://www.chedong.com/phpMan.php/man/VIEWRES/1/markdown)



## NAME
       viewres - graphical class browser for Xt

## SYNOPSIS
       **viewres** [-option ...]

## DESCRIPTION
       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 applica‐
       tion allows the user to visually examine the structure and inherited resources for the Athena
       Widget Set.

## OPTIONS
       _Viewres_ accepts all of the standard toolkit command line options as well as the following:

### -top
               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_.

### -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  some‐
               times useful to distinguish widget classes that share the same name (such as _Text_).

### -vertical
               This  option indicates that the tree should be displayed top to bottom rather left to
               right.

## VIEW MENU
       The way in which the tree is displayed may be changed through the entries in the **View** menu:

### 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 **SetLabel**‐‐
               **Type(variable)** translation.

### 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)** trans‐
               lation.

### 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.

### 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.

### 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.

### 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.

## SELECT MENU
       Resources for a single widget class can be displayed by clicking **Button2** on the corresponding
       node, or by adding 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 be removed from the selected list.

       Collections of nodes may also be selected through the various entries in the **Select** menu:

### Unselect All
               This entry removes all nodes from the selection list.  This  operation  may  also  be
               performed with the [_Select(nothing)](https://www.chedong.com/phpMan.php/man/Select/nothing/markdown)_ translation.

### Select All
               This  entry  adds  all  nodes to the selection list.  This operation may also be per‐
               formed with the _Select(all)_ translation.

### 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.

### Select Parent
               This  entry  selects the immediate parents of all selected nodes.  This operation may
               also be performed with the _Select(parent)_ translation.

### Select Ancestors
               This entry recursively selects all parents of all selected nodes.  This operation may
               also be performed with the _Select(ancestors)_ translation.

### Select Children
               This  entry selects the immediate children of all selected nodes.  This operation may
               also be performed with the _Select(children)_ translation.

### Select Descendants
               This entry recursively selects all children of all selected  nodes.   This  operation
               may also be performed with the _Select(descendants)_ translation.

### 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  _Se__‐
               _lect(resources)_ translation.

### 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  per‐
               formed with the _Select(shown)_ translation.

## ACTIONS
       The 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, ac‐
               cording to the argument _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: _noth__‐
               _ing_ (unselects all nodes), _invert_,  _parent_,  _ancestors_,  _children_,  _descendants_,  _re__‐
               _sources_, _shown_.

       **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.

## WIDGET HIERARCHY
       Resources may be specified for the following widgets:

       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 panner

       _where_ _variable-name_ _is_ _the_ _widget_ _variable_ _name_ _of_ _each_ _node._

## SEE ALSO
       [X(7)](https://www.chedong.com/phpMan.php/man/X/7/markdown), [xrdb(1)](https://www.chedong.com/phpMan.php/man/xrdb/1/markdown), [listres(1)](https://www.chedong.com/phpMan.php/man/listres/1/markdown), [editres(1)](https://www.chedong.com/phpMan.php/man/editres/1/markdown), [appres(1)](https://www.chedong.com/phpMan.php/man/appres/1/markdown), appropriate widget documents

## COPYRIGHT
       Copyright 1994 X Consortium
       See [_X(7)](https://www.chedong.com/phpMan.php/man/X/7/markdown)_ for a full statement of rights and permissions.

## AUTHOR
       Jim Fulton, MIT X Consortium



X Version 11                                viewres 1.0.6                                 [VIEWRES(1)](https://www.chedong.com/phpMan.php/man/VIEWRES/1/markdown)
