/* $XConsortium: TestCDEM1.dat /main/4 1995/07/17 10:16:10 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
*/
#) A window will appear with the following items:
!)
o a TextField displaying "This is testing FileSelectionBox".
o on the left, a toggle button "Click and try",
a label "with PATH_MODE_FULL",
and a FileSelectionBox.
o on the right, another toggle button "Click and try again",
a label "with PATH_MODE_RELATIVE"
and a CDE compliant FileSelectionBox.
#) The FileSelectionBox on the left is composed of:
!)
o a mask input field labelled "Look for:" set to
"/users/qauser/FS/fourteencharac/b*"
o a Directories list (with all directories in the
current directory), with scrollbars.
o a Files list (with files beginning with the
letter b, "bingo00" to "bingo04"), with scrollbars.
o a text input field, with the label "Selection",
displaying the full path name of the current directory.
o a separator.
o four pushButtons (OK, Filter, Cancel, Help).
#) The FileSelectionBox on the right is composed of:
!)
o the full path name field labelled "In this directory:".
o a mask input field labelled "Look for:" set to "b*".
o a Directories list (with all directories in the
current directory).
o a Files list (with files beginning with the
letter b, "bingo00" to "bingo04").
o a text input field, with the label "Selection".
o a separator.
o four pushButtons (OK, Filter, Cancel, Help).
#) The TextField, the Toggle buttons and the FileSelectionBoxes have
a 1 pixel shadow thickness.
C)
#) Testing the action of "XmNenableToggleColor" set to True, and
"XmNenableToggleVisual" on toggle buttons.
#) The indicator of the left toggle button is a square.
#) Click MB1 on the left Toggle button.
#) The highlight color is red, the indicator is filled with red,
and a check mark appears in the indicator.
#) The indicator of the right toggle button is round.
#) Click MB1 on the right Toggle button.
#) The highlight color is aquamarine, and the indicator is filled with
aquamarine.
C)
#) Play with the FileSelectionBox on the left.
#) Click MB1 on "fourteencharac" in the Directories list. The directory
mask gets updated.
#) Click on the "Filter" button. The Selection field is updated to
reflect the new directory path.
#) The Files list is also updated to list the files starting with "b"
in that directory "bonus01" to "bonus05".
#) Now play with the FileSelectionBox on the right.
#) Click MB1 on "fourteencharac" in the Directories list. The directory
full path name gets updated.
#) Click on the "Filter" button.
#) Only the Files list is updated to list the files starting with "b"
in that directory "bonus01" to "bonus05".
C)
#) Change "Look for:" pattern in the left FileSelectionBox, so that
the "b*" is now just "*".
#) Click MB1 on the "Filter" button. The Files list should change to
display all the files in the current directory including hidden files.
#) Use the vertical scrollbar to scroll through the Files list.
#) Now change "Look for:" pattern in theright FileSelectionBox, so that
the "b*" is now just "*".
#) Click MB1 on the "Filter" button. The Files list should change to
display files in the current directory but not hidden files.
#) Use the vertical scrollbar to scroll through the Files list, and
verify that there is no hidden files.
C)
#) Testing the action of "XmNenableButtonTab" set to True, and
"XmNdefaultButtonEmphasis" set to XmINTERNAL_HIGHLIGHT on
push buttons.
#) Using the TAB key, tab through the elements of the FileSelectionBox.
#) When on the "OK" button, clicking on TAB should tab to the "Filter"
button, and then on the other buttons.
#) While tabbing, you will notice that the location cursor appears in
between the two etched borders of the default push button.
#) Verify this is working in both SelectionBox.
C)
#) Testing the action of "XmNenableBtn1Transfer" set to True on TextField
and List.
#) Using MB1, press on the left of "is" in the TextField, and move to the
right of "s" of "testing". Release MB1. "is tes" is now selected.
#) Now using MB2, extend the selection by clicking on the "F".
"is testing " is now selected.
#) Using MB1, now press MB1 on the selected text and start moving.
This should start a drag operation. The source icon of the drag icon
represents some text, the operation icon is move (one folder).
#) You should be able to do the previous experiment in any TextField of
the FileSelectionBox.
#) In the lists of the FileSelectionBox, verify that:
!)
o Clicking MB1 is selecting.
o Pressing MB1 and moving on a selected item is starting
a drag operation, with the copy operation icon
(2 folders), and the source icon representing text.
o Pressing MB1 and moving on an unselected item is doing
selection. The seleted item is moving with the mouse.
o MB2 (clicking or dragging) has no action.
C)
#) You should not be able to start a drag operation from any of the label
using MB2, or MB1. Verify it is working for toggle button labels and
labels.
C)
E)