1 /*------------------------------------------------------------\
2 | |
3 | This file is part of the Alliance CAD System Copyright |
4 | (C) Laboratoire LIP6 - D�partement ASIM Universite P&M Curie|
5 | |
6 | Home page : http://www-asim.lip6.fr/alliance/ |
7 | E-mail : mailto:alliance-users@asim.lip6.fr |
8 | |
9 | This progam is free software; you can redistribute it |
10 | and/or modify it under the terms of the GNU General Public |
11 | License as published by the Free Software Foundation; |
12 | either version 2 of the License, or (at your option) any |
13 | later version. |
14 | |
15 | Alliance VLSI CAD System is distributed in the hope that |
16 | it will be useful, but WITHOUT ANY WARRANTY; |
17 | without even the implied warranty of MERCHANTABILITY or |
18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
19 | Public License for more details. |
20 | |
21 | You should have received a copy of the GNU General Public |
22 | License along with the GNU C Library; see the file COPYING. |
23 | If not, write to the Free Software Foundation, Inc., |
24 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
25 | |
26 \------------------------------------------------------------*/
27
28 /*------------------------------------------------------------\
29 | |
30 | Tool : GRAAL |
31 | |
32 | File : Panel.c |
33 | |
34 | Author : Jacomme Ludovic |
35 | |
36 | Date : 28.03.95 |
37 | |
38 \------------------------------------------------------------*/
39 /*------------------------------------------------------------\
40 | |
41 | Include Files |
42 | |
43 \------------------------------------------------------------*/
44
45 # include <stdio.h>
46 # include <string.h>
47 # include <Xm/Xm.h>
48 # include <Xm/Text.h>
49 # include <Xm/FileSB.h>
50 # include <Xm/SelectioB.h>
51 # include <Xm/PushBG.h>
52
53 # include "mut.h"
54 # include "mph.h"
55 # include "rds.h"
56 # include "rpr.h"
57 # include "rfm.h"
58 # include "GTB.h"
59 # include "GSB.h"
60 # include "GRM.h"
61 # include "GMS.h"
62
63 # include "GMS_panel.h"
64 # include "GME_dialog.h"
65
66 /*------------------------------------------------------------\
67 | |
68 | Constants |
69 | |
70 \------------------------------------------------------------*/
71 /*------------------------------------------------------------\
72 | |
73 | Types |
74 | |
75 \------------------------------------------------------------*/
76 /*------------------------------------------------------------\
77 | |
78 | Variables |
79 | |
80 \------------------------------------------------------------*/
81 /*------------------------------------------------------------\
82 | |
83 | Panel |
84 | |
85 \------------------------------------------------------------*/
86 /*------------------------------------------------------------\
87 | |
88 | Panel Informations |
89 | |
90 \------------------------------------------------------------*/
91
92 GraalPanelButtonItem GraalSetupInformationsButton[] =
93
94 {
95 {
96 "Text",
97 "Nothing", NULL, 0, 0,
98 NULL,
99 NULL,
100 0, 0,
101 8, 9,
102 NULL,
103 (XtPointer)NULL,
104 (Widget)NULL
105 }
106 ,
107 {
108 "Close",
109 NULL, NULL, 0, 0,
110 NULL,
111 NULL,
112 3, 9,
113 2, 1,
114 GraalExitDialogCallback,
115 (XtPointer)NULL,
116 (Widget)NULL
117 }
118 };
119
120 GraalPanelItem GraalSetupInformationsPanel =
121
122 {
123 "Informations",
124 1,
125 0,
126 GRAAL_SETUP_INFORMATIONS_X,
127 GRAAL_SETUP_INFORMATIONS_Y,
128 360,
129 250,
130 8,
131 10,
132 (Widget)NULL,
133 (Widget)NULL,
134 (Widget)NULL,
135 (Widget)NULL,
136 2,
137 GraalSetupInformationsButton
138 };
139
140 int GraalSetupInformationsDefaultValues[ 5 ] =
141
142 {
143 GRAAL_SETUP_INFORMATIONS_X,
144 GRAAL_SETUP_INFORMATIONS_Y,
145 360, 250, 0
146 };
147
148 /*------------------------------------------------------------\
149 | |
150 | Callback For Informations |
151 | |
152 \------------------------------------------------------------*/
153 /*------------------------------------------------------------\
154 | |
155 | GraalDisplayInformations |
156 | |
157 \------------------------------------------------------------*/
158
GraalDisplayInformations()159 void GraalDisplayInformations()
160
161 {
162 char *Message;
163
164 rdsbegin();
165
166 Message = GraalGetInformations();
167
168 XmTextSetString( GraalSetupInformationsButton[0].BUTTON, Message );
169
170 GraalEnterPanel( &GraalSetupInformationsPanel );
171
172 GraalLimitedLoop( GraalSetupInformationsPanel.PANEL );
173
174 GraalExitPanel( &GraalSetupInformationsPanel );
175
176 rdsend();
177 }
178