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(1,2, false);
37                         XObject.prototype.init.call(this);
38                     
39                     },
40                     items : [
41                         {
42                             xtype: Gtk.Label,
43                             pack : "attach,0,1,0,1,0,0,0,0",
44                             label : "baseURL"
45                         },
46                         {
47                             xtype: Gtk.Entry,
48                             pack : "attach,1,2,0,1",
49                             listeners : {
50                                 
51                             }
52                         },
53                         {
54                             xtype: Gtk.Label,
55                             pack : "attach,0,1,1,2,0,0,1,0",
56                             label : "login:"
57                         },
58                         {
59                             xtype: Gtk.Entry,
60                             pack : "attach,1,2,1,2",
61                             listeners : {
62                                 
63                             }
64                         },
65                         {
66                             xtype: Gtk.Label,
67                             pack : "attach,0,1,2,3,0,0,1,0",
68                             label : "password"
69                         },
70                         {
71                             xtype: Gtk.Entry,
72                             pack : "attach,1,2,2,3"
73                         }
74                     ]
75                 }
76             ]
77         }
78     ]
79 });
80 RooProjectProperties.init();
81 XObject.cache['/RooProjectProperties'] = RooProjectProperties;