Builder/Window.js
[app.Builder.js] / Builder / Window.js
index f2cc7a3..3b61b8d 100644 (file)
@@ -153,6 +153,40 @@ Window=new XObject({
                                 }
                             ]
                         },
+                        {
+                            xtype: Gtk.MenuItem,
+                            label : "_Edit",
+                            use_underline : true,
+                            items : [
+                                {
+                                    xtype: Gtk.Menu,
+                                    pack : "set_submenu",
+                                    listeners : {
+                                        
+                                    },
+                                    items : [
+                                        {
+                                            xtype: Gtk.MenuItem,
+                                            listeners : {
+                                                activate : function (self) {
+                                                       var fn = this.get('/LeftTree').getActiveFile();
+                                                        if (!fn) {
+                                                            this.get('/StandardErrorDialog').show("No File active");
+                                                            return true;
+                                                        }
+                                                 
+                                                        this.get('/DialogNewComponent').show(fn);
+                                                        return true;
+                                                }
+                                            },
+                                            label : "File _Properties",
+                                            pack : "add",
+                                            use_underline : true
+                                        }
+                                    ]
+                                }
+                            ]
+                        },
                         {
                             xtype: Gtk.MenuItem,
                             label : "_Help",
@@ -160,6 +194,7 @@ Window=new XObject({
                             listeners : {
                                 
                             },
+                            pack : "add",
                             items : [
                                 {
                                     xtype: Gtk.Menu,