diff inkscape/firefox/content/main.js @ 389:45e04408fc19

Implement stub functions for the MadSwatter integration.
author wycc
date Sun, 12 Apr 2009 11:58:53 +0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/inkscape/firefox/content/main.js	Sun Apr 12 11:58:53 2009 +0800
@@ -0,0 +1,25 @@
+var last_select;
+var wizard;
+jQuery(document).ready(function() {
+		if (loadOldProject()) {
+			filedialog = jQuery('#filedialog');
+			filedialog.dialog({width:500,
+				   modal: true,
+			           autoOpen:false,
+				   title:'Please select a file'});
+			filedialog.show();
+			filedialog.html('Please select the project file<br>');
+			filedialog.append('<input type=file value="Select the project file" id="mbsvg" accept="image/png">');
+			filedialog.append('<input type=button value="Load" onclick="project_loadFile()">');
+			filedialog.dialog("open");
+			last_select = null;
+			wizard = new Wizard();
+			wizard.cb = onLoadProject;
+			$('#filedialog').dialog({ width:500});
+			$('#frame').draggable();
+			$('#btns').draggable({cursor:'crosshair'});
+			$('#list').tabs();
+			$('#display').tabs();
+		}
+		});
+