Worked on image save as a file in Moodle.
[moodle/mihaisucan.git] / lib / paintweb / docs / api-ref / symbols / pwlib.appEvent.appInit.html
blob1318bc5ad6caefaca13a8e18186c354c893b33ba
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="JsDoc Toolkit" />
8 <title>JsDoc Reference - pwlib.appEvent.appInit</title>
10 <style type="text/css">
11 /* default.css */
12 body
14 font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
15 width: 800px;
18 .header
20 clear: both;
21 background-color: #ccc;
22 padding: 8px;
27 font-size: 150%;
28 font-weight: bold;
29 padding: 0;
30 margin: 1em 0 0 .3em;
35 border: none 0;
36 border-top: 1px solid #7F8FB1;
37 height: 1px;
40 pre.code
42 display: block;
43 padding: 8px;
44 border: 1px dashed #ccc;
47 #index
49 margin-top: 24px;
50 float: left;
51 width: 160px;
52 position: absolute;
53 left: 8px;
54 background-color: #F3F3F3;
55 padding: 8px;
58 #content
60 margin-left: 190px;
61 width: 600px;
64 .classList
66 list-style-type: none;
67 padding: 0;
68 margin: 0 0 0 8px;
69 font-family: arial, sans-serif;
70 font-size: 1em;
71 overflow: auto;
74 .classList li
76 padding: 0;
77 margin: 0 0 8px 0;
80 .summaryTable { width: 100%; }
82 h1.classTitle
84 font-size:170%;
85 line-height:130%;
88 h2 { font-size: 110%; }
89 caption, div.sectionTitle
91 background-color: #7F8FB1;
92 color: #fff;
93 font-size:130%;
94 text-align: left;
95 padding: 2px 6px 2px 6px;
96 border: 1px #7F8FB1 solid;
99 div.sectionTitle { margin-bottom: 8px; }
100 .summaryTable thead { display: none; }
102 .summaryTable td
104 vertical-align: top;
105 padding: 4px;
106 border-bottom: 1px #7F8FB1 solid;
107 border-right: 1px #7F8FB1 solid;
110 /*col#summaryAttributes {}*/
111 .summaryTable td.attributes
113 border-left: 1px #7F8FB1 solid;
114 width: 140px;
115 text-align: right;
118 td.attributes, .fixedFont
120 line-height: 15px;
121 color: #002EBE;
122 font-family: "Courier New",Courier,monospace;
123 font-size: 13px;
126 .summaryTable td.nameDescription
128 text-align: left;
129 font-size: 13px;
130 line-height: 15px;
133 .summaryTable td.nameDescription, .description
135 line-height: 15px;
136 padding: 4px;
137 padding-left: 4px;
140 .summaryTable { margin-bottom: 8px; }
142 ul.inheritsList
144 list-style: square;
145 margin-left: 20px;
146 padding-left: 0;
149 .detailList {
150 margin-left: 20px;
151 line-height: 15px;
153 .detailList dt { margin-left: 20px; }
155 .detailList .heading
157 font-weight: bold;
158 padding-bottom: 6px;
159 margin-left: 0;
162 .light, td.attributes, .light a:link, .light a:visited
164 color: #777;
165 font-style: italic;
168 .fineprint
170 text-align: right;
171 font-size: 10px;
173 </style>
174 </head>
176 <body>
177 <!-- ============================== header ================================= -->
178 <!-- begin static/header.html -->
179 <div id="header">
180 </div>
181 <!-- end static/header.html -->
183 <!-- ============================== classes index ============================ -->
184 <div id="index">
185 <!-- begin publish.classesIndex -->
186 <div align="center"><a href="../index.html">Class Index</a>
187 | <a href="../files.html">File Index</a></div>
188 <hr />
189 <h2>Classes</h2>
190 <ul class="classList">
192 <li><i><a href="../symbols/_global_.html">_global_</a></i></li>
194 <li><a href="../symbols/PaintWeb.html">PaintWeb</a></li>
196 <li><a href="../symbols/pwlib.html">pwlib</a></li>
198 <li><a href="../symbols/pwlib.appEvent.html">pwlib.appEvent</a></li>
200 <li><a href="../symbols/pwlib.appEvent.appDestroy.html">pwlib.appEvent.appDestroy</a></li>
202 <li><a href="../symbols/pwlib.appEvent.appInit.html">pwlib.appEvent.appInit</a></li>
204 <li><a href="../symbols/pwlib.appEvent.canvasSizeChange.html">pwlib.appEvent.canvasSizeChange</a></li>
206 <li><a href="../symbols/pwlib.appEvent.clipboardUpdate.html">pwlib.appEvent.clipboardUpdate</a></li>
208 <li><a href="../symbols/pwlib.appEvent.commandRegister.html">pwlib.appEvent.commandRegister</a></li>
210 <li><a href="../symbols/pwlib.appEvent.commandUnregister.html">pwlib.appEvent.commandUnregister</a></li>
212 <li><a href="../symbols/pwlib.appEvent.configChange.html">pwlib.appEvent.configChange</a></li>
214 <li><a href="../symbols/pwlib.appEvent.extensionRegister.html">pwlib.appEvent.extensionRegister</a></li>
216 <li><a href="../symbols/pwlib.appEvent.extensionUnregister.html">pwlib.appEvent.extensionUnregister</a></li>
218 <li><a href="../symbols/pwlib.appEvent.guiFloatingPanelStateChange.html">pwlib.appEvent.guiFloatingPanelStateChange</a></li>
220 <li><a href="../symbols/pwlib.appEvent.guiHide.html">pwlib.appEvent.guiHide</a></li>
222 <li><a href="../symbols/pwlib.appEvent.guiResizeEnd.html">pwlib.appEvent.guiResizeEnd</a></li>
224 <li><a href="../symbols/pwlib.appEvent.guiResizeStart.html">pwlib.appEvent.guiResizeStart</a></li>
226 <li><a href="../symbols/pwlib.appEvent.guiShow.html">pwlib.appEvent.guiShow</a></li>
228 <li><a href="../symbols/pwlib.appEvent.guiTabActivate.html">pwlib.appEvent.guiTabActivate</a></li>
230 <li><a href="../symbols/pwlib.appEvent.historyUpdate.html">pwlib.appEvent.historyUpdate</a></li>
232 <li><a href="../symbols/pwlib.appEvent.imageCrop.html">pwlib.appEvent.imageCrop</a></li>
234 <li><a href="../symbols/pwlib.appEvent.imageSave.html">pwlib.appEvent.imageSave</a></li>
236 <li><a href="../symbols/pwlib.appEvent.imageSaveResult.html">pwlib.appEvent.imageSaveResult</a></li>
238 <li><a href="../symbols/pwlib.appEvent.imageSizeChange.html">pwlib.appEvent.imageSizeChange</a></li>
240 <li><a href="../symbols/pwlib.appEvent.imageZoom.html">pwlib.appEvent.imageZoom</a></li>
242 <li><a href="../symbols/pwlib.appEvent.selectionChange.html">pwlib.appEvent.selectionChange</a></li>
244 <li><a href="../symbols/pwlib.appEvent.shadowAllow.html">pwlib.appEvent.shadowAllow</a></li>
246 <li><a href="../symbols/pwlib.appEvent.toolActivate.html">pwlib.appEvent.toolActivate</a></li>
248 <li><a href="../symbols/pwlib.appEvent.toolPreactivate.html">pwlib.appEvent.toolPreactivate</a></li>
250 <li><a href="../symbols/pwlib.appEvent.toolRegister.html">pwlib.appEvent.toolRegister</a></li>
252 <li><a href="../symbols/pwlib.appEvent.toolUnregister.html">pwlib.appEvent.toolUnregister</a></li>
254 <li><a href="../symbols/pwlib.appEvents.html">pwlib.appEvents</a></li>
256 <li><a href="../symbols/pwlib.browser.html">pwlib.browser</a></li>
258 <li><a href="../symbols/pwlib.dom.html">pwlib.dom</a></li>
260 <li><a href="../symbols/pwlib.dom.KeyboardEventListener.html">pwlib.dom.KeyboardEventListener</a></li>
262 <li><a href="../symbols/pwlib.dom.keyCodes.html">pwlib.dom.keyCodes</a></li>
264 <li><a href="../symbols/pwlib.dom.keyCodes_fixes.html">pwlib.dom.keyCodes_fixes</a></li>
266 <li><a href="../symbols/pwlib.dom.keyCodes_Safari2.html">pwlib.dom.keyCodes_Safari2</a></li>
268 <li><a href="../symbols/pwlib.dom.keyNames.html">pwlib.dom.keyNames</a></li>
270 <li><a href="../symbols/pwlib.extensions.html">pwlib.extensions</a></li>
272 <li><a href="../symbols/pwlib.extensions.colormixer.html">pwlib.extensions.colormixer</a></li>
274 <li><a href="../symbols/pwlib.extensions.moodle.html">pwlib.extensions.moodle</a></li>
276 <li><a href="../symbols/pwlib.extensions.mousekeys.html">pwlib.extensions.mousekeys</a></li>
278 <li><a href="../symbols/pwlib.fileCache.html">pwlib.fileCache</a></li>
280 <li><a href="../symbols/pwlib.gui.html">pwlib.gui</a></li>
282 <li><a href="../symbols/pwlib.guiColorInput.html">pwlib.guiColorInput</a></li>
284 <li><a href="../symbols/pwlib.guiFloatingPanel.html">pwlib.guiFloatingPanel</a></li>
286 <li><a href="../symbols/pwlib.guiResizer.html">pwlib.guiResizer</a></li>
288 <li><a href="../symbols/pwlib.guiTabPanel.html">pwlib.guiTabPanel</a></li>
290 <li><a href="../symbols/pwlib.tools.html">pwlib.tools</a></li>
292 <li><a href="../symbols/pwlib.tools.bcurve.html">pwlib.tools.bcurve</a></li>
294 <li><a href="../symbols/pwlib.tools.cpicker.html">pwlib.tools.cpicker</a></li>
296 <li><a href="../symbols/pwlib.tools.ellipse.html">pwlib.tools.ellipse</a></li>
298 <li><a href="../symbols/pwlib.tools.eraser.html">pwlib.tools.eraser</a></li>
300 <li><a href="../symbols/pwlib.tools.hand.html">pwlib.tools.hand</a></li>
302 <li><a href="../symbols/pwlib.tools.insertimg.html">pwlib.tools.insertimg</a></li>
304 <li><a href="../symbols/pwlib.tools.line.html">pwlib.tools.line</a></li>
306 <li><a href="../symbols/pwlib.tools.pencil.html">pwlib.tools.pencil</a></li>
308 <li><a href="../symbols/pwlib.tools.polygon.html">pwlib.tools.polygon</a></li>
310 <li><a href="../symbols/pwlib.tools.rectangle.html">pwlib.tools.rectangle</a></li>
312 <li><a href="../symbols/pwlib.tools.selection.html">pwlib.tools.selection</a></li>
314 <li><a href="../symbols/pwlib.tools.text.html">pwlib.tools.text</a></li>
316 </ul>
317 <hr />
318 <!-- end publish.classesIndex -->
319 </div>
321 <div id="content">
322 <!-- ============================== class title ============================ -->
323 <h1 class="classTitle">
325 Class pwlib.appEvent.appInit
326 </h1>
328 <!-- ============================== class summary ========================== -->
329 <p class="description">
330 <br />Extends
331 <a href="../symbols/pwlib.appEvent.html">pwlib.appEvent</a>.<br />
334 Application initialization event. This event is not cancelable.
337 <br /><i>Defined in: </i> <a href="../symbols/src/src_includes_lib.js.html">lib.js</a>.
339 </p>
341 <!-- ============================== constructor summary ==================== -->
343 <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class pwlib.appEvent.appInit.">
344 <caption>Class Summary</caption>
345 <thead>
346 <tr>
347 <th scope="col">Constructor Attributes</th>
348 <th scope="col">Constructor Name and Description</th>
349 </tr>
350 </thead>
351 <tbody>
352 <tr>
353 <td class="attributes">&nbsp;</td>
354 <td class="nameDescription" >
355 <div class="fixedFont">
356 <b><a href="../symbols/pwlib.appEvent.appInit.html#constructor">pwlib.appEvent.appInit</a></b>(state, errorMessage)
357 </div>
358 <div class="description"></div>
359 </td>
360 </tr>
361 </tbody>
362 </table>
365 <!-- ============================== properties summary ===================== -->
369 <table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class pwlib.appEvent.appInit.">
370 <caption>Field Summary</caption>
371 <thead>
372 <tr>
373 <th scope="col">Field Attributes</th>
374 <th scope="col">Field Name and Description</th>
375 </tr>
376 </thead>
377 <tbody>
379 <tr>
380 <td class="attributes">&nbsp;</td>
381 <td class="nameDescription">
382 <div class="fixedFont">
383 <b><a href="../symbols/pwlib.appEvent.appInit.html#errorMessage">errorMessage</a></b>
384 </div>
385 <div class="description">Initialization error message, if any.</div>
386 </td>
387 </tr>
389 <tr>
390 <td class="attributes">&lt;constant&gt; &nbsp;</td>
391 <td class="nameDescription">
392 <div class="fixedFont">
393 <b><a href="../symbols/pwlib.appEvent.appInit.html#INIT_DONE">INIT_DONE</a></b>
394 </div>
395 <div class="description">Application initialization completed successfully.</div>
396 </td>
397 </tr>
399 <tr>
400 <td class="attributes">&lt;constant&gt; &nbsp;</td>
401 <td class="nameDescription">
402 <div class="fixedFont">
403 <b><a href="../symbols/pwlib.appEvent.appInit.html#INIT_ERROR">INIT_ERROR</a></b>
404 </div>
405 <div class="description">Application initialization failed.</div>
406 </td>
407 </tr>
409 <tr>
410 <td class="attributes">&lt;constant&gt; &nbsp;</td>
411 <td class="nameDescription">
412 <div class="fixedFont">
413 <b><a href="../symbols/pwlib.appEvent.appInit.html#INIT_NOT_STARTED">INIT_NOT_STARTED</a></b>
414 </div>
415 <div class="description">Application initialization not started.</div>
416 </td>
417 </tr>
419 <tr>
420 <td class="attributes">&lt;constant&gt; &nbsp;</td>
421 <td class="nameDescription">
422 <div class="fixedFont">
423 <b><a href="../symbols/pwlib.appEvent.appInit.html#INIT_STARTED">INIT_STARTED</a></b>
424 </div>
425 <div class="description">Application initialization started.</div>
426 </td>
427 </tr>
429 <tr>
430 <td class="attributes">&nbsp;</td>
431 <td class="nameDescription">
432 <div class="fixedFont">
433 <b><a href="../symbols/pwlib.appEvent.appInit.html#state">state</a></b>
434 </div>
435 <div class="description">Initialization state.</div>
436 </td>
437 </tr>
439 </tbody>
440 </table>
444 <dl class="inheritsList">
445 <dt>Fields borrowed from class <a href="../symbols/pwlib.appEvent.html">pwlib.appEvent</a>: </dt><dd><a href="../symbols/pwlib.appEvent.html#cancelable">cancelable</a>, <a href="../symbols/pwlib.appEvent.html#defaultPrevented">defaultPrevented</a>, <a href="../symbols/pwlib.appEvent.html#target">target</a>, <a href="../symbols/pwlib.appEvent.html#type">type</a></dd>
446 </dl>
450 <!-- ============================== methods summary ======================== -->
456 <dl class="inheritsList">
457 <dt>Methods borrowed from class <a href="../symbols/pwlib.appEvent.html">pwlib.appEvent</a>: </dt><dd><a href="../symbols/pwlib.appEvent.html#preventDefault">preventDefault</a>, <a href="../symbols/pwlib.appEvent.html#stopPropagation">stopPropagation</a></dd>
458 </dl>
461 <!-- ============================== events summary ======================== -->
464 <!-- ============================== constructor details ==================== -->
466 <div class="details"><a name="constructor"> </a>
467 <div class="sectionTitle">
468 Class Detail
469 </div>
471 <div class="fixedFont">
472 <b>pwlib.appEvent.appInit</b>(state, errorMessage)
473 </div>
475 <div class="description">
478 </div>
484 <dl class="detailList">
485 <dt class="heading">Parameters:</dt>
487 <dt>
488 <span class="light fixedFont">{Number}</span> <b>state</b>
490 </dt>
491 <dd>The initialization state.</dd>
493 <dt>
494 <span class="light fixedFont">{String}</span> <b>errorMessage</b>
495 <i>Optional</i>
496 </dt>
497 <dd>The error message, if any.</dd>
499 </dl>
504 <dl class="detailList">
505 <dt class="heading">Throws:</dt>
507 <dt>
508 <span class="light fixedFont">{TypeError}</span> <b></b>
509 </dt>
510 <dd>If the <var>state</var> is not a number.</dd>
512 </dl>
518 </div>
521 <!-- ============================== field details ========================== -->
523 <div class="sectionTitle">
524 Field Detail
525 </div>
527 <a name="errorMessage"> </a>
528 <div class="fixedFont">
530 <span class="light">{String|null}</span>
531 <b>errorMessage</b>
533 </div>
534 <div class="description">
535 Initialization error message, if any.
538 </div>
547 <hr />
549 <a name="INIT_DONE"> </a>
550 <div class="fixedFont">&lt;constant&gt;
553 <b>INIT_DONE</b>
555 </div>
556 <div class="description">
557 Application initialization completed successfully.
560 </div>
569 <hr />
571 <a name="INIT_ERROR"> </a>
572 <div class="fixedFont">&lt;constant&gt;
575 <b>INIT_ERROR</b>
577 </div>
578 <div class="description">
579 Application initialization failed.
582 </div>
591 <hr />
593 <a name="INIT_NOT_STARTED"> </a>
594 <div class="fixedFont">&lt;constant&gt;
597 <b>INIT_NOT_STARTED</b>
599 </div>
600 <div class="description">
601 Application initialization not started.
604 </div>
613 <hr />
615 <a name="INIT_STARTED"> </a>
616 <div class="fixedFont">&lt;constant&gt;
619 <b>INIT_STARTED</b>
621 </div>
622 <div class="description">
623 Application initialization started.
626 </div>
635 <hr />
637 <a name="state"> </a>
638 <div class="fixedFont">
640 <span class="light">{Number}</span>
641 <b>state</b>
643 </div>
644 <div class="description">
645 Initialization state.
648 </div>
661 <!-- ============================== method details ========================= -->
664 <!-- ============================== event details ========================= -->
667 <hr />
668 </div>
671 <!-- ============================== footer ================================= -->
672 <div class="fineprint" style="clear:both">
674 Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.3.0 on Mon Jul 27 2009 14:56:55 GMT+0300 (EEST)
675 </div>
676 </body>
677 </html>