[xiph-commits] r15240 - trunk/oggPusher/firefox-extension/chrome/content

nithin at svn.xiph.org nithin at svn.xiph.org
Tue Sep 2 09:16:32 PDT 2008


Author: nithin
Date: 2008-09-02 09:16:31 -0700 (Tue, 02 Sep 2008)
New Revision: 15240

Modified:
   trunk/oggPusher/firefox-extension/chrome/content/op_Window.js
   trunk/oggPusher/firefox-extension/chrome/content/op_Window.xul
Log:
UI for Meta data information

Modified: trunk/oggPusher/firefox-extension/chrome/content/op_Window.js
===================================================================
--- trunk/oggPusher/firefox-extension/chrome/content/op_Window.js	2008-09-01 19:23:59 UTC (rev 15239)
+++ trunk/oggPusher/firefox-extension/chrome/content/op_Window.js	2008-09-02 16:16:31 UTC (rev 15240)
@@ -126,7 +126,7 @@
 		}
 	},
     processHandler:function(process){
-                if(process.exitValue!= -1){
+                if(process.exitValue != -1){
                         alert(process.exitValue+"Inside the processHandler");
                         this.timer = setTimeout( function(el) { return function(){el.processHandler(process);}}(this), 10000 );
                 }else{
@@ -161,10 +161,8 @@
 			args_list[2] = document.getElementById("file-path").value.replace(/\s/g,'\\ ');
 			//alert(args_list[2]);
 	         //alert("Before process.run");
-        	 alert(process.run(false,args_list, args_list.length));
-			//alert("Pid "+process.pid+" exit value "+process.exitValue+" Location "+process.location+" processName "+process.processName);
-			//alert("After the process.run");
-			//this.timer = setTimeout( function(){this.processHandler(process);}, 10000 );
+        	 var  process_id = process.run(false,args_list, args_list.length);
+			alert(process_id);
 			this.timer = setTimeout( function(el) { return function(){el.processHandler(process);}}(this), 10000 );
     	}
 		catch(err){

Modified: trunk/oggPusher/firefox-extension/chrome/content/op_Window.xul
===================================================================
--- trunk/oggPusher/firefox-extension/chrome/content/op_Window.xul	2008-09-01 19:23:59 UTC (rev 15239)
+++ trunk/oggPusher/firefox-extension/chrome/content/op_Window.xul	2008-09-02 16:16:31 UTC (rev 15240)
@@ -12,10 +12,44 @@
    <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 id="op-input">
+	  <hbox id="op-input" align="center">
 	  	 <textbox id="file-path" control="browse-button" disabled="true" style="width:400px"/>
       	 <button id="browse-button" label="Browse..." oncommand="opwindowCommon.openFileWindowDialog();"/>
 	  </hbox>
+      <tabbox>
+         <tabs>
+            <tab label="META-DATA" selected="true"/>
+            <tab label="Encoding"/>
+         </tabs>
+         <tabpanels>
+            <tabpanel id="metadatapanel" orient="vertical">
+               <hbox>
+                  <label value="Artist"  style="width: 90px" /> <textbox id="artist-field"/>
+               </hbox>
+               <hbox>
+                  <label value="Title" style="width: 90px"/> <textbox id="title-field"/>
+               </hbox>
+               <hbox>
+                 <label value="Date" style="width: 90px"/> <textbox id="date-field"/>
+               </hbox>
+               <hbox>
+                 <label value="Location "  style="width: 90px"/> <textbox id="location-field"/>
+               </hbox>
+               <hbox>
+                 <label value="Organisation"  style="width: 90px"/> <textbox id="organisation-field"/>
+               </hbox>
+               <hbox>
+                 <label value="Copyright"  style="width: 90px"/> <textbox id="copyright-field"/>
+               </hbox>
+               <hbox>
+                 <label value="License"  style="width: 90px"/> <textbox id="license-field"/>
+               </hbox>
+            </tabpanel>
+         </tabpanels>
+
+      </tabbox>
+      
+      
 	  <!--<hbox>
 		 <textbox id="target-path" control="destination-button" disabled="true" style="width:400px"/>
 		 <button id="destination-button" label="Choose Destination" oncommand="opwindowCommon.chooseDestination();"/>



More information about the commits mailing list