annotate inkscape/firefox/content/main.js @ 856:88f4916a0691 abs_n_rel_center

Compute y position according center of lightbar and text
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 20 Sep 2010 22:43:43 +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