Var.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. MWF.xApplication.ScriptEditor.statement.variabler.Var = new Class({
  2. Extends: MWF.xApplication.ScriptEditor.statement.$Statement.$Operation
  3. // Extends: MWF.xApplication.ScriptEditor.statement.$Statement,
  4. // Implements: [Options, Events],
  5. //
  6. // parseNodes: function(){
  7. // this.contentNode = this.node.getFirst();
  8. // this.inputNode = this.node.getElement("input");
  9. // this.inputAreaNode = this.inputNode.getParent();
  10. //
  11. // this.nameInput = this.node.getElement("input");
  12. // this.typeSelect = this.node.getElement("select");
  13. //
  14. // this.downLinkStatementNode = new Element("div", {"styles": this.css.linkStatementNode_down}).inject(this.node);
  15. // this.upLinkStatementNode = new Element("div", {"styles": this.css.linkStatementNode_up}).inject(this.node, "top");
  16. //
  17. // this.downLink = new MWF.xApplication.ScriptEditor.statement.Link(this, "down", this.downLinkStatementNode);
  18. // this.upLink = new MWF.xApplication.ScriptEditor.statement.Link(this, "up", this.upLinkStatementNode);
  19. //
  20. // this.links.push(this.upLink);
  21. // this.links.push(this.downLink);
  22. // this.topLink = this.upLink;
  23. // this.bottomLink = this.downLink;
  24. // },
  25. // buildStatement: function(){
  26. // this.setInputNode();
  27. // this.setSelectNode();
  28. // },
  29. // setInputNode: function(){
  30. // this.nameInput.set("readonly", false);
  31. // this.nameInput.setStyle("max-width", "none");
  32. //
  33. // this.nameInput.addEvents({
  34. // "mousedown": function(e){
  35. // this.nameInput.focus();
  36. // e.stopPropagation();
  37. // }.bind(this),
  38. // "keyup": function(e){
  39. // var width = MWF.getTextSize(this.nameInput.get("value")).x;
  40. // this.nameInput.setStyle("width", ""+width+"px");
  41. // e.stopPropagation();
  42. // }.bind(this)
  43. // });
  44. // },
  45. // setSelectNode: function(){
  46. // this.typeSelect.addEvents({
  47. // "mousedown": function(e){
  48. // e.stopPropagation();
  49. // }.bind(this)
  50. // });
  51. // },
  52. //
  53. // reportLinks: function(){
  54. // this.area.links.include(this.downLink.rePosition());
  55. // this.area.links.include(this.upLink.rePosition());
  56. // },
  57. //
  58. // setLinkStyle: function(){
  59. //
  60. // }
  61. });