3 "name": "Pman.Tab.BuilderTree",
4 "parent": "Pman.Tab.BuilderTab",
5 "title": "Pman.Tab.BuilderTree",
6 "path": "/home/edward/gitlive/Pman.Builder/Pman.Tab.BuilderTree.bjs",
10 "xtype": "NestedLayoutPanel",
15 "xtype": "BorderLayout",
20 "xtype": "LayoutRegion",
27 "xtype": "LayoutRegion",
32 "activate": "function (_self)\n{\n \n _this.tree = _self.tree;\n _this.menu = _self.menu;\n\n if (_this.hasMouseEvent) {\n return;\n }\n \n _this.hasMouseEvent = true;\n // this.el.on('mouseover', function() { _this.isMouseOver= true; });\n // this.el.on('mouseout', function() { _this.isMouseOver = false; });\n\n}"
40 "beforenodedrop": "function (e)\n{\n \n return Pman.Builder.Tree.handleDropNode(e); \n\n}",
41 "click": "function (node, e)\n{\n e.preventDefault();\n // console.log(e.button);\n Pman.Builder.Tree.setCurrentNode(node);\n \n \n \n\n}",
42 "contextmenu": "function (node, e)\n{\n e.stopEvent();\n \n this.getSelectionModel().select(node);\n Pman.Builder.Tree.setCurrentNode(node);\n \n _this.menu = Roo.factory(_this.menu);\n\n _this.menu.show(node.ui.textNode, 'tr');\n return;\n \n /*\n var xt = node.elConfig.xtype;\n var altx= false;\n if (typeof(node.elConfig['*prop']) != 'undefined') {\n altx = node.parentNode.elConfig.xtype +'.' + node.elConfig['*prop'];\n }\n var mn = Pman.Tab.BuilderPalete.getMenu(xt,altx);\n \n \n if (mn) {\n mn.show(e.getTarget());\n }\n \n */\n\n}",
43 "nodedragover": "function (e)\n{\n \n return Pman.Builder.Tree.handleDragOver(e); \n \n \n \n} \n "
47 "containerScroll": true,
48 "ddGroup": "component",
52 "|renderer": "function(n) { return n.text; }",
57 "xtype": "DefaultSelectionModel",
64 "|elConfig": "function() {\n return {\n xtype : '*top',\n \n app : 'TestApp',\n // perm\n // permtype\n modkey : 0,\n '|module' : '',\n region : 'center',\n '|parent' : 'Pman',\n name : \"Module Name\",\n items: [] \n\n \n }\n}\n",
76 "click": "function (_self)\n{\n \n var str = Pman.Builder.Tree.currentNodeType();\n if (typeof(Pman.Builder.Wizard[str]) == 'undefined') {\n Roo.MessageBox.alert(\"Sorry\", \"No wizard exists for \" + str);\n return;\n }\n var cn = Pman.Builder.Tree.currentNode;\n if (typeof(cn.elConfig['.builderCfg']) == 'undefined') {\n Roo.MessageBox.alert(\"Sorry\", \"No configuration exists for \" + str);\n return;\n }\n \n \n var cfg = Roo.decode(cn.elConfig['.builderCfg']);\n \n Roo.log(cfg);\n Pman.Dialog.BuilderAddTable.show( \n cfg, \n function(data) {\n\n \n var res = Pman.Builder.Wizard[str](data); // with old..\n Pman.Builder.Tree.replaceCurrentNode( res );\n Pman.Tab.BuilderView.panel.redraw();\n \n }\n );\n\n \n // otherwise, call back with template??\n \n \n \n \n}"
78 "text": "Edit Using Wizard",
88 "click": "function (_self)\n{\n \n \n Pman.Builder.Tree.collapseToggle();\n \n}"
90 "text": "Toggle Collapse",
96 "click": "function (_self)\n{\n \n \n Pman.Builder.Tree.createSharedPart();\n \n}"
98 "text": "Create shared part from this node",
108 "click": "function (_self)\n{\n Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to delete that node?\",\n function(r) {\n if (r!='yes') {\n return;\n }\n Pman.Builder.Tree.deleteCurrent();\n }\n );\n \n}"
110 "text": "Delete Node",
115 "text": "Save as template",