Blob Blame History Raw
/* $XConsortium: Container3a.dat /main/4 1995/07/17 10:12:21 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
 */
/* 
 * PREVIOUS HISTORY
 * 
 * Revision 1.1.4.2  1993/08/24  16:04:39  yak
 * 	Fixed copyright marker and expanded copyright.
 * 	[1993/08/24  16:04:14  yak]
 *
 * Revision 1.1.2.5  1993/05/26  19:01:20  msr
 * 	Changed the action proc names to correspond to the new action proc
 * 	names in the Container code.
 * 	[1993/05/26  18:52:30  msr]
 * 
 * Revision 1.1.2.4  1993/04/23  14:15:11  rec
 * 	Fixed the comment leader to be '*' instead of '#'.
 * 	[1993/04/23  14:14:45  rec]
 * 
 * Revision 1.1.2.3  1993/04/23  12:22:12  msr
 * 	Added a couple more instructions to the first panel
 * 	[1993/04/23  12:21:02  msr]
 * 
 * Revision 1.1.2.2  1993/04/22  21:24:44  rec
 * 	Translation table test.
 * 	[1993/04/22  21:23:47  rec]
 * 
 *
 */


#) This is Container3 test run with the option "-I Container3a.Dat -u a",  
   trying to test default translations and actions.
C)

#) The following is the set of default translations.

!)
	~Shift ~Ctrl<Btn1Down> :        ContainerBeginSelect() 
	~Shift ~Ctrl<Btn1Up>:           ContainerEndSelect() 
	<Btn1Motion>:                   ContainerButtonMotion() 
	Shift<Btn1Down>:                ContainerBeginExtend() 
	Shift<Btn1Up>:                  ContainerEndExtend() 
	Ctrl<Btn1Down>:                 ContainerBeginToggle() 
	Ctrl<Btn1Up>:                   ContainerEndToggle() 
	~Shift ~Ctrl<Btn2Down>:         ContainerStartTransfer(Copy) 
	Shift Ctrl<Btn2Down>:           ContainerStartTransfer(Link) 
	Shift<Btn2Down>:                ContainerStartTransfer(Move) 
	<Btn2Up>:                       ContainerEndTransfer() 
	~Shift ~Ctrl<Key>osfInsert:     ContainerPrimaryCopy() 
	Shift Ctrl<Key>osfInsert:       ContainerPrimaryLink() 
	Shift<Key>osfDelete:            ContainerPrimaryMove() 
	<Key>osfCancel:                 ContainerCancel() 
	Shift<Key>osfSelect:            ContainerExtend() 
	<Key>osfSelect:                 ContainerSelect()
	Shift<Key>osfUp:                ContainerExtendCursor(Up)
	Shift<Key>osfDown:              ContainerExtendCursor(Down)
	Shift<Key>osfLeft:              ContainerExtendCursor(Left) 
	Shift<Key>osfRight:             ContainerExtendCursor(Right) 
	<Key>osfUp:                     ContainerMoveCursor(Up)
	<Key>osfDown:                   ContainerMoveCursor(Down)
	<Key>osfLeft:                   ContainerMoveCursor(Left)
	<Key>osfRight:                  ContainerMoveCursor(Right) 
	Shift Ctrl<Key>osfBeginLine:    ContainerExtendCursor(First)
	Shift Ctrl<Key>osfEndLine:      ContainerExtendCursor(Last) 
	Ctrl<Key>osfBeginLine:          ContainerMoveCursor(First)
	Ctrl<Key>osfEndLine:            ContainerMoveCursor(Last)
	<Key>osfAddMode:                ContainerToggleMode() 
	Ctrl<Key>slash:                 ContainerSelectAll() 
	Ctrl<Key>backslash:             ContainerDeselectAll() 
	<Key>osfActivate:               ContainerActivate() 


@) You should not see any message in the term window about "Actions
   not found".

C)

#) Click Btn1 on IconGad2 to select it. 

#) Press Btn1 on IconGad1 and drag to IconGad4 to select all four. 
   Release Btn1.

#) Click Btn1 outside the icon gadgets to unselect all gadgets.

#) Click Btn1 on IconGad1 to select it and click <Shift> Btn1 on IconGad3.
   IconGad1, IconGad2 and IconGad3 are selected.

#) Click Btn1 outside the icon gadgets to unselect all gadgets.

#) Press <Ctrl> Btn1 on IconGad1 and drag across to IconGad4.
   Release Btn1. This will select all.  Repeat to unselect.

#) Press Btn2 on any item to initiate a drag action.

#) Press Btn1 on IconGad1 and start dragging to IconGad4 to select the gadgets.
   Press osfCancel to cancel the selection. 
   Release Btn1.

#) Press Btn1 outside IconGad1 on the left, and start dragging towards 
   IconGad4. A Marquee rectangle appears. When a gadget is inside this 
   rectangle, its selection state changes. Release Btn1.
   The gadgets inside the Marquee rectangle are selected.
C)                                                                            

#) Click Btn1 on IconGad1 to select it.

#) Move the selection over the gadgets by using the osfUp and osfDown
   keys. Stay on IconGad2.

#) Press <Ctrl> and osfBeginLine to move the selection to IconGad1 (the 
   first item). 

#) Press <Ctrl> and osfEndLine to move the selection to IconGad4 (the last 
   item).

#) Click Btn1 on IconGad3. This is now the anchor item.
   Press <Shift> osfDown key. 
   IconGad4 is also selected.
   
#) Press <Shift> osfUp key. 
   IconGad4 is deselected.
   Press <Shift> osfUp key. 
   IconGad2 is also selected.
   
#) Press <Shift> <Ctrl> and osfBeginLine.
   IconGad1, IconGad2 and IconGad3 are selected.
   The location cursor is on IconGad1.

#) Click Btn1 on IconGad2.
   Press <Shilt> <Ctrl> and osfEndLine.
   IconGad2, IcondGad3 and IconGad4 are selected.
   The location cursor is on IconGad4.

#) Press osfDeselectAll to unselect.
   Press osfSelectAll to select all items.  
 
#) Click Btn1 on IconGad4 to select it.
   The other gadgets are deselected.

C)

#) Press osfAddMode to toggle the selection mode (Add mode). 
   The shape of the location cursor changes (dashed rectangle).

#) Click Btn1 on IconGad2 to select it.
   Move the location cursor by using the osfUp and osfDown
   keys.  Put the location cursor on IconGad4.
   Click the osfSelect key to toggle IconGad4.
   IconGad4 is also selected.
   Put the location cursor on IconGad2.
   Click the osfSelect key to toggle a selected item.
   IconGad2 is now deselected.

#) Press <Ctrl> and osfBeginLine key to move the location cursor to IconGad1.
   Press <Ctrl> and osfEndLine to move the location cursor to IconGad4.

#) With all items unselected, move the location cursor to IconGad4.
   Select it by clicking the osfSelect key.  Press and hold shift and
   move up by clicking the osfUp key.  Each gadget should get selected.

#) Scroll back via the osfUp key to IconGad4.  Unselect it by
   clicking the select button.  Then press and hold shift and scroll
   up by clicking the osfUp key.  This should unselect each item.

#) Press the osfSelect key on IconGad1.   
   Press <Shift> osfDown key. 
   IconGad1 is still selected and IconGad2 is selected.
   
#) Press <Shift> <Ctrl> and osfEndLine to move the position cursor to IconGad4 
   (the last item).
   All the gadgets are selected.

#) Click the osfSelect key on IconGad4 to toggle it. 
   IconGad4 is deselected.

#) Press <Shift> osfUp key. 
   IconGad3 is now deselected.
   
#) Press <Ctrl> <Shift> and osfBeginLine to unselect all.
   The location cursor is on IconGad1.

#) Press osfAddMode to toggle the selection mode (Normal mode). 
   The shape of the location cursor is changes (rectangle).

C)

E)