Initial version of donated sources by Avertec, 3.4p5.
[tas-yagle.git] / distrib / sources / yagle / xyagle / XMS_panel.c
1 /*------------------------------------------------------------\
2 | |
3 | Tool : XYAG |
4 | |
5 | File : Panel.c |
6 | |
7 | Authors : Jacomme Ludovic |
8 | Lester Anthony |
9 | |
10 \------------------------------------------------------------*/
11
12 #include <stdio.h>
13 #include <string.h>
14
15 #include <Xm/Xm.h>
16 #include <Xm/FileSB.h>
17 #include <Xm/SelectioB.h>
18 #include <Xm/PushBG.h>
19 #include <Xm/Text.h>
20
21 #include MUT_H
22 #include MLO_H
23 #include CGV_H
24 #include XSB_H
25 #include XTB_H
26 #include XYA_H
27 #include XMS_H
28
29 #include "XMS_panel.h"
30
31 static char *XyagPanelInformationsButtonName[] =
32 {
33 "Text",
34 "Close"
35 };
36
37 XyagPanelButtonItem XyagSetupInformationsButton[] =
38 {
39 {
40 &XyagPanelInformationsButtonName[0],
41 "Nothing", NULL, 0, 0,
42 NULL,
43 NULL,
44 0, 0,
45 8, 9,
46 NULL,
47 (XtPointer) NULL,
48 (Widget) NULL
49 }
50 ,
51 {
52 &XyagPanelInformationsButtonName[1],
53 NULL, NULL, 0, 0,
54 NULL,
55 NULL,
56 3, 9,
57 2, 1,
58 XyagExitDialogCallback,
59 (XtPointer) NULL,
60 (Widget) NULL
61 }
62 ,
63 {
64 NULL, NULL, NULL, 0, 0, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL
65 }
66 };
67
68 XyagPanelItem XyagSetupInformationsPanel =
69 {
70 "Informations",
71 1,
72 0,
73 XYAG_SETUP_INFORMATIONS_X,
74 XYAG_SETUP_INFORMATIONS_Y,
75 360,
76 250,
77 8,
78 10,
79 (Widget) NULL,
80 (Widget) NULL,
81 (Widget) NULL,
82 (Widget) NULL,
83 XyagSetupInformationsButton
84 };
85
86 int XyagSetupInformationsDefaultValues[5] =
87 {
88 XYAG_SETUP_INFORMATIONS_X,
89 XYAG_SETUP_INFORMATIONS_Y,
90 360, 250, 0
91 };
92
93 /*------------------------------------------------------------\
94 | XyagDisplayInformations |
95 \------------------------------------------------------------*/
96
97 void
98 XyagDisplayInformations()
99 {
100 char *Message;
101
102 Message = XyagGetInformations();
103 XmTextSetString(XyagSetupInformationsButton[0].BUTTON, Message);
104 XyagEnterPanel(&XyagSetupInformationsPanel);
105 XyagLimitedLoop(XyagSetupInformationsPanel.PANEL);
106 XyagExitPanel(&XyagSetupInformationsPanel);
107 }