{
    "content": [
        {
            "type": "text",
            "text": "# VIEWRES(1) (man)\n\n**Summary:** viewres - graphical class browser for Xt\n\n**Synopsis:** viewres [-option ...]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | — | — | This option specifies the name of the highest widget in the hierarchy to display. This is typically used to limit the di |\n| — | — | — | This option indicates that the widget variable names (as declared in header files) should be displayed in the nodes rath |\n| — | — | — | This option indicates that the tree should be displayed top to bottom rather left to right. |\n\n## See Also\n\n- X(7)\n- xrdb(1)\n- listres(1)\n- editres(1)\n- appres(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (6 lines)\n- **OPTIONS** (2 lines) — 3 subsections\n  - -top (4 lines)\n  - -variable (4 lines)\n  - -vertical (3 lines)\n- **VIEW MENU** (2 lines) — 6 subsections\n  - Show Variable Names (4 lines)\n  - Show Class Names (4 lines)\n  - Layout Horizontal (3 lines)\n  - Layout Vertical (3 lines)\n  - Show Resource Boxes (4 lines)\n  - Hide Resource Boxes (3 lines)\n- **SELECT MENU** (7 lines) — 9 subsections\n  - Unselect All (3 lines)\n  - Select All (3 lines)\n  - Invert All (3 lines)\n  - Select Parent (3 lines)\n  - Select Ancestors (3 lines)\n  - Select Children (3 lines)\n  - Select Descendants (3 lines)\n  - Select Has Resources (4 lines)\n  - Select Shown Resource Boxes (4 lines)\n- **ACTIONS** (2 lines) — 1 subsections\n  - Quit() (20 lines)\n- **WIDGET HIERARCHY** (39 lines)\n- **SEE ALSO** (2 lines)\n- **COPYRIGHT** (3 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\nviewres - graphical class browser for Xt\n\n### SYNOPSIS\n\nviewres [-option ...]\n\n### DESCRIPTION\n\nThe  viewres  program displays a tree showing the widget class hierarchy of the Athena Widget\nSet.  Each node in the tree can be expanded to show  the  resources  that  the  corresponding\nclass  adds  (i.e. does not inherit from its parent) when a widget is created.  This applica‐\ntion allows the user to visually examine the structure and inherited resources for the Athena\nWidget Set.\n\n### OPTIONS\n\nViewres accepts all of the standard toolkit command line options as well as the following:\n\n#### -top\n\nThis  option  specifies  the  name of the highest widget in the hierarchy to display.\nThis is typically used to limit the display to a subset of the tree.  The default  is\nObject.\n\n#### -variable\n\nThis  option  indicates  that the widget variable names (as declared in header files)\nshould be displayed in the nodes rather than the widget class name.   This  is  some‐\ntimes useful to distinguish widget classes that share the same name (such as Text).\n\n#### -vertical\n\nThis  option indicates that the tree should be displayed top to bottom rather left to\nright.\n\n### VIEW MENU\n\nThe way in which the tree is displayed may be changed through the entries in the View menu:\n\n#### Show Variable Names\n\nThis entry causes the node labels to be set to the variable names used to declare the\ncorresponding  widget class.  This operation may also be performed with the SetLabel‐‐\nType(variable) translation.\n\n#### Show Class Names\n\nThis entry causes the node labels to be set to the class names used  when  specifying\nresources.   This operation may also be performed with the SetLabelType(class) trans‐\nlation.\n\n#### Layout Horizontal\n\nThis entry causes the tree to be laid out from left to  right.   This  operation  may\nalso be performed with the SetOrientation(West) translation.\n\n#### Layout Vertical\n\nThis  entry  causes  the  tree to be laid out from top to bottom.  This operation may\nalso be performed with the SetOrientation(North) translation.\n\n#### Show Resource Boxes\n\nThis entry expands the selected nodes (see next section) to show the new  widget  and\nconstraint  resources.   This  operation may also be performed with the Resources(on)\ntranslation.\n\n#### Hide Resource Boxes\n\nThis entry removes the resource displays from the selected nodes (usually to conserve\nspace).  This operation may also be performed with the Resources(off) translation.\n\n### SELECT MENU\n\nResources for a single widget class can be displayed by clicking Button2 on the corresponding\nnode, or by adding the node to the selection list with Button1 and using  the  Show  Resource\nBoxes  entry in the View menu.  Since Button1 actually toggles the selection state of a node,\nclicking on a selected node will cause it to be removed from the selected list.\n\nCollections of nodes may also be selected through the various entries in the Select menu:\n\n#### Unselect All\n\nThis entry removes all nodes from the selection list.  This  operation  may  also  be\nperformed with the Select(nothing) translation.\n\n#### Select All\n\nThis  entry  adds  all  nodes to the selection list.  This operation may also be per‐\nformed with the Select(all) translation.\n\n#### Invert All\n\nThis entry adds unselected nodes to, and removes selected nodes from,  the  selection\nlist.  This operation may also be performed with the Select(invert) translation.\n\n#### Select Parent\n\nThis  entry  selects the immediate parents of all selected nodes.  This operation may\nalso be performed with the Select(parent) translation.\n\n#### Select Ancestors\n\nThis entry recursively selects all parents of all selected nodes.  This operation may\nalso be performed with the Select(ancestors) translation.\n\n#### Select Children\n\nThis  entry selects the immediate children of all selected nodes.  This operation may\nalso be performed with the Select(children) translation.\n\n#### Select Descendants\n\nThis entry recursively selects all children of all selected  nodes.   This  operation\nmay also be performed with the Select(descendants) translation.\n\n#### Select Has Resources\n\nThis  entry selects all nodes that add new resources (regular or constraint) to their\ncorresponding widget classes.  This operation may also  be  performed  with  the  Se‐\nlect(resources) translation.\n\n#### Select Shown Resource Boxes\n\nThis  entry selects all nodes whose resource boxes are currently expanded (usually so\nthat they can be closed with Hide Resource Boxes).  This operation may also  be  per‐\nformed with the Select(shown) translation.\n\n### ACTIONS\n\nThe following application actions are provided:\n\n#### Quit()\n\nThis action causes viewres to exit.\n\nSetLabelType(type)\nThis  action  sets the node labels to display the widget variable or class names, ac‐\ncording to the argument type.\n\nSetOrientation(direction)\nThis action sets the root of the tree to be one of the following areas of the window:\nWest, North, East, or South.\n\nSelect(what)\nThis action selects the indicated nodes, as described in the VIEW MENU section: noth‐\ning (unselects all nodes), invert,  parent,  ancestors,  children,  descendants,  re‐\nsources, shown.\n\nResources(op)\nThis  action turns on, off, or toggles the resource boxes for the selected nodes.  If\ninvoked from within one of the nodes (through the keyboard  or  pointer),  only  that\nnode is used.\n\n### WIDGET HIERARCHY\n\nResources may be specified for the following widgets:\n\nViewres viewres\nPaned pane\nBox buttonbox\nCommand quit\nMenuButton view\nSimpleMenu viewMenu\nSmeBSB layoutHorizontal\nSmeBSB layoutVertical\nSmeLine line1\nSmeBSB namesVariable\nSmeBSB namesClass\nSmeLine line2\nSmeBSB viewResources\nSmeBSB viewNoResources\nMenuButton select\nSimpleMenu selectMenu\nSmeBSB unselect\nSmeBSB selectAll\nSmeBSB selectInvert\nSmeLine line1\nSmeBSB selectParent\nSmeBSB selectAncestors\nSmeBSB selectChildren\nSmeBSB selectDescendants\nSmeLine line2\nSmeBSB selectHasResources\nSmeBSB selectShownResources\nForm treeform\nPorthole porthole\nTree tree\nBox variable-name\nToggle variable-name\nList variable-name\nPanner panner\n\nwhere variable-name is the widget variable name of each node.\n\n### SEE ALSO\n\nX(7), xrdb(1), listres(1), editres(1), appres(1), appropriate widget documents\n\n### COPYRIGHT\n\nCopyright 1994 X Consortium\nSee X(7) for a full statement of rights and permissions.\n\n### AUTHOR\n\nJim Fulton, MIT X Consortium\n\n\n\nX Version 11                                viewres 1.0.6                                 VIEWRES(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "VIEWRES",
        "section": "1",
        "mode": "man",
        "summary": "viewres - graphical class browser for Xt",
        "synopsis": "viewres [-option ...]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "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."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "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)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This option indicates that the tree should be displayed top to bottom rather left to right."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "X",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/X/7/json"
            },
            {
                "name": "xrdb",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/xrdb/1/json"
            },
            {
                "name": "listres",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/listres/1/json"
            },
            {
                "name": "editres",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/editres/1/json"
            },
            {
                "name": "appres",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/appres/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-top",
                        "lines": 4
                    },
                    {
                        "name": "-variable",
                        "lines": 4
                    },
                    {
                        "name": "-vertical",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "VIEW MENU",
                "lines": 2,
                "subsections": [
                    {
                        "name": "Show Variable Names",
                        "lines": 4
                    },
                    {
                        "name": "Show Class Names",
                        "lines": 4
                    },
                    {
                        "name": "Layout Horizontal",
                        "lines": 3
                    },
                    {
                        "name": "Layout Vertical",
                        "lines": 3
                    },
                    {
                        "name": "Show Resource Boxes",
                        "lines": 4
                    },
                    {
                        "name": "Hide Resource Boxes",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "SELECT MENU",
                "lines": 7,
                "subsections": [
                    {
                        "name": "Unselect All",
                        "lines": 3
                    },
                    {
                        "name": "Select All",
                        "lines": 3
                    },
                    {
                        "name": "Invert All",
                        "lines": 3
                    },
                    {
                        "name": "Select Parent",
                        "lines": 3
                    },
                    {
                        "name": "Select Ancestors",
                        "lines": 3
                    },
                    {
                        "name": "Select Children",
                        "lines": 3
                    },
                    {
                        "name": "Select Descendants",
                        "lines": 3
                    },
                    {
                        "name": "Select Has Resources",
                        "lines": 4
                    },
                    {
                        "name": "Select Shown Resource Boxes",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "ACTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "Quit()",
                        "lines": 20
                    }
                ]
            },
            {
                "name": "WIDGET HIERARCHY",
                "lines": 39,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}