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 "GMV.h"
61 # include "GMV_message.h"
62
63 /*------------------------------------------------------------\
64 | |
65 | Constants |
66 | |
67 \------------------------------------------------------------*/
68 /*------------------------------------------------------------\
69 | |
70 | Types |
71 | |
72 \------------------------------------------------------------*/
73 /*------------------------------------------------------------\
74 | |
75 | Variables |
76 | |
77 \------------------------------------------------------------*/
78 /*------------------------------------------------------------\
79 | |
80 | Functions |
81 | |
82 \------------------------------------------------------------*/
83 /*------------------------------------------------------------\
84 | |
85 | GraalPromptZoomIn |
86 | |
87 \------------------------------------------------------------*/
88
GraalPromptZoomIn()89 void GraalPromptZoomIn()
90
91 {
92 rdsbegin();
93
94 GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Zoom In" );
95 GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select window" );
96
97 switch ( GraalCountEventZoom )
98 {
99 case 0 :
100
101 GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter first corner" );
102
103 break;
104
105 case 1 :
106
107 GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter second corner" );
108 }
109
110 rdsend();
111 }
112
113 /*------------------------------------------------------------\
114 | |
115 | GraalPromptZoomPan |
116 | |
117 \------------------------------------------------------------*/
118
GraalPromptZoomPan()119 void GraalPromptZoomPan()
120
121 {
122 rdsbegin();
123
124 GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Zoom Pan" );
125 GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select line" );
126
127 switch ( GraalCountEventZoom )
128 {
129 case 0 :
130
131 GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter source point" );
132
133 break;
134
135 case 1 :
136
137 GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter target point" );
138 }
139
140 rdsend();
141 }
142
143 /*------------------------------------------------------------\
144 | |
145 | GraalPromptZoomCenter |
146 | |
147 \------------------------------------------------------------*/
148
GraalPromptZoomCenter()149 void GraalPromptZoomCenter()
150
151 {
152 rdsbegin();
153
154 GraalDisplayMessage( GRAAL_MESSAGE_MODE, "Zoom Center" );
155 GraalDisplayMessage( GRAAL_MESSAGE_INFO, "Select point" );
156 GraalDisplayMessage( GRAAL_MESSAGE_PROMPT, "Enter center point" );
157
158 rdsend();
159 }
160
161