[xiph-commits] r15073 - in trunk/oggPusher/firefox-extension: . chrome/content

nithin at svn.xiph.org nithin at svn.xiph.org
Thu Jun 26 17:30:02 PDT 2008


Author: nithin
Date: 2008-06-26 17:30:01 -0700 (Thu, 26 Jun 2008)
New Revision: 15073

Added:
   trunk/oggPusher/firefox-extension/chrome/content/op_Window.js
   trunk/oggPusher/firefox-extension/chrome/content/op_Window.xul
   trunk/oggPusher/firefox-extension/chrome/content/op_browser.js
   trunk/oggPusher/firefox-extension/chrome/content/op_browser.xul
Removed:
   trunk/oggPusher/firefox-extension/chrome/content/sample.xul
Modified:
   trunk/oggPusher/firefox-extension/chrome.manifest
Log:
file dialogue

Added: trunk/oggPusher/firefox-extension/chrome/content/op_Window.js
===================================================================
--- trunk/oggPusher/firefox-extension/chrome/content/op_Window.js	                        (rev 0)
+++ trunk/oggPusher/firefox-extension/chrome/content/op_Window.js	2008-06-27 00:30:01 UTC (rev 15073)
@@ -0,0 +1,4 @@
+function onClose()
+{
+	window.close();
+}

Added: trunk/oggPusher/firefox-extension/chrome/content/op_Window.xul
===================================================================
--- trunk/oggPusher/firefox-extension/chrome/content/op_Window.xul	                        (rev 0)
+++ trunk/oggPusher/firefox-extension/chrome/content/op_Window.xul	2008-06-27 00:30:01 UTC (rev 15073)
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+
+<window
+    id="op-window"
+    title="oggPusher"
+    orient="horizontal"
+    onclose="onClose()"
+    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+<!-- Other elements go here --> 
+
+	<script type="application/x-javascript" src="chrome://oggPusher/content/op_Window.js"></script>
+
+
+     <vbox>	
+     	<label value="Locate Files on your computer:" control="browse-button"/>
+	<hbox>
+		<textbox id="file-path" disabled="true" style="width:200px"/>
+      		<button id="browse-button" label="Browse..."/>
+	</hbox>
+     </vbox>
+
+</window>
+

Added: trunk/oggPusher/firefox-extension/chrome/content/op_browser.js
===================================================================
--- trunk/oggPusher/firefox-extension/chrome/content/op_browser.js	                        (rev 0)
+++ trunk/oggPusher/firefox-extension/chrome/content/op_browser.js	2008-06-27 00:30:01 UTC (rev 15073)
@@ -0,0 +1,9 @@
+function openDialog()
+{
+   //alert("hello"); 
+   var object = window.open("chrome://oggPusher/content/op_Window.xul",
+                      "oggPusher", "chrome,centerscreen,resizable=yes,toolbar=no,menubar=no");
+	if(object==null)
+	{ alert("inside the if");	}
+}
+

Added: trunk/oggPusher/firefox-extension/chrome/content/op_browser.xul
===================================================================
--- trunk/oggPusher/firefox-extension/chrome/content/op_browser.xul	                        (rev 0)
+++ trunk/oggPusher/firefox-extension/chrome/content/op_browser.xul	2008-06-27 00:30:01 UTC (rev 15073)
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<overlay id="oggpusher" 
+         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+  <script type="application/x-javascript"
+        src="chrome://oggPusher/content/op_browser.js" />
+
+
+
+
+  <menupopup id="menu_ToolsPopup">
+  	<menuitem id="op_menu" image="chrome://oggPusher/content/images/xiph.ico"
+	      class="menuitem-iconic"  
+              insertafter="javascriptConsole,devToolsSeparator"
+              label="oggPusher"
+	      oncommand="openDialog();"/>
+  </menupopup>
+	
+  <toolbarpalette id="BrowserToolbarPalette">             
+  	<toolbarbutton id="op_toolbarBtn" image="chrome://oggPusher/content/images/xiph.ico" 
+		class="toolbarbutton-1"  
+		label="oggPusher" 
+		tooltiptext="Open OggPusher"
+		oncommand="openDialog();"/>            
+  </toolbarpalette>
+
+
+
+  <statusbar id="status-bar">
+  	<statusbarpanel id="op_status" src="chrome://oggPusher/content/images/xiph.ico" 
+              tooltiptext="open oggPusher" 
+              class="statusbarpanel-iconic"
+	      oncommand="openDialog();"/>
+  </statusbar>
+
+
+</overlay>

Deleted: trunk/oggPusher/firefox-extension/chrome/content/sample.xul
===================================================================
--- trunk/oggPusher/firefox-extension/chrome/content/sample.xul	2008-06-26 21:04:58 UTC (rev 15072)
+++ trunk/oggPusher/firefox-extension/chrome/content/sample.xul	2008-06-27 00:30:01 UTC (rev 15073)
@@ -1,13 +0,0 @@
-<?xml version="1.0"?>
-<overlay id="sample" 
-         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-
-  <statusbar id="status-bar">
-    <statusbarpanel class="statusbarpanel-iconic" id="oggPusher" tooltiptext="open dialog box"
-                          
-                    src="chrome://oggPusher/content/images/xiph.ico" />
-  </statusbar>
-
-
-</overlay>

Modified: trunk/oggPusher/firefox-extension/chrome.manifest
===================================================================
--- trunk/oggPusher/firefox-extension/chrome.manifest	2008-06-26 21:04:58 UTC (rev 15072)
+++ trunk/oggPusher/firefox-extension/chrome.manifest	2008-06-27 00:30:01 UTC (rev 15073)
@@ -1,2 +1,2 @@
 content     oggPusher chrome/content/
-overlay chrome://browser/content/browser.xul chrome://oggPusher/content/sample.xul
+overlay chrome://browser/content/browser.xul chrome://oggPusher/content/op_browser.xul



More information about the commits mailing list