Sample/RooProjectProperties.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 10:41:03 +0000 (18:41 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 10:41:03 +0000 (18:41 +0800)
Sample/RooProjectProperties.js [new file with mode: 0644]

diff --git a/Sample/RooProjectProperties.js b/Sample/RooProjectProperties.js
new file mode 100644 (file)
index 0000000..c7e5fc3
--- /dev/null
@@ -0,0 +1,44 @@
+Gtk = imports.gi.Gtk;
+Gdk = imports.gi.Gdk;
+Pango = imports.gi.Pango;
+GLib = imports.gi.GLib;
+Gio = imports.gi.Gio;
+GObject = imports.gi.GObject;
+GtkSource = imports.gi.GtkSource;
+WebKit = imports.gi.WebKit;
+Vte = imports.gi.Vte;
+console = imports.console;
+XObject = imports.XObject.XObject;
+RooProjectProperties=new XObject({
+    xtype: Gtk.Dialog,
+    modal : true,
+    items : [
+        {
+            xtype: Gtk.VBox,
+            pack : function(p,e) {
+                        p.el.get_content_area().add(e.el)
+                    },
+            items : [
+                {
+                    xtype: Gtk.Table,
+                    pack : "add",
+                    items : [
+                        {
+                            xtype: Gtk.Label,
+                            pack : "add",
+                            label : "baseURL",
+                            left_attach : 1
+                        },
+                        {
+                            xtype: Gtk.Entry,
+                            pack : "add",
+                            left_attach : 2
+                        }
+                    ]
+                }
+            ]
+        }
+    ]
+});
+RooProjectProperties.init();
+XObject.cache['/RooProjectProperties'] = RooProjectProperties;