Author: remi
Date: 2009-04-15 13:10:54 +0200 (Wed, 15 Apr 2009)
New Revision: 4513

Removed:
   
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/.classpath
   
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/.project
Modified:
   
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/pom.xml
   
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/resources/gadget.xml
   
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/src/com/kysoh/tuxdroid/MediaPlayerThread.java
   
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/src/com/kysoh/tuxdroid/WMPlayer.java
Log:
* adapted the gadget to perfectly run in the python framework.
* fixed command type to daemon
* bumped to 0.2
* removed unneeded files

Deleted: 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/.classpath
===================================================================
--- 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/.classpath
        2009-04-15 10:05:02 UTC (rev 4512)
+++ 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/.classpath
        2009-04-15 11:10:54 UTC (rev 4513)
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-       <classpathentry kind="src" path="src"/>
-       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-       <classpathentry combineaccessrules="false" kind="src" path="/TuxAPI"/>
-       <classpathentry combineaccessrules="false" kind="src" 
path="/tuxdroid-gadget-java-kit"/>
-       <classpathentry kind="lib" path="C:/Users/nux/Desktop/deps"/>
-       <classpathentry kind="lib" 
path="C:/Users/nux/Desktop/deps/X10GimliLaunch-1.0.jar"/>
-       <classpathentry kind="output" path="bin"/>
-</classpath>

Deleted: 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/.project
===================================================================
--- 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/.project
  2009-04-15 10:05:02 UTC (rev 4512)
+++ 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/.project
  2009-04-15 11:10:54 UTC (rev 4513)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-       <name>wmpplayer</name>
-       <comment></comment>
-       <projects>
-       </projects>
-       <buildSpec>
-               <buildCommand>
-                       <name>org.eclipse.jdt.core.javabuilder</name>
-                       <arguments>
-                       </arguments>
-               </buildCommand>
-       </buildSpec>
-       <natures>
-               <nature>org.eclipse.jdt.core.javanature</nature>
-       </natures>
-</projectDescription>

Modified: 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/pom.xml
===================================================================
--- 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/pom.xml
   2009-04-15 10:05:02 UTC (rev 4512)
+++ 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/pom.xml
   2009-04-15 11:10:54 UTC (rev 4513)
@@ -4,7 +4,7 @@
     <groupId>com.kysoh</groupId>
     <artifactId>tuxdroid-gadget-WMP</artifactId>
     <packaging>jar</packaging>
-    <version>0.1</version>
+    <version>0.2</version>
     <name>Windows media player for Tux Droid</name>
     <url>http://www.tuxisalive.com</url>
     
@@ -13,7 +13,7 @@
        <dependency>
            <groupId>com.kysoh</groupId>
            <artifactId>tuxdroid-gadget-java-kit</artifactId>
-           <version>0.0.1</version>
+           <version>0.0.2</version>
        </dependency>
        <dependency>
            <groupId>com.tuxisalive</groupId>
@@ -81,10 +81,14 @@
                                <copy 
file="${project.build.directory}/${project.artifactId}-${project.version}.jar"
                                    todir="./libraries" />
                                <zip destfile="./${project.artifactId}.tgf">
-                                   <zipfileset dir="." includes="resources/*" 
/>
-                                   <zipfileset dir="." includes="libraries/*" 
/>
-                                   <zipfileset dir="." 
includes="executables/*" />
-                               </zip>
+                            <zipfileset dir="." includes="resources/*" />
+                            <zipfileset dir="." includes="libraries/*" >
+                                <exclude 
name="libraries/tuxdroid-gadget-java-kit*" />
+                                <exclude name="libraries/karmalab-commons*" />
+                                <exclude name="libraries/tuxdroid-java-api*" />
+                            </zipfileset>
+                            <zipfileset dir="." includes="executables/*" />
+                        </zip>
                            </tasks>
                        </configuration>
                        <goals>

Modified: 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/resources/gadget.xml
===================================================================
--- 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/resources/gadget.xml
      2009-04-15 10:05:02 UTC (rev 4512)
+++ 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/resources/gadget.xml
      2009-04-15 11:10:54 UTC (rev 4513)
@@ -8,9 +8,8 @@
                <name>WMP Gadget</name>
                <description>Take control of Windows media player with the Tux 
Droid remote control or flippers.</description>
                <author>Jérôme Conan</author>
-               <version>0.1</version>
+               <version>0.2</version>
                <iconFile>resources/gadget.png</iconFile>
-               <executionMode>command</executionMode>
                <uuid>f63af23e-7ae0-4389-b89b-bc5a8185a84f</uuid>
        </description>
        <parameters>
@@ -32,6 +31,7 @@
        <commands>
         <command
                        name="run"
-                       description="Take control of windows media player" />
+                       description="Take control of windows media player"
+            daemon="true" />
        </commands>
 </gadget>

Modified: 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/src/com/kysoh/tuxdroid/MediaPlayerThread.java
===================================================================
--- 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/src/com/kysoh/tuxdroid/MediaPlayerThread.java
     2009-04-15 10:05:02 UTC (rev 4512)
+++ 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/src/com/kysoh/tuxdroid/MediaPlayerThread.java
     2009-04-15 11:10:54 UTC (rev 4513)
@@ -104,7 +104,6 @@
                                
                com.tuxisalive.api.SThread thread = new 
com.tuxisalive.api.SThread(this, "startWMP");
                thread.start();
-               
     }
        
        

Modified: 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/src/com/kysoh/tuxdroid/WMPlayer.java
===================================================================
--- 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/src/com/kysoh/tuxdroid/WMPlayer.java
      2009-04-15 10:05:02 UTC (rev 4512)
+++ 
softwares_suite_v3/community/gadget/tuxdroid-gadget-WMP/trunk/tuxdroid-gadget-WMP/src/com/kysoh/tuxdroid/WMPlayer.java
      2009-04-15 11:10:54 UTC (rev 4513)
@@ -406,4 +406,17 @@
                        System.exit(0);
                }
        }
+       
+       public void onGadgetStop()
+       {
+               if(this.configuration().getStopWMPToo())
+               {
+                       WindowsAPI.postMessage(handle, WM_COMMAND, 0xE141, 
lParam);
+               }
+               if(tux != null)
+               {
+                       tux.destroy();
+               }
+               System.exit(0);
+       }
 }


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to