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     listeners : {
19         "delete_event":function (self, event) {
20             this.el.hide()
21             return true;
22         }
23     },
24     items : [
25         {
26             xtype: Gtk.VBox,
27             pack : function(p,e) {
28                         p.el.get_content_area().add(e.el);
29                         e.border_width  =5;
30                     },
31             items : [
32                 {
33                     xtype: Gtk.Table,
34                     pack : "pack_start,true,true,3",
35                     init : function() {
36                         this.el = new Gtk.Table.c_new(2,2, false);
37                         XObject.prototype.init.call(this);
38                     
39                     },
40                     listeners : {
41                         
42                     },
43                     items : [
44                         {
45                             xtype: Gtk.Label,
46                             pack : "attach,0,1,0,1",
47                             label : "baseURL"
48                         },
49                         {
50                             xtype: Gtk.Entry,
51                             pack : "attach,1,2,0,1",
52                             listeners : {
53                                 
54                             }
55                         },
56                         {
57                             xtype: Gtk.Label,
58                             pack : "attach,0,1,1,2",
59                             label : "baseURL",
60                             listeners : {
61                                 
62                             }
63                         },
64                         {
65                             xtype: Gtk.Entry,
66                             pack : "attach,1,2,1,2",
67                             listeners : {
68                                 
69                             }
70                         }
71                     ]
72                 }
73             ]
74         }
75     ]
76 });
77 RooProjectProperties.init();
78 XObject.cache['/RooProjectProperties'] = RooProjectProperties;