annotate inkscape/firefox/content/main.js @ 880:ac3e8492ad74 abs_n_rel_center

Formalize path data for MadButterfly. Inkscape and other editors would omit 'l' or 'L' after 'm' or 'M'. MadButterfly can not handle it, now. So, we work around it at SVG parser.
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 25 Sep 2010 18:46:37 +0800
parents 45e04408fc19
children
rev   line source
389
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
1 var last_select;
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
2 var wizard;
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
3 jQuery(document).ready(function() {
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
4 if (loadOldProject()) {
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
5 filedialog = jQuery('#filedialog');
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
6 filedialog.dialog({width:500,
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
7 modal: true,
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
8 autoOpen:false,
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
9 title:'Please select a file'});
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
10 filedialog.show();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
11 filedialog.html('Please select the project file<br>');
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
12 filedialog.append('<input type=file value="Select the project file" id="mbsvg" accept="image/png">');
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
13 filedialog.append('<input type=button value="Load" onclick="project_loadFile()">');
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
14 filedialog.dialog("open");
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
15 last_select = null;
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
16 wizard = new Wizard();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
17 wizard.cb = onLoadProject;
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
18 $('#filedialog').dialog({ width:500});
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
19 $('#frame').draggable();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
20 $('#btns').draggable({cursor:'crosshair'});
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
21 $('#list').tabs();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
22 $('#display').tabs();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
23 }
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
24 });
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
25