DefineFunction.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. MWF.xApplication.ScriptEditor.statement.control.DefineFunction = new Class({
  2. Extends: MWF.xApplication.ScriptEditor.statement.$Statement.$Top
  3. // Implements: [Options, Events],
  4. //
  5. // parseNodes: function(){
  6. // var divs = this.node.getElements("div");
  7. // this.topNode = divs[0];
  8. // this.contentNode = divs[1];
  9. // this.inputNode = this.node.getElement("input");
  10. // this.inputAreaNode = this.inputNode.getParent();
  11. //
  12. // this.linkStatementNode = new Element("div", {"styles": this.css.linkStatementNode_down}).inject(this.node);
  13. // this.link = new MWF.xApplication.ScriptEditor.statement.Link(this, "down", this.linkStatementNode);
  14. // this.links.push(this.link);
  15. // this.topLink = null;
  16. // this.bottomLink = this.link;
  17. // },
  18. // buildStatement: function(){
  19. // this.setInputNode();
  20. // },
  21. // setInputNode: function(){
  22. // debugger;
  23. // this.inputNode.set("readonly", false);
  24. // this.inputNode.setStyle("max-width", "none");
  25. //
  26. // this.inputNode.addEvents({
  27. // "mousedown": function(e){
  28. // this.inputNode.focus();
  29. // e.stopPropagation();
  30. // }.bind(this),
  31. // "keyup": function(e){
  32. // var width = MWF.getTextSize(this.inputNode.get("value"), {"font-size": "12px"}).x;
  33. // debugger;
  34. // this.inputNode.setStyle("width", ""+width+"px");
  35. // e.stopPropagation();
  36. // }.bind(this)
  37. // });
  38. // },
  39. //
  40. // reportLinks: function(){
  41. // this.area.links.include(this.link.rePosition());
  42. // },
  43. // readyLink: function(link){
  44. // this.readyLinkNode = new Element("div", {"styles": this.css.readyLinkNode}).inject(this.linkStatementNode, "top");
  45. // },
  46. // notReadyLink: function(link){
  47. // if (this.readyLinkNode) this.readyLinkNode.destroy();
  48. // },
  49. //
  50. // readyLinkTo: function(link){
  51. // this.readyLinkToNode = new Element("div", {"styles": this.css.readyLinkToNode}).inject(this.linkStatementNode, "top");
  52. // },
  53. // notReadyLinkTo: function(link){
  54. // if (this.readyLinkToNode) this.readyLinkToNode.destroy();
  55. // },
  56. // setLinkStyle: function(){
  57. //
  58. // }
  59. });