/* * @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 */ /* static char rcsid[] = "$XConsortium: FileSelect1.dat /main/7 1995/07/13 19:18:13 drk $" */ #) A client window with a FileSelectionBox will appear. The FileSelectionBox will have the following items: !) a) a Label. b) a directory mask input field. c) a Files list (with files beginning with the letter b). d) a Directories list (with all directories in the current directory). e) scrollbars below and to the right of both lists. f) a Selection label. g) a text input field. h) a separator. i) four pushButtons (OK, Filter, Cancel, Help). C) #) Press and hold MB1 on horizontal scrollbar slider of the Directories list. Move scrollbar slider far to the left. The list should scroll horizontally allowing the user to see the full directory path. Release MB1. #) Press and hold MB1 on the left arrow of the horizontal scrollbar of the Files list. The slider should move to the left. The list should scroll to the left. Release MB1 C) #) Click MB1 on a filename from the Files list. The selected filename (with full pathname) should invert colors and appear in the 'Selection' field. #) Resize the client window. #) Iconify the client window. #) Normalize the client window. #) Move the client window. #) Click MB1 on all pushButtons except cancel. When filter button is pressed, the Files list will refresh and the File Selection Box will refresh. C) #) Change pattern so that the \"b*\" at the end of the directory mask is now \"m*\". #) Click MB1 on Filter button. The Files list should change so that only files that start with the letter m are displayed. #) Use the vertical scrollbar to scroll through the Files list. Verify that only files that begin with the letter m should be visible. C) #) Change pattern so that the \"m*\" at the end of the directory mask is now \"b*\". #) While focus is in the text widget, hit the return key. This should depress the Filter button, and the Files list should redisplay with files that begin with the letter b. #) The vertical scrollbar should have filled on the last operation. #) Move client window so that it partially obscures the term window. Raise the term window. Raise the client window. #) Change pattern so that the \"b*\" at the end of the directory mask is now \"d*\". #) While focus is in the text widget, hit the return key. This should depress the Filter button, and the Files list should redisplay with files that begin with the letter d. #) Use the vertical scrollbar to scroll through the Files list. Verify that only files that begin with the letter d should be visible. C) #) Move to the Files list and click MB on item \"decor00\". This item should invert and appear in the \'Selection\' field (with full pathname). #) Press the return Key. A OK callback message will appear in the term window. #) Click MB1 on the Help Button. A Help callback message will appear in the term window. #) Click MB1 on the Filter Button. An Apply callback message will appear in the term window. The Files list will refresh. C) #) Test for memory leaks. Click on a file name then press the up or down key. C) #) Try clicking (single and double) in the \"[\ \ \ ]\" entry in the Files list. #) You should not be able to select this element. You should not receive any callbacks. C) #) Move the pointer into the directories list. The Default button should be the Filter button. Now move off the directories list to the background of the FileSelectionBox. The Default button should NOT change, it should still be on the Filter button. #) Click MB1 on Cancel pushButton. The FileSelectionBox will be destroyed and an empty shell will be left. E)