Set.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. MWF.xApplication.ScriptEditor.statement.variabler.Set = 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.table = this.contentNode.getElement("table");
  9. //
  10. // this.valueInput = this.table.getElement("input");
  11. // this.nameMortiseNode = this.table.getElements("td")[1].getFirst().getFirst();
  12. //
  13. // this.downLinkStatementNode = new Element("div", {"styles": this.css.linkStatementNode_down}).inject(this.node);
  14. // this.upLinkStatementNode = new Element("div", {"styles": this.css.linkStatementNode_up}).inject(this.node, "top");
  15. //
  16. // this.downLink = new MWF.xApplication.ScriptEditor.statement.Link(this, "down", this.downLinkStatementNode);
  17. // this.upLink = new MWF.xApplication.ScriptEditor.statement.Link(this, "up", this.upLinkStatementNode);
  18. //
  19. // this.links.push(this.upLink);
  20. // this.links.push(this.downLink);
  21. // this.topLink = this.upLink;
  22. // this.bottomLink = this.downLink;
  23. // },
  24. // buildStatement: function () {
  25. // this.setInputNode();
  26. // this.nameMortise = new MWF.xApplication.ScriptEditor.statement.Mortise(this, this.nameMortiseNode.getParent(), this.block.data.nameTenonTypes, this.nameMortiseNode);
  27. // this.valueMortise = new MWF.xApplication.ScriptEditor.statement.Mortise(this, this.valueInput.getParent(), this.block.data.valueTenonTypes, this.valueInput);
  28. //
  29. // this.area.mortises.push(this.nameMortise);
  30. // this.mortises.push(this.nameMortise);
  31. // this.area.mortises.push(this.valueMortise);
  32. // this.mortises.push(this.valueMortise);
  33. // },
  34. // setInputNode: function () {
  35. // this.valueInput.set("readonly", false);
  36. // this.valueInput.setStyle("max-width", "none");
  37. //
  38. // this.valueInput.addEvents({
  39. // "mousedown": function (e) {
  40. // this.valueInput.focus();
  41. // e.stopPropagation();
  42. // }.bind(this),
  43. // "keyup": function (e) {
  44. // var width = MWF.getTextSize(this.valueInput.get("value")).x;
  45. // this.valueInput.setStyle("width", "" + width + "px");
  46. // e.stopPropagation();
  47. // }.bind(this)
  48. // });
  49. // },
  50. //
  51. // reportLinks: function () {
  52. // this.area.links.include(this.downLink.rePosition());
  53. // this.area.links.include(this.upLink.rePosition());
  54. // },
  55. //
  56. // setLinkStyle: function () {
  57. //
  58. // }
  59. });