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    :                  Message.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 <Xm/Xm.h>
47 # include <Xm/PushBG.h>
48 # include <Xm/CascadeBG.h>
49 
50 
51 # include "mut.h"
52 # include "mph.h"
53 # include "rds.h"
54 # include "rpr.h"
55 # include "rfm.h"
56 # include "GRM.h"
57 # include "GMX.h"
58 # include "GTB.h"
59 # include "GSB.h"
60 # include "GMT.h"
61 # include "GMT_tools.h"
62 # include "GMT_message.h"
63 
64 /*------------------------------------------------------------\
65 |                                                             |
66 |                           Constants                         |
67 |                                                             |
68 \------------------------------------------------------------*/
69 /*------------------------------------------------------------\
70 |                                                             |
71 |                            Types                            |
72 |                                                             |
73 \------------------------------------------------------------*/
74 /*------------------------------------------------------------\
75 |                                                             |
76 |                          Variables                          |
77 |                                                             |
78 \------------------------------------------------------------*/
79 /*------------------------------------------------------------\
80 |                                                             |
81 |                          Functions                          |
82 |                                                             |
83 \------------------------------------------------------------*/
84 /*------------------------------------------------------------\
85 |                                                             |
86 |                     GraalPromptToolsPeek                    |
87 |                                                             |
88 \------------------------------------------------------------*/
89 
GraalPromptToolsPeek()90 void GraalPromptToolsPeek()
91 
92 {
93   rdsbegin();
94 
95   GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Peek" );
96   GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select window" );
97 
98   switch ( GraalCountEventEdit )
99   {
100     case 0 :
101 
102       GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter first corner" );
103 
104     break;
105 
106     case 1 :
107 
108       GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter next corner" );
109   }
110 
111   rdsend();
112 }
113 
114 /*------------------------------------------------------------\
115 |                                                             |
116 |                     GraalPromptToolsDruc                    |
117 |                                                             |
118 \------------------------------------------------------------*/
119 
GraalPromptToolsDruc()120 void GraalPromptToolsDruc()
121 
122 {
123   rdsbegin();
124 
125   GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Druc" );
126   GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select window" );
127 
128   switch ( GraalCountEventEdit )
129   {
130     case 0 :
131 
132       GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter first corner" );
133 
134     break;
135 
136     case 1 :
137 
138       GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter next corner" );
139   }
140 
141   rdsend();
142 }
143 
144 /*------------------------------------------------------------\
145 |                                                             |
146 |                     GraalPromptToolsEqui                    |
147 |                                                             |
148 \------------------------------------------------------------*/
149 
GraalPromptToolsEqui()150 void GraalPromptToolsEqui()
151 
152 {
153   rdsbegin();
154 
155   GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Equi" );
156   GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select object" );
157   GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter select point" );
158 
159   rdsend();
160 }
161 
162 /*------------------------------------------------------------\
163 |                                                             |
164 |                     GraalPromptToolsFlatten                 |
165 |                                                             |
166 \------------------------------------------------------------*/
167 
GraalPromptToolsFlatten()168 void GraalPromptToolsFlatten()
169 
170 {
171   rdsbegin();
172 
173   GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Flatten" );
174   GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select window" );
175 
176   switch ( GraalCountEventEdit )
177   {
178     case 0 :
179 
180       GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter first corner" );
181 
182     break;
183 
184     case 1 :
185 
186       GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter next corner" );
187   }
188 
189   rdsend();
190 }
191 
192 /*------------------------------------------------------------\
193 |                                                             |
194 |                  GraalPromptToolsRealFlatten                |
195 |                                                             |
196 \------------------------------------------------------------*/
197 
GraalPromptToolsRealFlatten()198 void GraalPromptToolsRealFlatten()
199 
200 {
201   rdsbegin();
202 
203   GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Real flatten" );
204   GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select window" );
205 
206   switch ( GraalCountEventEdit )
207   {
208     case 0 :
209 
210       GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter first corner" );
211 
212     break;
213 
214     case 1 :
215 
216       GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter next corner" );
217   }
218 
219   rdsend();
220 }
221 
222 /*------------------------------------------------------------\
223 |                                                             |
224 |                     GraalPromptToolsUnflatten               |
225 |                                                             |
226 \------------------------------------------------------------*/
227 
GraalPromptToolsUnflatten()228 void GraalPromptToolsUnflatten()
229 
230 {
231   rdsbegin();
232 
233   GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Unflatten" );
234   GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select window" );
235 
236   switch ( GraalCountEventEdit )
237   {
238     case 0 :
239 
240       GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter first corner" );
241 
242     break;
243 
244     case 1 :
245 
246       GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter next corner" );
247   }
248 
249   rdsend();
250 }
251 
252 /*------------------------------------------------------------\
253 |                                                             |
254 |                     GraalPromptToolsHierarchyDown           |
255 |                                                             |
256 \------------------------------------------------------------*/
257 
GraalPromptToolsHierarchyDown()258 void GraalPromptToolsHierarchyDown()
259 
260 {
261   rdsbegin();
262 
263   GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Go down" );
264   GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select instance" );
265   GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter select point" );
266 
267   rdsend();
268 }
269 
270 /*------------------------------------------------------------\
271 |                                                             |
272 |                     GraalPromptToolsHierarchyShow           |
273 |                                                             |
274 \------------------------------------------------------------*/
275 
GraalPromptToolsHierarchyShow()276 void GraalPromptToolsHierarchyShow()
277 
278 {
279   rdsbegin();
280 
281   GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Show path" );
282   GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select root point" );
283   GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter point" );
284 
285   rdsend();
286 }
287