viewres1
Graphical class browser for xt
Usage
viewres [-option ...]
Overview
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.
Options
Viewres accepts all of the standard toolkit command line options as well as the following:
-
-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.
-
-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).
-
-vertical -
This option indicates that the tree should be displayed top to bottom rather left to right.
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, according 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: nothing (unselects all nodes), 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 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 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 treeBoxvariable-nameTogglevariable-nameListvariable-namePanner panner
where variable-name is the widget variable name of each node.
Releases
10 releases since Debian 4.0 (Etch); the text changed 6 times.