annotate inkscape/firefox/content/main.js @ 842:76fe4afce640

The inkscape:bbox is defined as the global coordinate system. However, the center.x and center.y must be the coordiante system of the parent group of the SVG entity. Therefore, we need to do coordinate transformation from the global coordination system to the local coordination system.
author wycc
date Sat, 18 Sep 2010 21:23:51 +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