Blob Blame History Raw
/* 
 * 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
*/ 
/*
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)