annotate inkscape/firefox/content/madswatter.js @ 389:45e04408fc19

Implement stub functions for the MadSwatter integration.
author wycc
date Sun, 12 Apr 2009 11:58:53 +0800
parents
children ebf83a50e1e1
rev   line source
389
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
1 asdasd=1;
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
2 function MadSwatter(inkscape)
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
3 {
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
4 this.inkscape = inkscape;
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
5 }
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
6
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
7
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
8 function MadSwatter_callback(mbsvg,self)
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
9 {
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
10
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
11 $(self.inkscape.mbsvg.doc).find("channels").replaceWith(mbsvg.find("channels"));
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
12 $('#display').tabs('select',0);
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
13 //self.inkscape.updateDocument();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
14 }
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
15
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
16 MadSwatter.prototype.edit=function()
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
17 {
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
18 // Generate a new document with the current scene
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
19 // FIXME: Do we need to do animation filter here?
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
20 // FIXME: Do we need to support hiearchical animation?
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
21 $('#display').tabs('select',2);
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
22 var kk = this.inkscape.mbsvg.generateCurrentSVG();
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
23 //MadSwatter_invoke(kk,MadSwatter_callback,this);
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
24 // Simulate the MadSwatter
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
25 kk.find("metadata").append("<channels></channels>");
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
26 setTimeout(function () { MadSwatter_callback(kk,this);}, 3000);
45e04408fc19 Implement stub functions for the MadSwatter integration.
wycc
parents:
diff changeset
27 }