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                     },
30             items : [
31                 {
32                     xtype: Gtk.Table,
33                     pack : "add",
34                     init : function() {
35                         this.el = new Gtk.Table.c_new(2,2, false);
36                         XObject.prototype.init.call(this);
37                     
38                     },
39                     listeners : {
40                         
41                     },
42                     items : [
43                         {
44                             xtype: Gtk.Label,
45                             pack : "add",
46                             label : "baseURL",
47                             'eft-attac' : 0,
48                             'op-attac' : 0,
49                             'ight-attac' : 1
50                         },
51                         {
52                             xtype: Gtk.Entry,
53                             pack : "add",
54                             'eft-attac' : 1,
55                             'op-attac' : 0,
56                             'ight-attac' : 2
57                         },
58                         {
59                             xtype: Gtk.Label,
60                             pack : "add",
61                             label : "baseURL",
62                             left_attach : 0,
63                             'op-attac' : 1
64                         },
65                         {
66                             xtype: Gtk.Entry,
67                             pack : "add",
68                             left_attach : 1,
69                             'op-attac' : 1
70                         }
71                     ]
72                 }
73             ]
74         }
75     ]
76 });
77 RooProjectProperties.init();
78 XObject.cache['/RooProjectProperties'] = RooProjectProperties;