annotate inkscape/firefox/content/main.js @ 1265:ca301f6abef7

Support undo for insert key frame/rm keyframe. We will refresh all layers and scenes since it is not feasible to collect these changes and update the layers and scenes. We may scan two level only in the future to improve the performance.
author wycc
date Wed, 12 Jan 2011 15:01:14 +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