seed r93 - in trunk: . doc doc/tutorial-standalone examples examples/ide examples/lightsoff examples/shader tests



Author: racarr
Date: Tue Nov  4 02:03:28 2008
New Revision: 93
URL: http://svn.gnome.org/viewvc/seed?rev=93&view=rev

Log:
Merge in tims runtime documentation. Pango example. Fix permissions. 
Build system work.


Added:
   trunk/doc/Makefile.am
   trunk/doc/runtime.html
   trunk/doc/tutorial-standalone/Makefile.am
   trunk/examples/Makefile.am
   trunk/examples/ide/Makefile.am
   trunk/examples/lightsoff/Makefile.am
   trunk/examples/pango.js   (contents, props changed)
   trunk/examples/shader/Makefile.am
   trunk/tests/Makefile.am
Modified:
   trunk/Makefile.am
   trunk/examples/json2.js   (props changed)
   trunk/examples/repl.js   (props changed)

Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am	(original)
+++ trunk/Makefile.am	Tue Nov  4 02:03:28 2008
@@ -4,7 +4,11 @@
 SUBDIRS = po \
 	libseed\
 	src\
-	extensions
+	extensions\
+	doc\
+	examples\
+	test
+	
 
 seeddocdir = ${prefix}/doc/seed
 seeddoc_DATA = \

Added: trunk/doc/Makefile.am
==============================================================================
--- (empty file)
+++ trunk/doc/Makefile.am	Tue Nov  4 02:03:28 2008
@@ -0,0 +1,7 @@
+SUBDIRS = tutorial-standalone
+
+EXTRA_DIST = \
+	runtime.html
+
+## File created by the gnome-build tools
+

Added: trunk/doc/runtime.html
==============================================================================
--- (empty file)
+++ trunk/doc/runtime.html	Tue Nov  4 02:03:28 2008
@@ -0,0 +1,115 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
+<head>
+	<title>Seed Tutorial : Standalone</title>
+	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+	<style type="text/css">
+body
+{
+	font-size: 10pt;
+	font-family: "sans-serif";
+	text-align: justify;
+}
+
+#header
+{
+	text-align: right;
+	font-size: 18pt;
+	width: 100%;
+	border-bottom: 1px solid #aaa;
+	
+}
+
+#subheader
+{
+	text-align: right;
+	font-size: 12pt;
+	width: 100%;
+}
+
+div.section
+{
+	font-size: 14pt;
+	width: 100%;
+	border-bottom: 1px solid #ccc;
+	margin-bottom: 10px;
+}
+
+p
+{
+	margin-left: 10px;
+	text-indent: 0em;
+}
+
+pre
+{
+	margin-left: 20px;
+	padding-left: 5px;
+	border-left: 2px solid #ddd;
+}
+
+div.filename
+{
+    margin-left: 25px;
+    font-weight: bold;
+    width: 70%;
+    border-bottom: 1px solid #ccc;
+}
+
+code
+{
+    font-weight: bold;
+}
+
+span.changed
+{
+    color: red;
+}
+	</style>
+</head>
+<body>
+<div id="header">Seed Runtime</div>
+<div id="subheader">v.0.1</div>
+<div class="section"><b>Seed.import_namespace</b>(namespace, <i>version</i>)</div>
+<p>
+Imports functions and constructors from the given gobject-introspection <i>namespace</i>. The optional <i>version</i> parameter forces a particular version, and will throw an exception if the typelib for that version is not installed; if it is omitted, the latest version is loaded.
+</p>
+<pre>
+Seed.import_namespace("Gtk", "2.0");
+</pre>
+<div class="section"><b>Seed.include</b>(file)</div>
+<p>
+Evaluates a Javascript <i>file</i> as if it were included in the file at the point include is called.
+</p>
+<pre>
+Seed.include("tabview.js");
+</pre>
+<div class="section"><b>Seed.print</b>(value)</div>
+<p>
+Prints, to standard output, a representation of <i>value</i>. Number types are printed as floating-point values (with 6 decimal places); strings are printed as-is; objects are printed as <code>[object <i>type</i>]</code>.
+</p>
+<pre>
+Seed.print(5);
+Seed.print("This is a test!".replace(" is ", " was "));
+
+var win = new Gtk.Window();
+Seed.print(win);
+</pre>
+<div class="section"><b>Seed.readline</b>(prompt)</div>
+<p><i>Returns: user input</i></p>
+<p>
+Uses the GNU Readline library to display a prompt (using the <i>prompt</i> argument) and then wait for input from the user. The readline prompt provides history (using the up and down arrow keys) within a single Seed process.
+</p>
+Seed.{import_namespace, include, print, readline, prototype, check_syntax, introspect, fork}
+Seed.argv
+
+.signal_<xyz>.connect
+
+Exceptions
+
+when you have things that aren't actually objects , like cluttercolor, you don't have an actual construction and it gets mappppppeed to Clutter.Color._new()
+
+</p>
+</body>
+</html>

Added: trunk/doc/tutorial-standalone/Makefile.am
==============================================================================
--- (empty file)
+++ trunk/doc/tutorial-standalone/Makefile.am	Tue Nov  4 02:03:28 2008
@@ -0,0 +1,15 @@
+EXTRA_DIST = \
+	1.js \
+	2.js \
+	3.js \
+	1.png \
+	2.png \
+	3.png \
+	4.png \
+	packing.png \
+	packing.svg \
+	tutorial.html \
+	
+
+## File created by the gnome-build tools
+

Added: trunk/examples/Makefile.am
==============================================================================
--- (empty file)
+++ trunk/examples/Makefile.am	Tue Nov  4 02:03:28 2008
@@ -0,0 +1,20 @@
+SUBDIRS = ide \
+          lightsoff \
+          shader
+          
+EXTRA_DIST = \
+	calculator.js \
+	clutter.js \
+	introspect.js \
+	json2.js \
+	ls.js \
+	mini-browser.js \
+	n-oscillator.js \
+	notify-test.js \
+	pango.js \
+	quine.js \
+	repl.js \
+	vte-test.js
+
+## File created by the gnome-build tools
+

Added: trunk/examples/ide/Makefile.am
==============================================================================
--- (empty file)
+++ trunk/examples/ide/Makefile.am	Tue Nov  4 02:03:28 2008
@@ -0,0 +1,8 @@
+EXTRA_DIST = \
+	exception.svg \
+	ide.js \
+	tabview.js \
+	toolbar.js
+
+## File created by the gnome-build tools
+

Added: trunk/examples/lightsoff/Makefile.am
==============================================================================
--- (empty file)
+++ trunk/examples/lightsoff/Makefile.am	Tue Nov  4 02:03:28 2008
@@ -0,0 +1,7 @@
+EXTRA_DIST = \
+	lightsoff.js \
+	tim-off.svg \
+	tim-on.svg
+
+## File created by the gnome-build tools
+

Added: trunk/examples/pango.js
==============================================================================
--- (empty file)
+++ trunk/examples/pango.js	Tue Nov  4 02:03:28 2008
@@ -0,0 +1,57 @@
+#!/usr/local/bin/seed
+
+Seed.import_namespace("Clutter");
+Seed.import_namespace("Gtk");
+Seed.import_namespace("GtkClutter");
+
+Gtk.init(null, null);
+GtkClutter.init(null, null);
+
+var current_text;
+
+function update_text(entry)
+{
+	current_text.text = entry.text;
+}
+
+function prop_editor()
+{
+	this.text = new Gtk.Entry();
+	this.text.signal_changed.connect(update_text);
+	
+	this.hbox = new Gtk.HBox();
+	this.hbox.pack_start(this.text, true, true);
+}
+
+var window = new Gtk.Window();
+var gtkstage = new GtkClutter.Embed();
+
+var properties = new prop_editor();
+var vbox = new Gtk.VBox();
+vbox.pack_start(gtkstage, true, true);
+vbox.pack_start(properties.hbox);
+
+window.resize(600,600);
+window.add(vbox);
+window.show_all();
+
+
+
+
+function mouse_click(win, evt)
+{
+	Seed.print(evt);
+	Seed.print(evt.get_stage);
+}
+
+var stage = gtkstage.get_stage();
+stage.show_all();
+
+stage.signal_button_press_event.connect(mouse_click);
+
+current_text = new Clutter.Label({text:"Hello, world!",
+			     font_name:"Bitstream Vera Sans 24"});
+
+stage.add_actor(current_text);
+
+Gtk.main();
\ No newline at end of file

Added: trunk/examples/shader/Makefile.am
==============================================================================
--- (empty file)
+++ trunk/examples/shader/Makefile.am	Tue Nov  4 02:03:28 2008
@@ -0,0 +1,8 @@
+EXTRA_DIST = \
+	bob.jpg \
+	default.glsl \
+	main.js \
+	ShaderView.js
+
+## File created by the gnome-build tools
+

Added: trunk/tests/Makefile.am
==============================================================================
--- (empty file)
+++ trunk/tests/Makefile.am	Tue Nov  4 02:03:28 2008
@@ -0,0 +1,21 @@
+EXTRA_DIST = \
+	argv.js \
+    compare.js \
+    enum.js \
+    gobject-scope.js \
+    include.js \
+    json-constructor.js \
+    list-test.js \
+    namespace-exception-test.js \
+    print.js \
+    printprint.js \
+    property-benchmark.js \
+    property-glib-exception.js \
+    readline.js \
+    run-tests.py \
+    signal.js \
+    syntax-test.js
+
+
+## File created by the gnome-build tools
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]