279 lines
9.8 KiB
HTML
279 lines
9.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of VIEWRES</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>VIEWRES</H1>
|
|
Section: User Commands (1)<BR>Updated: viewres 1.0.6<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
viewres - graphical class browser for Xt
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>viewres</B>
|
|
|
|
[-option ...]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
The <I>viewres</I> 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.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<I>Viewres</I> accepts all of the standard toolkit command line options as
|
|
well as the following:
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-top </B><I>name</I>
|
|
|
|
<DD>
|
|
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 <I>Object</I>.
|
|
<DT id="2"><B>-variable</B>
|
|
|
|
<DD>
|
|
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 <I>Text</I>).
|
|
<DT id="3"><B>-vertical</B>
|
|
|
|
<DD>
|
|
This option indicates that the tree should be displayed top to bottom
|
|
rather left to right.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>VIEW MENU</H2>
|
|
|
|
The way in which the tree is displayed may be changed through the
|
|
entries in the <B>View</B> menu:
|
|
<DL COMPACT>
|
|
<DT id="4"><B>Show Variable Names</B>
|
|
|
|
<DD>
|
|
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 <B>SetLabelType(variable)</B> translation.
|
|
<DT id="5"><B>Show Class Names</B>
|
|
|
|
<DD>
|
|
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
|
|
<B>SetLabelType(class)</B> translation.
|
|
<DT id="6"><B>Layout Horizontal</B>
|
|
|
|
<DD>
|
|
This entry causes the tree to be laid out from left to right. This operation
|
|
may also be performed with the <I>SetOrientation(West)</I> translation.
|
|
<DT id="7"><B>Layout Vertical</B>
|
|
|
|
<DD>
|
|
This entry causes the tree to be laid out from top to bottom. This operation
|
|
may also be performed with the <I>SetOrientation(North)</I> translation.
|
|
<DT id="8"><B>Show Resource Boxes</B>
|
|
|
|
<DD>
|
|
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 <I>Resources(on)</I> translation.
|
|
<DT id="9"><B>Hide Resource Boxes</B>
|
|
|
|
<DD>
|
|
This entry removes the resource displays from the selected nodes (usually to
|
|
conserve space). This operation
|
|
may also be performed with the <I>Resources(off)</I> translation.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SELECT MENU</H2>
|
|
|
|
Resources for a single widget class can be displayed by clicking
|
|
<B>Button2</B> on the corresponding node, or by adding the node to the
|
|
selection list with <B>Button1</B> and using the <B>Show Resource Boxes</B>
|
|
entry in the <B>View</B> menu. Since <B>Button1</B> actually toggles the
|
|
selection state of a node, clicking on a selected node will cause it to be
|
|
removed from the selected list.
|
|
<P>
|
|
|
|
Collections of nodes may also be selected through the various entries in
|
|
the <B>Select</B> menu:
|
|
<DL COMPACT>
|
|
<DT id="10"><B>Unselect All</B>
|
|
|
|
<DD>
|
|
This entry removes all nodes from the selection list. This operation
|
|
may also be performed with the <I>Select(nothing)</I> translation.
|
|
<DT id="11"><B>Select All</B>
|
|
|
|
<DD>
|
|
This entry adds all nodes to the selection list. This operation
|
|
may also be performed with the <I>Select(all)</I> translation.
|
|
<DT id="12"><B>Invert All</B>
|
|
|
|
<DD>
|
|
This entry adds unselected nodes to, and removes selected nodes from, the
|
|
selection list. This operation
|
|
may also be performed with the <I>Select(invert)</I> translation.
|
|
<DT id="13"><B>Select Parent</B>
|
|
|
|
<DD>
|
|
This entry selects the immediate parents of all selected nodes. This operation
|
|
may also be performed with the <I>Select(parent)</I> translation.
|
|
<DT id="14"><B>Select Ancestors</B>
|
|
|
|
<DD>
|
|
This entry recursively selects all parents of all selected nodes. This
|
|
operation may also be performed with the <I>Select(ancestors)</I> translation.
|
|
<DT id="15"><B>Select Children</B>
|
|
|
|
<DD>
|
|
This entry selects the immediate children of all selected nodes. This
|
|
operation may also be performed with the <I>Select(children)</I> translation.
|
|
<DT id="16"><B>Select Descendants</B>
|
|
|
|
<DD>
|
|
This entry recursively selects all children of all selected nodes. This
|
|
operation may also be performed with the <I>Select(descendants)</I> translation.
|
|
<DT id="17"><B>Select Has Resources</B>
|
|
|
|
<DD>
|
|
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 <I>Select(resources)</I> translation.
|
|
<DT id="18"><B>Select Shown Resource Boxes</B>
|
|
|
|
<DD>
|
|
This entry selects all nodes whose resource boxes are currently expanded
|
|
(usually so that they can be closed with <B>Hide Resource Boxes</B>). This
|
|
operation may also be performed with the <I>Select(shown)</I> translation.
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>ACTIONS</H2>
|
|
|
|
The following application actions are provided:
|
|
<DL COMPACT>
|
|
<DT id="19"><B>Quit()</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This action causes <I>viewres</I> to exit.
|
|
<DT id="20"><B>SetLabelType(</B><I>type</I>)
|
|
|
|
<DD>
|
|
This action sets the node labels to display the widget <I>variable</I> or
|
|
<I>class</I> names, according to the argument <I>type</I>.
|
|
<DT id="21"><B>SetOrientation(</B><I>direction</I>)
|
|
|
|
<DD>
|
|
This action sets the root of the tree to be one of the following areas of
|
|
the window: <I>West</I>, <I>North</I>, <I>East</I>, or <I>South</I>.
|
|
<DT id="22"><B>Select(</B><I>what</I>)
|
|
|
|
<DD>
|
|
This action selects the indicated nodes, as described in the <B>VIEW MENU</B>
|
|
section: <I>nothing</I> (unselects all nodes), <I>invert</I>, <I>parent</I>,
|
|
<I>ancestors</I>, <I>children</I>, <I>descendants</I>, <I>resources</I>,
|
|
<I>shown</I>.
|
|
<DT id="23"><B>Resources(</B><I>op</I>)
|
|
|
|
<DD>
|
|
This action turns <I>on</I>, <I>off</I>, or <I>toggles</I> 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.
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>WIDGET HIERARCHY</H2>
|
|
|
|
Resources may be specified for the following widgets:
|
|
<P>
|
|
|
|
<PRE>
|
|
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 <I>variable-name</I>
|
|
Toggle <I>variable-name</I>
|
|
List <I>variable-name</I>
|
|
Panner panner
|
|
</PRE>
|
|
|
|
|
|
<P>
|
|
where <I>variable-name</I> is the widget variable name of each node.
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?7+X">X</A>(7), <A HREF="/cgi-bin/man/man2html?1+xrdb">xrdb</A>(1), <A HREF="/cgi-bin/man/man2html?1+listres">listres</A>(1), <A HREF="/cgi-bin/man/man2html?1+editres">editres</A>(1), <A HREF="/cgi-bin/man/man2html?1+appres">appres</A>(1), appropriate widget documents
|
|
<A NAME="lbAK"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
Copyright 1994 X Consortium
|
|
<BR>
|
|
|
|
See <I><A HREF="/cgi-bin/man/man2html?7+X">X</A>(7)</I> for a full statement of rights and permissions.
|
|
<A NAME="lbAL"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Jim Fulton, MIT X Consortium
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="24"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="25"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="26"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="27"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="28"><A HREF="#lbAF">VIEW MENU</A><DD>
|
|
<DT id="29"><A HREF="#lbAG">SELECT MENU</A><DD>
|
|
<DT id="30"><A HREF="#lbAH">ACTIONS</A><DD>
|
|
<DT id="31"><A HREF="#lbAI">WIDGET HIERARCHY</A><DD>
|
|
<DT id="32"><A HREF="#lbAJ">SEE ALSO</A><DD>
|
|
<DT id="33"><A HREF="#lbAK">COPYRIGHT</A><DD>
|
|
<DT id="34"><A HREF="#lbAL">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:29 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|