Sample/RooProjectProperties.js
[app.Builder.js] / Sample / RooProjectProperties.js
1 Gtk = imports.gi.Gtk;
2 Gdk = imports.gi.Gdk;
3 Pango = imports.gi.Pango;
4 GLib = imports.gi.GLib;
5 Gio = imports.gi.Gio;
6 GObject = imports.gi.GObject;
7 GtkSource = imports.gi.GtkSource;
8 WebKit = imports.gi.WebKit;
9 Vte = imports.gi.Vte;
10 console = imports.console;
11 XObject = imports.XObject.XObject;
12 RooProjectProperties=new XObject({
13     xtype: Gtk.Dialog,
14     modal : true,
15     show : function() {
16         this.el.show_all();
17     },
18     items : [
19         {
20             xtype: Gtk.VBox,
21             pack : function(p,e) {
22                         p.el.get_content_area().add(e.el)
23                     },
24             items : [
25                 {
26                     xtype: Gtk.Table,
27                     pack : "add",
28                     n_columns : 2,
29                     n_rows : 2,
30                     items : [
31                         {
32                             xtype: Gtk.Label,
33                             pack : "add",
34                             label : "baseURL",
35                             left_attach : 0
36                         },
37                         {
38                             xtype: Gtk.Entry,
39                             pack : "add",
40                             left_attach : 1,
41                             listeners : {
42                                 
43                             }
44                         }
45                     ]
46                 }
47             ]
48         }
49     ]
50 });
51 RooProjectProperties.init();
52 XObject.cache['/RooProjectProperties'] = RooProjectProperties;