2
* Copyright 1994, Integrated Computer Solutions, Inc.
12
/**************************************************************
14
**************************************************************/
20
#include <Xm/ToggleB.h>
21
#include <Xm/MultiList.h>
23
#include <pixmaps/crab.xpm>
24
#include <pixmaps/stopsign.xpm>
25
#include <pixmaps/porsche.xpm>
26
#include <pixmaps/clown.xbm>
28
/**************************************************************
30
**************************************************************/
31
Widget G_extlist = NULL;
37
PlayerData players[] = {
38
/* Name AB R H RBI AVG HR */
39
{ PPORSCHE, "Mo Vaughn", 159, 30, 55, 33, 346, 11 },
40
{ PCLOWN, "Tim Naehring", 133, 25, 43, 27, 323, 6 },
41
{ PSTOP, "Scott Cooper", 139, 24, 43, 30, 309, 9 },
42
{ PCLOWN, "John Valentin", 78, 12, 22, 11, 282, 2 },
43
{ PSTOP, "Carlos Rodriguez", 39, 2, 11, 4, 282, 1},
44
{ PCLOWN, "Otis Nixon", 148, 23, 41, 13, 277, 0},
45
{ PSTOP, "Scott Fletcher", 80, 13, 21, 8, 263, 2},
46
{ PCLOWN, "Andre Dawson", 134, 19, 33, 27, 246, 10},
47
{ PPORSCHE, "Damon Berryhill", 72, 4, 17, 6, 236, 1},
48
{ PPORSCHE, "Billy Hatcher", 139, 23, 32, 15, 230, 1},
49
{ PCLOWN, "Mike Greenwell", 151, 31, 35, 25, 232, 7},
50
{ PSTOP, "Rich Rowland", 28, 1, 6, 6, 214, 1},
51
{ PCLOWN, "Lee Tinsley", 34, 10, 7, 2, 206, 0},
52
{ PPORSCHE, "Dave Valle", 72, 5, 11, 4, 153, 1},
55
/**************************************************************
56
* FORWARD DECLARATIONS
57
**************************************************************/
58
Widget Createform(Widget, DemoInfo);
59
static void QuitCB(Widget, XtPointer, XtPointer);
61
/**************************************************************
63
**************************************************************/
65
/**************************************************************
67
**************************************************************/
68
static String fallbacks[] = {
70
* General fallback resources.
73
"*rightPane*background: grey",
74
"*fontList: -*-helvetica-medium-r-*-*-*-140-*-*-*-*-*-*",
75
"*explain_label*fontList: -*-helvetica-bold-r-*-*-*-140-*-*-*-*-*-*",
76
"*explain_label*marginWidth: 10",
77
"*explain_label*marginHeight: 10",
78
"*rem_label.alignment: XmALIGNMENT_BEGINNING",
79
"*rem_label.labelString: Remove Player",
80
"*add_label.labelString: Add Player ",
81
"*add_label.alignment: XmALIGNMENT_BEGINNING",
82
"*rem_pb.labelString: No Selected Player",
83
"*unsel_pb.labelString: Unselect Current",
84
"*firstRowCol.labelString: Go to Row 2, 1",
85
"*toggleFind.labelString: Toggle Finder",
86
"*quit_pb.labelString: Quit",
87
"*MultiList.title: Red Sox Line Up Card",
88
"*multilistWidget*title: Line Up",
89
"*playerone.labelString: Mo Vaughn",
90
"*playertwo.labelString: Tim Naehring",
91
"*playerthree.labelString: Scott Cooper",
92
"*playerfour.labelString: John Valentin",
93
"*playerfive.labelString: Carlos Rodriguez",
94
"*playersix.labelString: Otis Nixon",
95
"*playerseven.labelString: Scott Fletcher",
96
"*playereight.labelString: Andre Dawon",
97
"*playernine.labelString: Damon Berryhill",
98
"*playerten.labelString: Billy Hatcher",
99
"*playereleven.labelString: Mike Greenwell",
100
"*playertwelve.labelString: Rich Rowland",
101
"*playerthirteen.labelString: Lee Tinsley",
102
"*playerfourteen.labelString: Dave Valle",
103
"*ext18listWidget*background: White",
104
"*list*background: White",
108
/**************************************************************
110
**************************************************************/
112
* Function Name: InitializeData
119
InitializeData(shell )
122
porsche_pix = XPM_PIXMAP(shell, porsche);
123
crab_pix = XPM_PIXMAP(shell, crab);
124
stopsign_pix = XPM_PIXMAP(shell, stopsign);
125
clown_pix = XCreateBitmapFromData(XtDisplay(shell),
126
RootWindowOfScreen(XtScreen(shell)),
127
clown_bits, clown_width, clown_height);
131
/**************************************************************
132
* PUBLIC (GLOBAL) CODE
133
**************************************************************/
135
* Function Name: main
137
* Arguments: the usual suspects
142
main(int argc, char **argv)
146
DemoInfo demo_info = (DemoInfo)XtMalloc( sizeof(DemoStruct));
148
XtSetLanguageProc(NULL, (XtLanguageProc) NULL, NULL);
151
top = XtOpenApplication(
159
sessionShellWidgetClass,
162
demo = Createform(top, demo_info);
168
XtRealizeWidget(top);