1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273
|
/* $XConsortium: Container2.dat /main/4 1995/07/17 10:11:35 drk $ */
/*
* Motif
*
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these librararies and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* 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)
|