/* $XConsortium: Container2.dat /main/4 1995/07/17 10:11:35 drk $ */ /* * @OPENGROUP_COPYRIGHT@ * COPYRIGHT NOTICE * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. * Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for * the full copyright text. * * This software is subject to an open license. It may only be * used on, with or for operating systems which are themselves open * source systems. You must contact The Open Group for a license * allowing distribution and sublicensing of this software on, with, * or for operating systems which are not Open Source programs. * * See http://www.opengroup.org/openmotif/license for full * details of the license agreement. Any use, reproduction, or * distribution of the program constitutes recipient's acceptance of * this agreement. * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS * PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY * WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY * OR FITNESS FOR A PARTICULAR PURPOSE * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT * NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE * EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * HISTORY */ #) This is Container2 test. #) This uses a control panel to modify the various Container resources. Each resource has a corresponding OptionMenu, or Scale. #) Set the various resources and check whether they take effect. #) There should be no spontaneous abort or core dump due to any reason. #) The geometry of the widget should get adjusted depending on the various resource settings. C) @) This panel plays with the display of a "AnyIcon" view Type with an OUTLINE layout Type. #) Four IconGadgets should be visible in a single column. IconGad", IconGad2 and IconGad4 are displayed in their small icon view, with the pixmap part displaying a "S" within a black box, and the label part displaying the strings "IconGad1", "IconGad2", and "IconGad4" respectively. IconGad3 is displayed in its large icon view, with the pixmap part displaying a "L" within a black box, and the label part displaying the string "IconGad3". #) There should also be visible to the left of IconGad3, a pixmap displaying letter "C" with background white and foreground black. This indicates that the item "IconGad3" has child items that are not displayed; in other words, this item is in the collapsedState. #) Click BSelect on the collapsedState pixmap "C" displayed to the left of the item "IconGad3". The pixmap should change to showing the letter "E", indicating that the item "IconGad3" has child items that are displayed; in other words, item "IconGad3" is in the expandedState. Also, this pixmap should have a white foreground and a black background. #) Also, you should see 3 more items displayed in their small view, "IconGad31", "IconGad32", and "IconGad33" displayed below IconGad3 and indented right by 100 pixels. A line is connecting these items to the item "IconGad3". #) Expand all the children. "IconGad321" and "IconGad3211" should be displayed in their large icon view. #) The pixmap should change to showing the letter "E", indicating that the item have child items that are displayed; #) You should also see a message in the term window indicating that a outlineChangedCallback has been invoked with the reason XmCR_EXPANDED, each time you click on a collapse button. C) #) Select "XmNO_LINE" from the "Outline LineStyle" option menu. The connecting lines should disappear. #) Move the "Outline Indentation" scale to 250. The children should move to the right. #) Select "XmOUTLINE_BUTTON_ABSENT" from the "Outline ButtonPolicy" option menu. The expand/collpase state pixmap should disappear. Container should redisplay itself to accomodate the lost of the pixmaps. #) Select "XmOUTLINE_BUTTON_PRESENT" from the "Outline ButtonPolicy" option menu. The expand/collpase state pixmap should reappear. #) Select "XmSINGLE" from the "Outline LineStyle" menu. #) The lines connecting the children should reappear. Collpase all the children. C) @) This panel plays with the display of an "AnyIcon" view type with a DETAIL layout Type. #) Select "Detail" from the "Layout Type" option menu. A heading column should appear on top of the icon gadgets. There should be 4 columns, the first one for the pixmap-label and the 3 others with plain text. There should be 4 rows of Icon gadgets. #) Move the "Outline Indentation" scale to 70. Expand the children. The plain text displayed next to each child is aligned in columns. #) Move the "Outline ColumnWidth" scale to 200. The text becomes aligned in columns, overlapping the outline display. Move the "Outline ColumnWidth" scale to 320. #) Select "XmNO_LINE" from the "Outline LineStyle" menu. The lines connecting the children should disappear. #) Select "XmSINGLE" from the "Outline LineStyle" menu. The lines connecting the children should reappear. #) Select "One" from the "Number of Columns" option menu. You should only have 1 text column displayed. #) Select "Zero" from the "Number of Columns" option menu. You should have the maximum number of text column displayed (that is 3). #) Select "Two" from the "Number of Columns" option menu. Only the two first columns of text are displayed. #) Select "No" from "Show ColumnHeading". The column heading should disappear. #) Select "No" again from "Show ColumnHeading". No core dump should occur. #) Select "Three" from the "Number of Columns" option menu. The last column should reappear. #) Collaspe the children, by clicking on the collapse button of "IconGad3". #) Select "Yes" from "Show ColumnHeading". The column heading should re_appear. #) Move the "Outline ColumnWidth" scale to 0. C) @) This panel plays with the display of a "AnyIcon" view type with a SPATIAL layout Type. #) Select "Spatial" from the "Layout Type" option menu. The Icon gadgets should appear at their X and Y position. !) IconGad1 should be located at 100,100 IconGad2 should be located at 200,200 IconGad3 should be located at 300,100 IconGad4 should be located at 50,400 #) Select "XmGRID" from the "Spatial Style" option menu. The Icon gadgets are displayed in the cells. #) Play with the "LargeCell Width" scale values and the "LargeCell Height" scale value. The Icon gadgets can overlap. #) Select "XmCELLS" from the "Spatial Style" option menu. The Icon gadgets are placed in a minimum number of cells needed to fit them. #) Select "XmSNAP_TO_GRID" from the "Snap Model" option menu. The Icon gadgets are placed at the origin of the multi-cell (upper-left). #) Play with the "LargeCell Width" scale values and the "LargeCell Height" scale value. #) Select "XmCENTER" from the "Snap Model" option menu. The Icon gadgets are placed at the center of the multi-cell horizontally, and are baseline_aligned vertically. #) Play with the "LargeCell Width" scale values and the "LargeCell Height" scale value. The Icon gadgets must not overlap. C) @) This panel plays with the display of a "LargeIcon" view Type with an OUTLINE layout Type. #) Select "LargeIcon" from the "Entry View Type" option menu, and "Outline" from the "Layout Type" option menu. #) Four IconGadgets with the pixmap part displaying a "L" within a black box, and the label part displaying the strings "IconGad1", "IconGad2", "IconGad3" and "IconGad4" respectively should be visible in a single column. #) There should also be visible to the left of IconGad3, a pixmap displaying letter "C" with background white and foreground black. This indicates that the item "IconGad3" has child items that are not displayed; in other words, this item is in the collapsedState. #) Click BSelect on the collapsedState pixmap "C" displayed to the left of the item "IconGad3". The pixmap should change to showing the letter "E", indicating that the item "IconGad3" has child items that are displayed; in other words, item "IconGad3" is in the expandedState. Also, this pixmap should have a white foreground and a black background. #) Also, you should see 3 more items displayed, "IconGad31", "IconGad32", and "IconGad33" displayed below IconGad3 and indented right by 100 pixels. A line is connecting these items to the item "IconGad3". #) Select "XmNO_LINE" from the "Outline LineStyle" option menu. The connecting lines should disappear. #) Move the "Outline Indentation" scale to 250. The children should move to the right. #) Select "XmOUTLINE_BUTTON_ABSENT" from the "Outline ButtonPolicy" option menu. The expand/collpase state pixmap should disappear. Container should redisplay itself to accomodate the lost of the pixmaps. C) @) This panel plays with the display of a "SmallIcon" view Type with an OUTLINE layout Type. #) Select "SmallIcon" from the "Entry View Type" option menu. #) The IconGadgets are now displayed with the pixmap part displaying a "S" within a black box, and the label part displaying the strings should be visible next to them. #) Select "XmOUTLINE_BUTTON_PRESENT" from the "Outline ButtonPolicy" option menu. The expand/collpase state pixmap should reappear. Container should redisplay itself to accomodate the new pixmaps. #) There should be visible to the left of IconGad3, a pixmap displaying letter "E" with background black and foreground white. A pixmap displaying letter "C" should be visible to the left of "IconGad32" with background white and foreground black. #) Select "XmSINGLE" from the "Outline LineStyle" option menu. The connecting lines should reappear. #) Move the "Outline Indentation" scale to 0. The children should move to the left, forming a single column with the parents. #) Move the "Outline Indentation" scale to 100. The children should move to the right. C) @) This panel plays with the display of a "LargeIcon" view Type with a DETAIL layout Type. #) Select "LargeIcon" from the "Entry View Type" option menu, and "Detail" from the "Layout Type" option menu. #) A Column heading should appear. There should be 4 columns, the first one for the pixmap-label and the 3 others with plain text. There should be 4 rows of Icon gadgets. #) Play with the "Outline Indentation" scale and the "Outline ColumnWidth" scale. #) Select "XmNO_LINE" from the "Outline LineStyle" menu. The lines connecting the children should disappear. #) Select "XmSINGLE" from the "Outline LineStyle" menu. The lines connecting the children should reappear. #) Select "Two" from the "Number of Columns" option menu. The last column should desappear. #) Select "Zero" from the "Number of Columns" option menu. All the columns should be displayed again. #) Select "No" from "Show ColumnHeading". The column heading should disappear. #) Collapse all the children. C) @) This panel plays with the display of a "SmallIcon" view Type with a DETAIL layout Type. #) Select "SmallIcon" from the "Entry View Type" option menu. The Icon gadgets are now displayed in their small icon view. #) Select "One" from the "Number of Columns" menu to modify the detailCount. The number of detail columns displayed should change to 1. #) Select "Three" from the "Number of Columns" menu to modify the detailCount. The number of detail columns displayed should change to 3. #) Select "Yes" from "Show ColumnHeading". The column heading should reappear. #) Expand the children. C) @) This panel plays with the display of a "LargeIcon" view type with a SPATIAL layout Type. #) Select "LargeIcon" from the "Entry View Type" option menu, and "Spatial" from the "Layout Type" option menu. #) Select "XmGRID" from the "Spatial Style" option menu. The Icon gadgets are displayed in the cells. #) Play with the "LargeCell Width" scale values and the "LargeCell Height" scale value. #) Select "XmCELLS" from the "Spatial Style" option menu. The Icon gadgets are placed in a minimum number of cells needed to fit them. #) Select "XmSNAP_TO_GRID" from the "Snap Model" option menu. The Icon gadgets are placed at the origin of the multi-cell (upper-left). #) Play with the "LargeCell Width" scale values and the "LargeCell Height" scale value. #) Select "XmCENTER" from the "Snap Model" option menu. The Icon gadgets are placed horizontally at the center of the multi-cell, and are baseline-aligned vertically. #) Play with the "LargeCell Width" scale values and the "LargeCell Height" scale value. C) #) This panel plays with the display of a "SmallIcon" view type with a SPATIAL layout Type. #) Select "SmallIcon" from the "Entry View Type" option menu. #) Play with the "SmallCell Width" scale values and the "SmallCell Height" scale value. #) Select "XmSNAP_TO_GRID" from the "Snap Model" option menu. The Icon gadgets are placed at the origin of the multi-cell (upper-left). #) Play with the "SmallCell Width" scale values and the "SmallCell Height" scale value. #) Select "XmGRID" from the "Spatial Style" option menu. The Icon gadgets are displayed in the cells. #) Play with the "SmallCell Width" scale values and the "SmallCell Height" scale value. C) E)