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 : Icon.c |
33 | |
34 | Author : Jacomme Ludovic |
35 | |
36 | Date : 28.03.95 |
37 | |
38 \------------------------------------------------------------*/
39
40 /*------------------------------------------------------------\
41 | |
42 | Include Files |
43 | |
44 \------------------------------------------------------------*/
45
46 # include <stdio.h>
47 # include <Xm/Xm.h>
48 # include <Xm/PushB.h>
49 # include <Xm/Form.h>
50 # include <Xm/Frame.h>
51
52 # include "mut.h"
53 # include "mph.h"
54 # include "rds.h"
55 # include "rpr.h"
56 # include "GSB.h"
57 # include "GTB.h"
58 # include "GMX.h"
59
60 # include "GMX_icon.h"
61
62 /*------------------------------------------------------------\
63 | |
64 | Constants |
65 | |
66 \------------------------------------------------------------*/
67 /*------------------------------------------------------------\
68 | |
69 | Types |
70 | |
71 \------------------------------------------------------------*/
72 /*------------------------------------------------------------\
73 | |
74 | Variables |
75 | |
76 \------------------------------------------------------------*/
77
78 static char IconBits[] =
79
80 {
81 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x17, 0x00, 0x00, 0x00,
82 0x78, 0x00, 0x18, 0x1c, 0x00, 0x00, 0x00, 0x40, 0x00, 0x0c, 0x18, 0x00,
83 0x00, 0x00, 0x40, 0x00, 0x06, 0x10, 0x00, 0x00, 0x00, 0x40, 0x00, 0x02,
84 0x10, 0x00, 0x00, 0x00, 0x40, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x40,
85 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x02, 0x80, 0x33, 0x7c,
86 0xf0, 0x41, 0x00, 0x02, 0x00, 0x4a, 0x86, 0x18, 0x42, 0x00, 0x02, 0x00,
87 0x46, 0x82, 0x08, 0x42, 0x00, 0x02, 0x7f, 0x02, 0x80, 0x00, 0x42, 0x00,
88 0x82, 0x13, 0x02, 0x80, 0x00, 0x42, 0x00, 0x82, 0x11, 0x02, 0xf8, 0xe0,
89 0x43, 0x00, 0x82, 0x10, 0x02, 0x86, 0x18, 0x42, 0x00, 0x02, 0x10, 0x02,
90 0x81, 0x04, 0x42, 0x00, 0x02, 0x10, 0x02, 0x81, 0x04, 0x42, 0x00, 0x06,
91 0x10, 0x02, 0x81, 0x04, 0x42, 0x00, 0x0c, 0x18, 0x02, 0x81, 0x04, 0x42,
92 0x00, 0x18, 0x0c, 0x02, 0x81, 0x04, 0x42, 0x00, 0xf0, 0x87, 0x0f, 0xfe,
93 0xf9, 0xf7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
94 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
95 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x18, 0x00,
96 0x00, 0x00, 0x00, 0x00, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
97 0x20, 0x00, 0x00, 0x00, 0x80, 0x01, 0x10, 0x40, 0x00, 0x06, 0x00, 0x00,
98 0x02, 0x10, 0x40, 0x00, 0x01, 0x00, 0x00, 0x02, 0x10, 0x40, 0x00, 0x01,
99 0x00, 0x00, 0x06, 0x20, 0x20, 0x80, 0x01, 0x00, 0x00, 0x04, 0x20, 0x20,
100 0x80, 0x00, 0x00, 0x00, 0x0c, 0xc0, 0x18, 0xc0, 0x00, 0x00, 0x00, 0x78,
101 0x00, 0x07, 0x78, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x0c, 0x00, 0x00,
102 0x00, 0x80, 0x07, 0x80, 0x07, 0x00, 0x00, 0x00, 0x00, 0x0c, 0xc0, 0x00,
103 0x00, 0x00, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
104 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00,
105 0x00, 0x40, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00,
106 0x00, 0x00, 0x00, 0x0c, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
107 0x01, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x06, 0x00, 0x00, 0x00, 0xfe,
108 0xff, 0xff, 0xff, 0x01, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x06, 0x00,
109 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
110 0x00, 0x00
111 };
112
113 /*------------------------------------------------------------\
114 | |
115 | Functions |
116 | |
117 \------------------------------------------------------------*/
118 /*------------------------------------------------------------\
119 | |
120 | GraalInitializeIcon |
121 | |
122 \------------------------------------------------------------*/
123
GraalInitializeIcon()124 void GraalInitializeIcon()
125
126 {
127 rdsbegin();
128
129 GraalSetIcon( GraalTopLevel,
130 IconBits, IconWidth, IconHeight );
131
132 rdsend();
133 }
134