Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 04:59:50 +0000 (12:59 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 04:59:50 +0000 (12:59 +0800)
Sample/Window.js

index 35fee02..b6f1644 100644 (file)
@@ -105,6 +105,30 @@ Window=new XObject({
                                             xtype: Gtk.SeparatorMenuItem,
                                             pack : "add"
                                         },
+                                        {
+                                            xtype: Gtk.MenuItem,
+                                            use_underline : true,
+                                            pack : "add",
+                                            label : "D_elete Project",
+                                            listeners : {
+                                                "activate":function (self) {
+                                                
+                                                       var fn =  this.get('/LeftProjectTree').get('combo').getValue();
+                                                       if (!fn.length) {
+                                                               this.get('/StandardErrorDialog').show("Select a project")
+                                                        }
+                                                       // confirm..
+                                                       this.get('/DialogConfirm').show("Do you want to delete ????", function() {
+                                                               print("DELETE?");
+                                                       });
+                                                
+                                                }
+                                            }
+                                        },
+                                        {
+                                            xtype: Gtk.SeparatorMenuItem,
+                                            pack : "add"
+                                        },
                                         {
                                             xtype: Gtk.MenuItem,
                                             pack : "add",