[Rcpp-commits] r892 - / RcppDocumentation RcppDocumentation/.settings RcppDocumentation/src RcppDocumentation/src/org RcppDocumentation/src/org/renthusiasts RcppDocumentation/src/org/renthusiasts/rcpp RcppDocumentation/src/org/renthusiasts/rcpp/client RcppDocumentation/war RcppDocumentation/war/WEB-INF RcppDocumentation/war/WEB-INF/lib

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Mar 14 13:33:43 CET 2010


Author: romain
Date: 2010-03-14 13:33:40 +0100 (Sun, 14 Mar 2010)
New Revision: 892

Added:
   RcppDocumentation/
   RcppDocumentation/.classpath
   RcppDocumentation/.project
   RcppDocumentation/.settings/
   RcppDocumentation/.settings/com.google.gwt.eclipse.core.prefs
   RcppDocumentation/build.properties
   RcppDocumentation/build.xml
   RcppDocumentation/src/
   RcppDocumentation/src/org/
   RcppDocumentation/src/org/renthusiasts/
   RcppDocumentation/src/org/renthusiasts/rcpp/
   RcppDocumentation/src/org/renthusiasts/rcpp/RcppDocumentation.gwt.xml
   RcppDocumentation/src/org/renthusiasts/rcpp/client/
   RcppDocumentation/src/org/renthusiasts/rcpp/client/Rcpp.java
   RcppDocumentation/src/org/renthusiasts/rcpp/client/Rcpp.ui.xml
   RcppDocumentation/src/org/renthusiasts/rcpp/client/RcppDocumentation.java
   RcppDocumentation/war/
   RcppDocumentation/war/RcppDocumentation.css
   RcppDocumentation/war/WEB-INF/
   RcppDocumentation/war/WEB-INF/lib/
   RcppDocumentation/war/WEB-INF/lib/gwt-servlet.jar
   RcppDocumentation/war/WEB-INF/web.xml
   RcppDocumentation/war/index.html
Log:
added shell for gwt based documentation

Added: RcppDocumentation/.classpath
===================================================================
--- RcppDocumentation/.classpath	                        (rev 0)
+++ RcppDocumentation/.classpath	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="output" path="war/WEB-INF/classes"/>
+</classpath>

Added: RcppDocumentation/.project
===================================================================
--- RcppDocumentation/.project	                        (rev 0)
+++ RcppDocumentation/.project	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>RcppDocumentation</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>com.google.gwt.eclipse.core.gwtNature</nature>
+		<nature>com.google.gdt.eclipse.core.webAppNature</nature>
+	</natures>
+</projectDescription>

Added: RcppDocumentation/.settings/com.google.gwt.eclipse.core.prefs
===================================================================
--- RcppDocumentation/.settings/com.google.gwt.eclipse.core.prefs	                        (rev 0)
+++ RcppDocumentation/.settings/com.google.gwt.eclipse.core.prefs	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,4 @@
+#Sat Mar 13 15:08:37 CET 2010
+eclipse.preferences.version=1
+filesCopiedToWebInfLib=gwt-servlet.jar
+gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBW11dPjwvZXh0cmEtYXJncz48dm0tYXJncz48IVtDREFUQVstWG14NTEybV1dPjwvdm0tYXJncz48L2d3dC1jb21waWxlLXNldHRpbmdzPg\=\=

Added: RcppDocumentation/build.properties
===================================================================
--- RcppDocumentation/build.properties	                        (rev 0)
+++ RcppDocumentation/build.properties	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,5 @@
+gwt.dir=/opt/gwt
+gwt.sdk=${gwt.dir}
+
+dist.dir=dist
+

Added: RcppDocumentation/build.xml
===================================================================
--- RcppDocumentation/build.xml	                        (rev 0)
+++ RcppDocumentation/build.xml	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<project name="RcppDocumentation" default="build" basedir=".">
+  <property file="build.properties" />
+
+  <path id="project.class.path">
+    <pathelement location="war/WEB-INF/classes"/>
+    <pathelement location="${gwt.sdk}/gwt-user.jar"/>
+    <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/>
+    <fileset dir="war/WEB-INF/lib" includes="**/*.jar"/>
+  </path>
+
+  <target name="javac" description="Compile java source">
+    <mkdir dir="war/WEB-INF/classes"/>
+    <javac srcdir="src" includes="**" encoding="utf-8"
+        destdir="war/WEB-INF/classes"
+        source="1.5" target="1.5" nowarn="true"
+        debug="true" debuglevel="lines,vars,source">
+      <classpath refid="project.class.path"/>
+    </javac>
+    <copy todir="war/WEB-INF/classes">
+      <fileset dir="src" excludes="**/*.java"/>
+    </copy>
+  </target>
+
+  <target name="gwtc" depends="javac" description="GWT compile to JavaScript">
+    <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
+      <classpath>
+        <pathelement location="src"/>
+        <path refid="project.class.path"/>
+      </classpath>
+      <jvmarg value="-Xmx256M"/>
+       <arg value="org.renthusiasts.rcpp.RcppDocumentation"/>
+    </java>
+  </target>
+
+  <target name="devmode" depends="javac" description="Run development mode">
+    <java failonerror="true" fork="true" classname="com.google.gwt.dev.DevMode">
+      <classpath>
+        <pathelement location="src"/>
+        <path refid="project.class.path"/>
+      </classpath>
+      <jvmarg value="-Xmx1024M"/>
+      <arg value="-startupUrl"/>
+      <arg value="login.html"/>
+      <arg value="org.renthusiasts.rcpp.client.RcppDocumentation"/>
+    </java>
+  </target>
+
+  <target name="hosted" depends="devmode" description="Run development mode (NOTE: the 'hosted' target is deprecated)" />
+
+  <target name="build" depends="gwtc" description="Build this project" />
+
+  <target name="clean" description="Cleans this project">
+  	<delete dir="${dist.dir}" failonerror="false" />
+    <delete dir="war/WEB-INF/classes" failonerror="false" />
+    <delete dir="war/rcppdocumentation" failonerror="false" />
+  </target>
+  
+  <target name="deploy" depends="build">
+  	<delete dir="${dist.dir}" />
+  	<mkdir dir="${dist.dir}"/> 
+  
+  	<copy todir ="${dist.dir}">
+  		<fileset dir="war" />
+  	</copy>
+  	
+  	<delete dir="${dist.dir}/WEB-INF" />
+  	<delete file="${dist.dir}/hosted.html" />
+  </target>
+  
+
+</project>


Property changes on: RcppDocumentation/build.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: RcppDocumentation/src/org/renthusiasts/rcpp/RcppDocumentation.gwt.xml
===================================================================
--- RcppDocumentation/src/org/renthusiasts/rcpp/RcppDocumentation.gwt.xml	                        (rev 0)
+++ RcppDocumentation/src/org/renthusiasts/rcpp/RcppDocumentation.gwt.xml	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module rename-to='rcppdocumentation'>
+  <!-- Inherit the core Web Toolkit stuff.                        -->
+  <inherits name='com.google.gwt.user.User'/>
+
+  <!-- Inherit the default GWT style sheet.  You can change       -->
+  <!-- the theme of your GWT application by uncommenting          -->
+  <!-- any one of the following lines.                            -->
+  <inherits name='com.google.gwt.user.theme.standard.Standard'/>
+  <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
+  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->
+
+  <!-- Other module inherits                                      -->
+
+  <!-- Specify the app entry point class.                         -->
+  <entry-point class='org.renthusiasts.rcpp.client.RcppDocumentation'/>
+
+  <!-- Specify the paths for translatable code                    -->
+  <source path='client'/>
+  <source path='shared'/>
+
+</module>

Added: RcppDocumentation/src/org/renthusiasts/rcpp/client/Rcpp.java
===================================================================
--- RcppDocumentation/src/org/renthusiasts/rcpp/client/Rcpp.java	                        (rev 0)
+++ RcppDocumentation/src/org/renthusiasts/rcpp/client/Rcpp.java	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,67 @@
+package org.renthusiasts.rcpp.client;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.dom.client.ClickEvent;
+import com.google.gwt.event.dom.client.ClickHandler;
+import com.google.gwt.uibinder.client.UiBinder;
+import com.google.gwt.uibinder.client.UiField;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.Anchor;
+import com.google.gwt.user.client.ui.Button;
+import com.google.gwt.user.client.ui.CheckBox;
+import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.Hyperlink;
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.SimplePanel;
+import com.google.gwt.user.client.ui.StackLayoutPanel;
+import com.google.gwt.user.client.ui.Tree;
+import com.google.gwt.user.client.ui.TreeItem;
+import com.google.gwt.user.client.ui.Widget;
+
+public class Rcpp extends Composite {
+
+	private static RcppUiBinder uiBinder = GWT.create(RcppUiBinder.class);
+
+	interface RcppUiBinder extends UiBinder<Widget, Rcpp> {
+	}
+
+	@UiField StackLayoutPanel stacks ;
+	@UiField Tree vectors_tree ;
+	@UiField SimplePanel content ;
+
+	public Rcpp() {
+		initWidget(uiBinder.createAndBindUi(this));
+		stacks.showWidget(0) ;
+
+		loadVectorTree( ) ;
+
+	}
+
+	void loadVectorTree(){
+		String[] vectors = { "integer", "numeric", "logical", "raw", "character", "generic", "expression" } ; 
+		for( String vec: vectors){
+			vectors_tree.addItem( new VectorLabel( vec ) ) ;
+		}
+	}
+	
+	class VectorLabel extends HTML implements ClickHandler {
+		
+		public String type ;
+		
+		public VectorLabel(String type ){
+			super( "<b>" + type + " vectors </b>" ) ;
+			this.type = type ;
+			setStyleName( "section" ) ;
+			addClickHandler( this ) ;
+		}
+
+		@Override
+		public void onClick(ClickEvent event) {
+			content.clear();
+			content.add( new HTML( "documentation of <b>" + type + "</b> vectors" )) ;
+		}
+		
+	}
+	
+}

Added: RcppDocumentation/src/org/renthusiasts/rcpp/client/Rcpp.ui.xml
===================================================================
--- RcppDocumentation/src/org/renthusiasts/rcpp/client/Rcpp.ui.xml	                        (rev 0)
+++ RcppDocumentation/src/org/renthusiasts/rcpp/client/Rcpp.ui.xml	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,74 @@
+<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
+<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
+	xmlns:g="urn:import:com.google.gwt.user.client.ui">
+	<ui:style>
+		.top {
+			width: 100%;
+		}
+		
+		.sidebar {
+			border: 1px dotted red;
+			width: 100px;
+		}
+		
+		.full {
+			border: 1px solid black;
+			width: 100%;
+			height: 100%;
+		}
+		.center{
+			border : 1px solid black ;
+			}
+			
+		.section{
+			border : none ;
+			}	
+			
+	</ui:style>
+
+	<g:DockLayoutPanel unit='EM'>
+		<g:north size='3'>
+			<g:HorizontalPanel styleName="{style.top}">
+				<g:Label>Rcpp Online Documentation</g:Label>
+			</g:HorizontalPanel>
+
+		</g:north>
+		<g:west size='20'>
+
+			<g:StackLayoutPanel unit="EM" ui:field="stacks">
+				
+				<g:stack>
+					<g:header size='3'>Vectors</g:header>
+					<g:Tree ui:field="vectors_tree"></g:Tree>
+				</g:stack>
+				
+				<g:stack>
+					<g:header size='3'>Data interchange</g:header>
+					<g:Label>...</g:Label>
+				</g:stack>
+				
+				<g:stack>
+					<g:header size='3'>Other classes</g:header>
+					<g:Label>...</g:Label>
+				</g:stack>
+
+				<g:stack>
+					<g:header size='3'>Package development</g:header>
+					<g:Label>....</g:Label>
+				</g:stack>
+
+				<g:stack>
+					<g:header size='3'>Links</g:header>
+					<g:Label>.....</g:Label>
+				</g:stack>
+				
+			</g:StackLayoutPanel>
+		</g:west>
+		
+		<g:center>
+			<g:SimplePanel ui:field="content"> </g:SimplePanel>
+		</g:center>
+
+	</g:DockLayoutPanel>
+
+</ui:UiBinder> 
\ No newline at end of file

Added: RcppDocumentation/src/org/renthusiasts/rcpp/client/RcppDocumentation.java
===================================================================
--- RcppDocumentation/src/org/renthusiasts/rcpp/client/RcppDocumentation.java	                        (rev 0)
+++ RcppDocumentation/src/org/renthusiasts/rcpp/client/RcppDocumentation.java	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,18 @@
+package org.renthusiasts.rcpp.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.ui.RootLayoutPanel;
+import com.google.gwt.user.client.ui.RootPanel;
+
+/**
+ * Entry point classes define <code>onModuleLoad()</code>.
+ */
+public class RcppDocumentation implements EntryPoint {
+
+	/**
+	 * This is the entry point method.
+	 */
+	public void onModuleLoad() {
+		RootLayoutPanel.get().add( new Rcpp() ) ;
+	}
+}

Added: RcppDocumentation/war/RcppDocumentation.css
===================================================================
--- RcppDocumentation/war/RcppDocumentation.css	                        (rev 0)
+++ RcppDocumentation/war/RcppDocumentation.css	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,34 @@
+/** Add css rules here for your application. */
+
+
+/** Example rules used by the template application (remove for your app) */
+h1 {
+  font-size: 2em;
+  font-weight: bold;
+  color: #777777;
+  margin: 40px 0px 70px;
+  text-align: center;
+}
+
+.sendButton {
+  display: block;
+  font-size: 16pt;
+}
+
+/** Most GWT widgets already have a style name defined */
+.gwt-DialogBox {
+  width: 400px;
+}
+
+.dialogVPanel {
+  margin: 5px;
+}
+
+.serverResponseLabelError {
+  color: red;
+}
+
+/** Set ids using widget.getElement().setId("idOfElement") */
+#closeButton {
+  margin: 15px 6px 6px;
+}

Added: RcppDocumentation/war/WEB-INF/lib/gwt-servlet.jar
===================================================================
(Binary files differ)


Property changes on: RcppDocumentation/war/WEB-INF/lib/gwt-servlet.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: RcppDocumentation/war/WEB-INF/web.xml
===================================================================
--- RcppDocumentation/war/WEB-INF/web.xml	                        (rev 0)
+++ RcppDocumentation/war/WEB-INF/web.xml	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+  
+  <!-- Default page to serve -->
+  <welcome-file-list>
+    <welcome-file>index.html</welcome-file>
+  </welcome-file-list>
+
+</web-app>

Added: RcppDocumentation/war/index.html
===================================================================
--- RcppDocumentation/war/index.html	                        (rev 0)
+++ RcppDocumentation/war/index.html	2010-03-14 12:33:40 UTC (rev 892)
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<!-- The DOCTYPE declaration above will set the    -->
+<!-- browser's rendering engine into               -->
+<!-- "Standards Mode". Replacing this declaration  -->
+<!-- with a "Quirks Mode" doctype may lead to some -->
+<!-- differences in layout.                        -->
+
+<html>
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+
+    <!--                                                               -->
+    <!-- Consider inlining CSS to reduce the number of requested files -->
+    <!--                                                               -->
+    <link type="text/css" rel="stylesheet" href="RcppDocumentation.css">
+
+    <!--                                           -->
+    <!-- Any title is fine                         -->
+    <!--                                           -->
+    <title>Rcpp online documentation</title>
+    
+    <!--                                           -->
+    <!-- This script loads your compiled module.   -->
+    <!-- If you add any GWT meta tags, they must   -->
+    <!-- be added before this line.                -->
+    <!--                                           -->
+    <script type="text/javascript" language="javascript" src="rcppdocumentation/rcppdocumentation.nocache.js"></script>
+  </head>
+
+  <!--                                           -->
+  <!-- The body can have arbitrary html, or      -->
+  <!-- you can leave the body empty if you want  -->
+  <!-- to create a completely dynamic UI.        -->
+  <!--                                           -->
+  <body>
+
+  </body>
+</html>



More information about the Rcpp-commits mailing list