-
Notifications
You must be signed in to change notification settings - Fork 0
/
paneldb.c
76 lines (59 loc) · 2.08 KB
/
paneldb.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include <Xm/PushB.h>
#include <Xm/RowColumn.h>
#include <Xm/Label.h>
#include "pc2d.h"
Widget CreatePanel (Widget MW)
/***********************************************************************
*
*_Title CreatePanel - Creates panel buttons on main window
*
*_Args Type Variable I/O Description
*_Parm Widget MW I Main Window widget id
*_Parm Widget CreatePanel O Widget id of output panel
*_DESC This routine creates the link/blink/etc buttons on the
* main window.
*_HIST Jan 1 1996 Jeff Anderson, Original version
* May 6 2002 Janet Barrett, Modified to work with the pc2d
* program.
*_END
************************************************************************/
{
Widget RC;
Widget linkPB;
Widget junkPB;
void CBpanelLinkPB (Widget id, XtPointer client_data, XtPointer call_data);
RC = XmCreateRowColumn (MW,"panelRC",NULL,0);
XtVaSetValues (RC,XmNadjustLast,False,
XmNentryAlignment,XmALIGNMENT_CENTER,
XmNorientation,XmHORIZONTAL,
NULL);
linkPB = XmCreatePushButton (RC,"Link",NULL,0);
XtAddCallback (linkPB,XmNactivateCallback,CBpanelLinkPB,NULL);
XtManageChild (linkPB);
junkPB = XmCreateLabel (RC," ",NULL,0);
XtManageChild (junkPB);
return RC;
}
void CBpanelLinkPB (Widget id, XtPointer client_data, XtPointer call_data)
/***********************************************************************
*
*_Title CBpanelLinkPB - callback for link pushbutton
*
*_Args Type Variable I/O Description
*_Parm Widget id I See Xt toolkit reference
* manual
*_Parm XtPointer client_data I Not Used
*_Parm XtPointer call_data I See Xt toolkit reference
* manual
*_DESC This routine is called when the link pushbutton is pressed. It
* calls the routine to create the link dialog box.
*_HIST Jan 1 1996 Jeff Anderson, Original version
* May 6 2002 Janet Barrett, Modified to work with the pc2d
* program.
*_END
************************************************************************/
{
void CreateLinkDB (void);
CreateLinkDB ();
return;
}