/* * @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: DNDDrop2.dat /main/6 1995/07/14 11:52:39 drk $" */ #) This is the DNDDrop2 test. C) #) There should be a topLevel window with title \"topLevel0\" containing six PushButtons arranged in two rows, and a Text widget, within a BulletinBoard. #) PushBtn0, PushBtn2, and PushBtn4 have been registered as SIMPLE dropSites and BulletinBoard has been registered as COMPOSITE dropSite. #) Move \"topLevel0\" so that the control panel is fully visible. The control panel should contain four optionMenus for modifying animationStyle, dropActivity, dropSiteOperations, and dragOperations. The control panel should also contain an optionMenu \"Apply Changes To\" for applying the changes in animationStyle, dropActivity, and dropSiteOperations, to the either the SIMPLE dropSites, or the COMPOSITE dropSite, or both. #) The \"Animation Style\" optionMenu should show the options, \"HighLight\", \"ShadowOut\", \"ShadowIn\", \"None\", and \"Pixmap\". \"Pixmap\" is insensitive. \"Highlight\" is the selected item at startup. #) The \"Drop Activity\" optionMenu should show the options, \"Active\",\"Inactive\" and \"Ignore"\. \"Active\" is the selected item at startup. #) The \"Drop Operations\" optionMenu should show the options, \"Move_n_Copy\", \"MoveOnly\", \"CopyOnly\", \"LinkOnly\", \"Move_n_Link\", \"Copy_n_Link\", and \"All\". \"Move_n_Copy\" is the selected item at startup. #) The \"Drag Operations\" optionMenu should show the options, \"Move_n_Copy\", \"MoveOnly\", \"CopyOnly\", \"LinkOnly\", \"Move_n_Link\", \"Copy_n_Link\", and \"All\". \"Move_n_Copy\" is the selected item at startup. #) The \"Apply Changes To\" optionMenu should show the options, \"PushButtons\", \"BulletinBoard\", and \"Both\". \"PushButtons\" is the selected item at startup. #) If you want to run another DND test simultaneously and do not care about the instructions of that test, run that test with the option -u "-noinstruct". Otherwise, before proceeding further you will have to reposition the control panels, the topLevel windows, and the instruction panels of both the tests so that they are all completely visible. C) #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns. A dragIcon should appear consisting of a runner, an open folder, and an arrowhead. #) With BTransfer pressed, drag the pointer over different PushBtns and over the Text widget. #) When the pointer is moving within PushBtn1, PushBtn3, or PushBtn5, you should not see any visual change. #) When the pointer is moving within PushBtn0, PushBtn2, or PushBtn4, the borders of those PushBtns should get highlighted. #) When the pointer is moving within the Text widget, the borders of the Text widget should get highlighted. #) When the pointer is moving within the BulletinBoard but outside of PushBtn0, PushBtn2, PushBtn4, and the Text widget, the borders of the BulletinBoard should get highlighted. #) Move the pointer over to rootWindow and release BTransfer. The dragIcon should snap back to from where the drag was initiated and disappear. C) #) Select \"ShadowIn\" from the \"Animation Style\" menu. #) Select \"PushButtons\" from the \"Apply Changes To\" menu to apply this new animationStyle to all the registered PushBtn dropSites. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, when the pointer is being dragged over PushBtn0, PushBtn2, and PushBtn4, the dragUnder effect should be displayed by an inset shadow. #) When the pointer is being dragged over other PushBtns or the BulletinBoard outside of all the PushBtns and Text widget, the borders of the BulletinBoard should get highlighted. #) When the pointer is moving within the Text widget, the borders of the Text widget should get highlighted. #) Move the pointer over to rootWindow and release BTransfer. The dragIcon should snap back to from where the drag was initiated and disappear. C) #) Select \"ShadowOut\" from the \"Animation Style\" menu. #) Select \"PushButtons\" from the \"Apply Changes To\" menu to apply this new animationStyle to all the registered PushBtn dropSites. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, when the pointer is being dragged over PushBtn0, PushBtn2, and PushBtn4, the dragUnder effect should be displayed by an outset shadow. #) When the pointer is being dragged over other PushBtns or the BulletinBoard outside of all the PushBtns and Text widget, the borders of the BulletinBoard should get highlighted. #) When the pointer is moving within the Text widget, the borders of the Text widget should get highlighted. #) Move the pointer over to rootWindow and release BTransfer. The dragIcon should snap back to from where the drag was initiated and disappear. C) #) Select \"None\" from the \"Animation Style\" menu. #) Select \"PushButtons\" from the \"Apply Changes To\" menu to apply this new animationStyle to all the registered PushBtn dropSites. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, even when the pointer is being dragged over PushBtn0, PushBtn2, or PushBtn4, there should be no visual change. #) When the pointer is being dragged over other PushBtns or the BulletinBoard outside of all the PushBtns and Text widget, the borders of the BulletinBoard should get highlighted. #) When the pointer is moving within the Text widget, the borders of the Text widget should get highlighted. #) Move the pointer over to rootWindow and release BTransfer. The dragIcon should snap back to from where the drag was initiated and disappear. #) Select \"HighLight\" from the \"Animation Style\" menu. #) Select \"PushButtons\" from the \"Apply Changes To\" menu to apply this new animationStyle to all the registered PushBtn dropSites. C) #) Select \"ShadowIn\" from the \"Animation Style\" menu. #) Select \"BulletinBoard\" from the \"Apply Changes To\" menu to apply this new animationStyle to the BulletinBoard dropSite. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, when the pointer is being dragged over PushBtn0, PushBtn2, and PushBtn4, the widgets should get highlighted. #) When the pointer is being dragged over other PushBtns or the BulletinBoard outside of all the PushBtns and Text widget, the dragUnder effect should be displayed by an inset shadow on the BulletinBoard. #) When the pointer is moving within the Text widget, the borders of the Text widget should get highlighted. #) Move the pointer over to rootWindow and release BTransfer. The dragIcon should snap back to from where the drag was initiated and disappear. C) #) Select \"ShadowOut\" from the \"Animation Style\" menu. #) Select \"BulletinBoard\" from the \"Apply Changes To\" menu to apply this new animationStyle to the BulletinBoard dropSite. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, when the pointer is being dragged over PushBtn0, PushBtn2, and PushBtn4, the widgets should get highlighted. #) When the pointer is being dragged over other PushBtns or the BulletinBoard outside of all the PushBtns and Text widget, the dragUnder effect should be displayed by an outset shadow on the BulletinBoard. #) When the pointer is moving within the Text widget, the borders of the Text widget should get highlighted. #) Move the pointer over to rootWindow and release BTransfer. The dragIcon should snap back to from where the drag was initiated and disappear. C) #) Select \"None\" from the \"Animation Style\" menu. #) Select \"BulletinBoard\" from the \"Apply Changes To\" menu to apply this new animationStyle to the BulletinBoard dropSite. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, when the pointer is being dragged over PushBtn0, PushBtn2, and PushBtn4, the widgets should get highlighted. #) When the pointer is being dragged over other PushBtns or the BulletinBoard outside of all the PushBtns and Text widget, there should be no visual feedback. #) When the pointer is moving within the Text widget, the borders of the Text widget should get highlighted. #) Move the pointer over to rootWindow and release BTransfer. The dragIcon should snap back to from where the drag was initiated and disappear. #) Select \"HighLight\" from the \"Animation Style\" menu. #) Select \"BulletinBoard\" from the \"Apply Changes To\" menu to apply this new animationStyle to the BulletinBoard dropSite. C) #) Select \"ShadowIn\" from the \"Animation Style\" menu. #) Select \"Both\" from the \"Apply Changes To\" menu to apply this new animationStyle to all the registered PushBtn dropSites and the BulletinBoard dropSite. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, when the pointer is being dragged over PushBtn0, PushBtn2, and PushBtn4, the dragUnder effect should be displayed by an inset shadow. #) When the pointer is being dragged over other PushBtns or the BulletinBoard outside of all the PushBtns and Text widget, the dragUnder effect should be displayed by an inset shadow on the BulletinBoard. #) When the pointer is moving within the Text widget, the borders of the Text widget should get highlighted. C) #) Select \"ShadowOut\" from the \"Animation Style\" menu. #) Select \"Both\" from the \"Apply Changes To\" menu to apply this new animationStyle to all the registered PushBtn dropSites and the BulletinBoard dropSite. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, when the pointer is being dragged over PushBtn0, PushBtn2, or PushBtn4, the dragUnder effect should be displayed by an outset shadow. And when the pointer is being dragged over other PushBtns or the BulletinBoard outside of all the PushBtns and Text widget, the dragUnder effect should be displayed by an outset shadow on the BulletinBoard. #) When the pointer is moving within the Text widget, the borders of the Text widget should get highlighted. C) #) Select \"None\" from the \"Animation Style\" menu. #) Select \"Both\" from the \"Apply Changes To\" menu to apply this new animationStyle to all the registered PushBtn dropSites and the BulletinBoard dropSite. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, even when the pointer is being dragged over PushBtn0, PushBtn2, or PushBtn4, or anywhere on the BulletinBoard except the Text widget, there should be no visual feedback. #) When the pointer is moving within the Text widget, the borders of the Text widget should get highlighted. #) Select \"HighLight\" from the \"Animation Style\" menu. #) Select \"Both\" from the \"Apply Changes To\" menu to apply this new animationStyle to all the registered PushBtn dropSites and the BulletinBoard dropSite. C) #) Select \"Inactive\" from the \"Drop Activity\" menu. #) Select \"PushButtons\" from the \"Apply Changes To\" menu to apply this new dropActivity to all the registered PushBtn dropSites. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, even when the pointer is being dragged over PushBtn0, PushBtn2, or PushBtn4, there should be no visual change. But, if you attempt drop on any of these three registered dropSites by releasing BTransfer with the pointer over any one of them, the dragIcon should melt into the background, since at this time, the Bulletinboard dropSite which is active, accepts the drop. #) Select \"Ignore\" from the \"Drop Activity\" menu. #) Select \"PushButtons\" from the \"Apply Changes To\" menu to apply this new dropActivity to all the registered PushBtn dropSites. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, even when the pointer is being dragged over PushBtn0, PushBtn2, or PushBtn4, there should be no visual change. But, if you attempt drop on any of these three registered dropSites by releasing BTransfer with the pointer over any one of them, the dragIcon should melt into the background, since at this time, the Bulletinboard dropSite which is active, accepts the drop. #) Select \"Active\" from the \"Drop Activity\" menu. #) Select \"PushButtons\" from the \"Apply Changes To\" menu to apply this new dropActivity to all the registered PushBtn dropSites. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, the visual changes should be back while dragging over PushBtn0, PushBtn2, and PushBtn4. And also, if you attempt drop over any one of these dropSites, the dragIcon should melt into the background and disappear. This time, it is the PushBtn dropSite which accepts the drop. C) #) Select \"Inactive\" from the \"Drop Activity\" menu. #) Select \"BulletinBoard\" from the \"Apply Changes To\" menu to apply this new dropActivity to the BulletinBoard dropSite. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, wherever the pointer is being dragged over within the BulletinBoard including the Text widget, there should be no visual feedback. And also, if you attempt drop on any of the registered dropSites including the Text widget, by releasing BTransfer with the pointer over any one of them, the dragIcon should zap back to the place of drag initiation and disappear. #) Select \"Ignore\" from the \"Drop Activity\" menu. #) Select \"BulletinBoard\" from the \"Apply Changes To\" menu to apply this new dropActivity to the BulletinBoard dropSite. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, wherever the pointer is being dragged over within the BulletinBoard including the Text widget, there should be no visual feedback. And also, if you attempt drop on any of the registered dropSites including the Text widget, by releasing BTransfer with the pointer over any one of them, the dragIcon should zap back to the place of drag initiation and disappear. #) Select \"Active\" from the \"Drop Activity\" menu. #) Select \"BulletinBoard\" from the \"Apply Changes To\" menu to apply this new dropActivity to the BulletinBoard dropSite. C) #) Select \"Inactive\" from the \"Drop Activity\" menu. #) Select \"Both\" from the \"Apply Changes To\" menu to apply this new dropActivity to both the BulletinBoard dropSite and the PushBtn dropSites. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, wherever the pointer is being dragged over within the BulletinBoard including the Text widget, there should be no visual feedback. And also, if you attempt drop on any of the registered dropSites including the Text widget, by releasing BTransfer with the pointer over any one of them, the dragIcon should zap back to the place of drag initiation and disappear. #) Select \"Ignore\" from the \"Drop Activity\" menu. #) Select \"Both\" from the \"Apply Changes To\" menu to apply this new dropActivity to both the BulletinBoard dropSite and the PushBtn dropSites. #) Initiate Drag by pressing BTransfer (MB2 by default) with the pointer positioned on any of the PushBtns and start dragging. #) Now, wherever the pointer is being dragged over within the BulletinBoard including the Text widget, there should be no visual feedback. And also, if you attempt drop on any of the registered dropSites including the Text widget, by releasing BTransfer with the pointer over any one of them, the dragIcon should zap back to the place of drag initiation and disappear. #) Select \"Active\" from the \"Drop Activity\" menu. #) Select \"Both\" from the \"Apply Changes To\" menu to apply this new dropActivity to both the BulletinBoard dropSite and the PushBtn dropSites. C) #) Click on the \"Test XmDisplay userData\" button. #) The label next to the button should have the text \"XmDisplay userData works\" in it. C) #) This panel tests the XmDropSiteRegistered function. #) You should see these lines printed to stdout: !) For widget PushBtn0 : Expected : True; Actual : True !) For widget PushBtn1 : Expected : False; Actual : False C) E)