! ! @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 ! ! $XConsortium: dataS.uil /main/4 1995/07/13 20:35:44 drk $ !****************************************************************************** module dataS version = 'v1.0' names = case_sensitive ! ! Simple test ! value boolean1 : exported true; boolean2 : exported false; value black : exported color('black', foreground); white : exported color('white', background); red : exported color('red', background); green : exported color('green', foreground); blue : exported color('blue', background); value zilch : exported rgb(0, 0, 0); coral : exported rgb(65025, 12996, 7396); value float1 : exported 3.14159; float2 : exported float(6000); float3 : exported float(-4579); float4 : exported float(0); value sfloat1 : exported single_float(3.14159); sfloat2 : exported single_float(6000); sfloat3 : exported single_float(-4579); sfloat4 : exported single_float(0); value integer1 : exported 0; integer2 : exported -444; integer3 : exported 53; value string1 : exported ""; string2 : exported "teSt String1"; value bigQ : exported keysym("Q"); littleS : exported keysym("s"); three : exported keysym("3"); ! ! Pixmap test ! value button_ct : color_table( black='+', white=' '); icon1: exported icon(color_table=button_ct, '+++++++++++++++++++++++++', ' ++++++++++++++++++++++++', '+ ++', ' + ++', '+ +++++++++++++++++ ++', ' + ++++++ +++++++ ++', '+ ++++++ +++ ++++++ ++', ' + ++++++ +++++++ ++', '+ ++++++ +++ ++++++ ++', ' + ++++++ +++++++ ++', '+ +++++++++++++++++ ++', ' + ++++++ ++++++ ++', '+ ++++++++ ++++++++ ++', ' + ++++++++ ++++++++ ++', '+ ++++++++ ++++++++ ++', ' + ++++++++ ++++++++ ++', '+ +++++++++++++++++ ++', ' + ++++++ ++ ++++++ ++', '+ ++++++ ++ ++++++ ++', ' + ++++++ + + ++++++ ++', '+ ++++++ ++ ++++++ ++', ' + ++++++ ++ ++++++ ++', '+ +++++++++++++++++ ++', ' + ++', '+ ++', ' + + + + + + + + + + + ++', '+ + + + + + + + + + + + +'); icon2: exported xbitmapfile('icon2.xbm'); ! ! Font test ! value font1 : exported font('8x13bold'); font2 : exported font('8x13bold', character_set = iso_latin1); font3 : exported font('variable'); font4 : exported font('variable', character_set = iso_latin6); ! ! CompoundS test ! value compound_string1 : exported compound_string('string1'); compound_string2 : exported compound_string(#iso_latin1'string1'); compound_string3 : exported compound_string('string1', character_set = iso_latin1); value direction1 : exported compound_string(#iso_hebrew"ABC",right_to_left=false); direction2 : exported compound_string(#iso_hebrew"DEF",right_to_left=true); direction3 : exported compound_string(#iso_hebrew"GHI"); direction4 : exported compound_string(#iso_hebrew_lr"JKL"); direction5 : exported compound_string(#iso_hebrew_lr"MNO",right_to_left=false); direction6 : exported compound_string(#iso_hebrew_lr"PQR",right_to_left=true); direction7 : exported compound_string(#iso_latin1"STU"); direction8 : exported compound_string(#iso_latin1"VWX",right_to_left=false); direction9 : exported compound_string(#iso_latin1"YZA",right_to_left=true); ! ! Table tests ! procedure integer_table_proc(integer_table); compound_string_table_proc(string_table); asciz_string_table_proc(asciz_table); font_table_proc(font_table); identifier_proc(integer); ! ! Identifiers ! identifier ident1; ident2; ! ! Integer ! value int1 : 628; int2 : 0; int3 : -90009; int4 : 4883; int5 : -29; integer_table1 : integer_table(int1, int2, int3, int4, int5); ! ! Test for CR 5691 ! value integer_table2: integer_table(628, 0, -90009, 4883, -29); ! ! Compound String ! value c_string1 : compound_string('stR') & compound_string('Ing1'); c_string2 : compound_string(#iso_latin1'string number 2'); c_string3 : compound_string('Third string', character_set = iso_latin6); string_table1 : compound_string_table( c_string1, c_string2, c_string3); ! ! Asciz String ! value a_string1 : "a_string"; a_string2 : "ThiS_stRing2"; a_string3 : "3_stringG"; a_string4 : "String_4_U"; string_table2 : asciz_string_table( a_string1, a_string2, a_string3, a_string4); ! ! Font ! f_font1 : font('fixed'); f_font2 : font('6x10', character_set = iso_latin1); f_font3 : font('8x13bold', character_set = iso_latin6); font_table1 : font_table(f_font1, f_font2, f_font3); ! ! Widgets for use in various tests ! object widget1 : XmLabel { arguments { XmNfontList = font1; XmNlabelString = compound_string1; }; }; widget2 : XmLabel { arguments { XmNfontList = font2; XmNlabelString = compound_string2; }; }; widget3 : XmLabel { arguments { XmNfontList = font3; XmNlabelString = compound_string3; }; }; widget4 : XmLabel { arguments { XmNfontList = font4; }; }; widget5 : XmPushButton { callbacks { XmNactivateCallback = procedure integer_table_proc(integer_table1); }; }; ! ! Test for CR 5691 ! widget5a : XmPushButton { callbacks { XmNactivateCallback = procedure integer_table_proc(integer_table2); }; }; widget6 : XmPushButton { callbacks { XmNactivateCallback = procedure compound_string_table_proc(string_table1); }; }; widget7 : XmPushButton { callbacks { XmNactivateCallback = procedure asciz_string_table_proc(string_table2); }; }; widget8 : XmPushButton { callbacks { XmNactivateCallback = procedure font_table_proc(font_table1); }; }; widget9 : XmPushButton { arguments { XmNx = ident1; }; callbacks { XmNactivateCallback = procedure identifier_proc(ident2); }; }; end module;