From eb44fe411390e6b945b37378fd00121245078900 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 24 May 2010 16:51:56 +0800 Subject: [PATCH] Sample/EditProject.js --- Sample/EditProject.js | 69 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Sample/EditProject.js diff --git a/Sample/EditProject.js b/Sample/EditProject.js new file mode 100644 index 000000000..d143c11d2 --- /dev/null +++ b/Sample/EditProject.js @@ -0,0 +1,69 @@ +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; +EditProject=new XObject({ + xtype: Gtk.Dialog, + default_height : 300, + default_width : 600, + items : [ + { + xtype: Gtk.VBox, + pack : function(p,e) { + p.el.get_content_area().add(e.el) + }, + items : [ + { + xtype: Gtk.HBox, + pack : "pack_start,false,true,0", + items : [ + { + xtype: Gtk.Label, + pack : "add", + label : "Project Name" + }, + { + xtype: Gtk.Entry, + pack : "pack_end,true,true,0", + id : "name" + } + ] + }, + { + xtype: Gtk.HBox, + pack : "pack_start,false,true,0", + items : [ + { + xtype: Gtk.Label, + pack : "add", + label : "Project type :" + }, + { + xtype: Gtk.Entry, + pack : "add" + } + ] + } + ] + }, + { + xtype: Gtk.Button, + pack : "add_action_widget,1", + label : "OK" + }, + { + xtype: Gtk.Button, + pack : "add_action_widget,0", + label : "Cancel" + } + ] +}); +EditProject.init(); +XObject.cache['/EditProject'] = EditProject; -- 2.39.2