Automated merge with https://gss.googlecode.com/hg/
[pithos] / src / gr / ebs / gss / GSS.gwt.xml
index 596e98d..a6940a8 100644 (file)
@@ -1,13 +1,33 @@
 <module>
-
-       <!-- Inherit the core Web Toolkit stuff.                  -->
        <inherits name='com.google.gwt.user.User' />
+       <inherits name="com.google.gwt.user.theme.standard.Standard"/>
+       <inherits name="com.google.gwt.gears.Gears"/>
        <inherits name='com.allen_sauer.gwt.dnd.gwt-dnd' />
        <inherits name="com.google.gwt.http.HTTP"/>
        <inherits name="com.google.gwt.json.JSON"/>
-       <!-- Specify the app entry point class.                   -->
        <entry-point class='gr.ebs.gss.client.GSS' />
        <stylesheet src='gss.css' />
-       <!-- <set-property name="user.agent" value="gecko" /> --> 
-         
+       <!--<set-property name="user.agent" value="gecko" /> -->
+       <!-- Rebind the file upload dialog if Gears is installed -->
+       <replace-with class="gr.ebs.gss.client.FileUploadGearsDialog">
+               <all>
+                       <when-type-is class="gr.ebs.gss.client.FileUploadDialog"/>
+                       <when-property-is name="gears.installed" value="true"/>
+                       <none>
+                               <when-property-is name="user.agent" value="ie6"/>
+                               <when-property-is name="user.agent" value="ie8"/>
+                       </none>
+               </all>
+       </replace-with>   
+       <!-- Use a special file upload dialog if Gears is installed on IE -->
+       <replace-with class="gr.ebs.gss.client.FileUploadGearsIEDialog">
+               <all>
+                       <when-type-is class="gr.ebs.gss.client.FileUploadDialog"/>
+                       <when-property-is name="gears.installed" value="true"/>
+                       <any>
+                               <when-property-is name="user.agent" value="ie6"/>
+                               <when-property-is name="user.agent" value="ie8"/>
+                       </any>
+               </all>
+       </replace-with>   
 </module>