aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/text-properties.reel/text-properties.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/tools-properties/text-properties.reel/text-properties.js')
-rwxr-xr-xjs/components/tools-properties/text-properties.reel/text-properties.js62
1 files changed, 31 insertions, 31 deletions
diff --git a/js/components/tools-properties/text-properties.reel/text-properties.js b/js/components/tools-properties/text-properties.reel/text-properties.js
index db0d3af6..911b4b19 100755
--- a/js/components/tools-properties/text-properties.reel/text-properties.js
+++ b/js/components/tools-properties/text-properties.reel/text-properties.js
@@ -78,7 +78,7 @@ exports.TextProperties = Montage.create(ToolProperties, {
78 break; 78 break;
79 case "full": 79 case "full":
80 this.alignJustify.pressed = true; 80 this.alignJustify.pressed = true;
81 } 81 }
82 82
83 switch(this.application.ninja.stage.textTool.listStyle) { 83 switch(this.application.ninja.stage.textTool.listStyle) {
84 case "ordered": 84 case "ordered":
@@ -86,7 +86,7 @@ exports.TextProperties = Montage.create(ToolProperties, {
86 break; 86 break;
87 case "unordered": 87 case "unordered":
88 this.bulletedList.pressed = true; 88 this.bulletedList.pressed = true;
89 } 89 }
90 } 90 }
91 }, 91 },
92 92
@@ -101,10 +101,10 @@ exports.TextProperties = Montage.create(ToolProperties, {
101 prepareForDraw: { 101 prepareForDraw: {
102 value: function() { 102 value: function() {
103 103
104 this.fontColor.props = {side: 'top', align: 'center', wheel: true, palette: true, gradient: false, image: false, nocolor: true, offset: -80}; 104 this.fontColor.props = {side: 'top', align: 'center', wheel: true, palette: true, gradient: false, image: false, nocolor: true, offset: -80};
105 this.application.ninja.colorController.addButton("chip", this.fontColor); 105 this.application.ninja.colorController.addButton("chip", this.fontColor);
106 this.fontColor.color('rgb', {wasSetByCode: true, type: 'change', color: {r: 0, g: 0, b: 0}, css: 'rgb(0,0,0)'}); 106 this.fontColor.color('rgb', {wasSetByCode: true, type: 'change', color: {r: 0, g: 0, b: 0}, css: 'rgb(0,0,0)'});
107 this.fontColor.addEventListener("change",this.handleFontColorChange.bind(this),false); 107 this.fontColor.addEventListener("change",this.handleFontColorChange.bind(this),false);
108 108
109 this.application.ninja.stage.textTool.addEventListener("editorSelect", this.handleEditorSelect.bind(this), false); 109 this.application.ninja.stage.textTool.addEventListener("editorSelect", this.handleEditorSelect.bind(this), false);
110 110
@@ -122,29 +122,29 @@ exports.TextProperties = Montage.create(ToolProperties, {
122 oneway: false 122 oneway: false
123 }); 123 });
124 124
125 Object.defineBinding(this.btnBold, "pressed", { 125 Object.defineBinding(this.btnBold, "pressed", {
126 boundObject: this.application.ninja.stage.textTool, 126 boundObject: this.application.ninja.stage.textTool,
127 boundObjectPropertyPath: "bold", 127 boundObjectPropertyPath: "bold",
128 oneway: false 128 oneway: false
129 }); 129 });
130 130
131 Object.defineBinding(this.btnItalic, "pressed", { 131 Object.defineBinding(this.btnItalic, "pressed", {
132 boundObject: this.application.ninja.stage.textTool, 132 boundObject: this.application.ninja.stage.textTool,
133 boundObjectPropertyPath: "italic", 133 boundObjectPropertyPath: "italic",
134 oneway: false 134 oneway: false
135 }); 135 });
136 136
137 Object.defineBinding(this.btnUnderline, "pressed", { 137 Object.defineBinding(this.btnUnderline, "pressed", {
138 boundObject: this.application.ninja.stage.textTool, 138 boundObject: this.application.ninja.stage.textTool,
139 boundObjectPropertyPath: "underline", 139 boundObjectPropertyPath: "underline",
140 oneway: false 140 oneway: false
141 }); 141 });
142 142
143 Object.defineBinding(this.btnStrikethrough, "pressed", { 143 Object.defineBinding(this.btnStrikethrough, "pressed", {
144 boundObject: this.application.ninja.stage.textTool, 144 boundObject: this.application.ninja.stage.textTool,
145 boundObjectPropertyPath: "strikeThrough", 145 boundObjectPropertyPath: "strikeThrough",
146 oneway: false 146 oneway: false
147 }); 147 });
148 } 148 }
149 }, 149 },
150 150
@@ -155,7 +155,7 @@ exports.TextProperties = Montage.create(ToolProperties, {
155 this.alignRight.pressed = false; 155 this.alignRight.pressed = false;
156 this.alignJustify.pressed = false; 156 this.alignJustify.pressed = false;
157 this.application.ninja.stage.textTool.justify = "left"; 157 this.application.ninja.stage.textTool.justify = "left";
158 } 158 }
159 }, 159 },
160 160
161 handleJustifyCenterAction: { 161 handleJustifyCenterAction: {
@@ -215,7 +215,7 @@ exports.TextProperties = Montage.create(ToolProperties, {
215 this.application.ninja.stage.textTool.listStyle = "ordered"; 215 this.application.ninja.stage.textTool.listStyle = "ordered";
216 } else { 216 } else {
217 this.application.ninja.stage.textTool.listStyle = "none"; 217 this.application.ninja.stage.textTool.listStyle = "none";
218 } 218 }
219 } 219 }
220 }, 220 },
221 221