Builder/AddPropertyPopup.js
authorAlan Knowles <alan@akkbhome.com>
Sun, 16 May 2010 01:34:57 +0000 (09:34 +0800)
committerAlan Knowles <alan@akkbhome.com>
Sun, 16 May 2010 01:34:57 +0000 (09:34 +0800)
Builder/AddPropertyPopup.js

index 7376f66..42e964c 100644 (file)
@@ -16,6 +16,24 @@ AddPropertyPopup = new XObject({
     
      
     items :  [
+        {
+            xtype : Gtk.MenuItem,
+            pack : [ 'append' ],
+            label : 'Add "id"',
+            tooltip_markup : "Using this.get('*someid') will find any id in an application.",
+            listeners : {
+                activate : function () {
+                    var LeftPanel = imports.Builder.LeftPanel.LeftPanel;
+                    LeftPanel.get('model').add( {
+                        key : 'id', 
+                        type : 'string',
+                        val : 'add',
+                        //skel  : skel,
+                        etype : 'props'
+                    }) //, skel);
+                }
+            }
+        },
         {
             xtype : Gtk.MenuItem,
             pack : [ 'append' ],