*** empty log message ***
[PsN.git] / html / dia_guide_part2.php
blob0d3f5d87ef2726df1ddd6a4116f946bc1fb7574f
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>PsN :: PsN Developer's Guide to Dia :: 2</title>
5 <!--Adobe(R) LiveMotion(TM) 1.0 Generated JavaScript. Please do not edit. -->
6 <script>
7 <!--
8 function newImage(arg) {
9 if (document.images) {
10 rslt = new Image();
11 rslt.src = arg;
12 return rslt;
15 ImageArray = new Array;
16 var preloadFlag = false;
17 function preloadImages() {
18 if (document.images) {
19 ImageArray[ImageArray.length++] = newImage(/* OWNER('object', 'dflt') *//*URL*/'images/indexhome.jpg');
20 ImageArray[ImageArray.length++] = newImage(/* OWNER('object', 'movr') *//*URL*/'images/indexhomeov.jpg');
21 ImageArray[ImageArray.length++] = newImage(/* OWNER('object1', 'dflt') *//*URL*/'images/indexdocumentation.jpg');
22 ImageArray[ImageArray.length++] = newImage(/* OWNER('object1', 'movr') *//*URL*/'images/indexdocumentationov.jpg');
23 ImageArray[ImageArray.length++] = newImage(/* OWNER('object2', 'dflt') *//*URL*/'images/indexdownload.jpg');
24 ImageArray[ImageArray.length++] = newImage(/* OWNER('object2', 'movr') *//*URL*/'images/indexdownloadov.jpg');
25 ImageArray[ImageArray.length++] = newImage(/* OWNER('object3', 'dflt') *//*URL*/'images/indexbuglist.jpg');
26 ImageArray[ImageArray.length++] = newImage(/* OWNER('object3', 'movr') *//*URL*/'images/indexbuglistov.jpg');
27 ImageArray[ImageArray.length++] = newImage(/* OWNER('object4', 'dflt') *//*URL*/'images/indexmailing_list.jpg');
28 ImageArray[ImageArray.length++] = newImage(/* OWNER('object4', 'movr') *//*URL*/'images/indexmailing_listov.jpg');
29 preloadFlag = true;
32 function changeImages() {
33 if (document.images && (preloadFlag == true)) {
34 for (var i=0; i<changeImages.arguments.length; i+=2) {
35 document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
39 // -->
40 </script><!-- End generated JavaScript. -->
41 <meta http-equiv="Content-Type"
42 content="text/html; charset=ISO-8859-1">
43 <style type="text/css">
44 <!--
45 body,td,th {
46 font-family: Helvetica, Arial, serif;
47 font-size: 12px;
48 color: #000000;
50 body {
51 margin-left: 6px;
52 margin-top: 0px;
53 margin-right: 0px;
54 margin-bottom: 0px;
55 background-image: url(gfx/bg.jpg);
57 .style1 {
58 font-size: 36px;
59 font-weight: bold;
61 .heading1 {
62 font-size: 16px;
63 font-weight: bold;
64 color: #333399;
65 margin-left: 40px;
67 a:link {
68 color: #656D9C;
69 text-decoration: none;
71 a:visited {
72 color: #656D9C;
73 text-decoration: none;
75 a:hover {
76 color: #AF9D49;
77 text-decoration: none;
79 a:active {
80 color: #656D9C;
81 text-decoration: none;
83 -->
84 </style>
85 <script language="JavaScript" type="text/JavaScript">
86 <!--
87 function MM_reloadPage(init) { //reloads the window if Nav4 resized
88 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
89 document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
90 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
92 MM_reloadPage(true);
93 //-->
94 </script>
95 <meta content="Pontus Pihlgren" name="author">
96 </head>
97 <body onload="preloadImages();"
98 style="background-color: rgb(255, 255, 255);">
99 <!-- The table is not formatted nicely because some browsers cannot join images in table cells if there are any hard carriage returns in a TD. -->
100 <div id="Layer1"
101 style="position: absolute; left: 335px; top: 42px; width: 388px; height: 43px; z-index: 1; font-size: x-small;">
102 <div class="style1" align="right">PsN
103 Developer's Guide to Dia<br>
104 </div>
105 </div>
106 <div id="Layer2"
107 style="position: absolute; left: 226px; width: 497px; z-index: 2; top: 188px; height: 1536px;">
108 <div style="text-align: center;"></div>
109 <div align="justify">
110 <div style="text-align: center;">
111 <table style="text-align: left; width: 100%;" border="0" cellpadding="2"
112 cellspacing="2">
113 <tbody>
114 <tr>
115 <td style="vertical-align: top; width: 33%; text-align: center;"><a
116 href="dia_guide.php">&lt;&lt;
117 Page 1<br>
118 </a></td>
119 <td style="vertical-align: top; width: 33%; text-align: center;"><a
120 href="dia_index.php">Dia
121 Guide Index</a></td>
122 <td style="vertical-align: top; width: 33%; text-align: center;"><a
123 href="dia_guide_part3.php">Page 3 &gt;&gt;</a></td>
124 </tr>
125 </tbody>
126 </table>
127 </div>
128 <h3><span class="heading1">Generating Code</span><br>
129 </h3>
130 <p> Assuming that you have
131 Dia2Code installed and working you should start your shell and when you
132 se the prompt go to the directory where you created the Dia file and
133 type the following: </p>
134 <blockquote>
135 <p class="style2"><span style="font-family: monospace;">dia2code -t
136 perl
137 example.dia</span><br>
138 </p>
139 </blockquote>
140 <p>Dia2Code will generate a file
141 called <a href="examples/example.pm">"example.pm"</a>
142 in which it has defined a Perl package, a constructor(called <span
143 style="font-family: monospace;">new</span>),
145 method and one accessor.</p>
146 <p> You can start
147 editing this file and adding your own code to the skeleton. However the
148 file will be overwritten each time you change the Dia diagram and rerun
149 Dia2Code. But, relax, we have a solution for that as well. </p>
150 <h3><span class="heading1">Working with the <span
151 style="font-family: monospace;">fill_diacode.pl</span>
152 script<br>
153 </span></h3>
154 <p>Ideally it would be nice to be
155 able to enter code into Dia so that the
156 generated code would be ready after Dia2Code had run. Unfortunatly Dia
157 provide no such functionality. So we figured it would be great if we
158 could work in our favourite editor and have some script merge our code
159 with the code generated by Dia2Code.
160 We have solved this with a script
161 called <tt>fill_diacode.pl</tt>
162 that takes code from a file appropriately named <tt><a
163 href="examples/example_subs.pm">example_subs.pm</a></tt>
164 and puts it into the <tt>example.pm</tt>
165 file generated by Dia. To use <tt>fill_diacode.pl</tt>
166 type:
167 </p>
168 <blockquote>
169 <p style="font-family: monospace;">fill_diacode.pl
170 example_subs.pm example.pm</p>
171 </blockquote>
172 The merged file will look like this: <a href="examples/example.pm">example.pm</a>.
173 <p></p>
174 </div>
175 <div style="text-align: center;">
176 <p align="justify">&nbsp;
177 </p>
178 </div>
179 <table style="text-align: left; width: 100%;" border="0" cellpadding="2"
180 cellspacing="2">
181 <tbody>
182 <tr>
183 <td style="vertical-align: top; width: 33%; text-align: center;"><a
184 href="dia_guide.php">&lt;&lt;
185 Page 1<br>
186 </a></td>
187 <td style="vertical-align: top; width: 33%; text-align: center;"><a
188 href="dia_index.php">Dia
189 Guide Index</a></td>
190 <td style="vertical-align: top; width: 33%; text-align: center;"><a
191 href="dia_guide_part3.php">Page 3 &gt;&gt;</a></td>
192 </tr>
193 </tbody>
194 </table>
195 </div>
196 <table border="0" cellpadding="0" cellspacing="0" width="780">
197 <tbody>
198 <tr>
199 <td height="600" width="780">
200 <table border="0" cellpadding="0" cellspacing="0" width="780">
201 <tbody>
202 <tr>
203 <td colspan="7" height="201" width="780"><img
204 src="images/indexpane1_1_.jpg" name="" alt="" border="0" height="201"
205 width="780"></td>
206 </tr>
207 <tr>
208 <td height="46" width="26"><img
209 src="images/indexpane1_2_.jpg" name="" alt="" border="0" height="46"
210 width="26"></td>
211 <td height="46" width="73"><a href="index.php"
212 onmouseover="changeImages(/*CMP*/ 'object', /*URL*/ 'images/indexhomeov.jpg'); return true;"
213 onmouseout="changeImages(/*CMP*/ 'object', /*URL*/ 'images/indexhome.jpg'); return true;"><img
214 src="images/indexhome.jpg" name="object" alt="Home" border="0"
215 height="46" width="73"></a></td>
216 <td height="46" width="11"><img
217 src="images/indexpane3_2_.jpg" name="" alt="" border="0" height="46"
218 width="11"></td>
219 <td height="46" width="25"><img
220 src="images/indexpane4_2_.jpg" name="" alt="" border="0" height="46"
221 width="25"></td>
222 <td height="46" width="15"><img
223 src="images/indexpane5_2_.jpg" name="" alt="" border="0" height="46"
224 width="15"></td>
225 <td height="46" width="40"><img
226 src="images/indexpane6_2_.jpg" name="" alt="" border="0" height="46"
227 width="40"></td>
228 <td height="46" width="590"><img
229 src="images/indexpane7_2_.jpg" name="" alt="" border="0" height="46"
230 width="590"></td>
231 </tr>
232 <tr>
233 <td colspan="7" height="7" width="780"><img
234 src="images/indexpane1_3_.jpg" name="" alt="" border="0" height="7"
235 width="780"></td>
236 </tr>
237 <tr>
238 <td height="46" width="26"><img
239 src="images/indexpane1_4_.jpg" name="" alt="" border="0" height="46"
240 width="26"></td>
241 <td colspan="5" height="46" width="164"><a href="docs.php"
242 onmouseover="changeImages(/*CMP*/ 'object1', /*URL*/ 'images/indexdocumentationov.jpg'); return true;"
243 onmouseout="changeImages(/*CMP*/ 'object1', /*URL*/ 'images/indexdocumentation.jpg'); return true;"><img
244 src="images/indexdocumentation.jpg" name="object1" alt="Documentation"
245 border="0" height="46" width="164"></a></td>
246 <td height="46" width="590"><img
247 src="images/indexpane7_4_.jpg" name="" alt="" border="0" height="46"
248 width="590"></td>
249 </tr>
250 <tr>
251 <td colspan="7" height="7" width="780"><img
252 src="images/indexpane1_5_.jpg" name="" alt="" border="0" height="7"
253 width="780"></td>
254 </tr>
255 <tr>
256 <td height="46" width="26"><img
257 src="images/indexpane1_6_.jpg" name="" alt="" border="0" height="46"
258 width="26"></td>
259 <td colspan="3" height="46" width="109"><a
260 href="download.php"
261 onmouseover="changeImages(/*CMP*/ 'object2', /*URL*/ 'images/indexdownloadov.jpg'); return true;"
262 onmouseout="changeImages(/*CMP*/ 'object2', /*URL*/ 'images/indexdownload.jpg'); return true;"><img
263 src="images/indexdownload.jpg" name="object2" alt="Download" border="0"
264 height="46" width="109"></a></td>
265 <td colspan="3" height="46" width="645"><img
266 src="images/indexpane5_6_.jpg" name="" alt="" border="0" height="46"
267 width="645"></td>
268 </tr>
269 <tr>
270 <td colspan="7" height="7" width="780"><img
271 src="images/indexpane1_7_.jpg" name="" alt="" border="0" height="7"
272 width="780"></td>
273 </tr>
274 <tr>
275 <td height="46" width="26"><img
276 src="images/indexpane1_8_.jpg" name="" alt="" border="0" height="46"
277 width="26"></td>
278 <td colspan="2" height="46" width="84"><a href="buglist.php"
279 onmouseover="changeImages(/*CMP*/ 'object3', /*URL*/ 'images/indexbuglistov.jpg'); return true;"
280 onmouseout="changeImages(/*CMP*/ 'object3', /*URL*/ 'images/indexbuglist.jpg'); return true;"><img
281 src="images/indexbuglist.jpg" name="object3" alt="Buglist" border="0"
282 height="46" width="84"></a></td>
283 <td colspan="4" height="46" width="670"><img
284 src="images/indexpane4_8_.jpg" name="" alt="" border="0" height="46"
285 width="670"></td>
286 </tr>
287 <tr>
288 <td colspan="7" height="7" width="780"><img
289 src="images/indexpane1_9_.jpg" name="" alt="" border="0" height="7"
290 width="780"></td>
291 </tr>
292 <tr>
293 <td height="46" width="26"><img
294 src="images/indexpane1_10_.jpg" name="" alt="" border="0" height="46"
295 width="26"></td>
296 <td colspan="4" height="46" width="124"><a href="list.php"
297 onmouseover="changeImages(/*CMP*/ 'object4', /*URL*/ 'images/indexmailing_listov.jpg'); return true;"
298 onmouseout="changeImages(/*CMP*/ 'object4', /*URL*/ 'images/indexmailing_list.jpg'); return true;"><img
299 src="images/indexmailing_list.jpg" name="object4" alt="Mailing List"
300 border="0" height="46" width="124"></a></td>
301 <td colspan="2" height="46" width="630"><img
302 src="images/indexpane6_10_.jpg" name="" alt="" border="0" height="46"
303 width="630"></td>
304 </tr>
305 <tr>
306 <td colspan="7" height="141" width="780"><img
307 src="images/indexpane1_11_.jpg" name="" alt="" border="0" height="141"
308 width="780"></td>
309 </tr>
310 </tbody>
311 </table>
312 </td>
313 </tr>
314 <tr>
315 <td><img src="images/is_single_pixel_gif.gif" alt="" height="1"
316 width="780"></td>
317 </tr>
318 </tbody>
319 </table>
320 <!--Adobe(R) LiveMotion(TM) DataMap1.0 DO NOT EDIT
321 end DataMap -->
322 </body>
323 </html>