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')
-rw-r--r--js/components/tools-properties/text-properties.reel/text-properties.js59
1 files changed, 59 insertions, 0 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
new file mode 100644
index 00000000..313693b1
--- /dev/null
+++ b/js/components/tools-properties/text-properties.reel/text-properties.js
@@ -0,0 +1,59 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7var Montage = require("montage/core/core").Montage;
8var Component = require("montage/ui/component").Component;
9var ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties;
10
11exports.TextProperties = Montage.create(ToolProperties, {
12 className: {value: null},
13 tagType: {value: null},
14 fontSelection: {value: null},
15 fontSettings: {value: null},
16 fontSize: {value: null},
17 fontColor: {value: null},
18 btnBold: {value: null},
19 btnItalic: {value: null},
20 btnUnderline: {value: null},
21 btnStrikethrough: {value: null},
22 txtLink: {value: null},
23 linkTarget: {value: null},
24 alignLeft: {value: null},
25 alignCenter: {value: null},
26 alignRight: {value: null},
27 alignJustify: {value: null},
28 indentRight: {value: null},
29 indentLeft: {value: null},
30 numberedList: {value: null},
31 bulletedList: {value: null},
32
33 prepareForDraw: {
34 value: function() {
35 this.linkTarget.items = ["Target","_blank","_self","_parent", "_top"];
36 this.fontSettings.label = "Settings";
37 this.btnBold.label = "Bold";
38 this.btnItalic.label = "Italic";
39 this.btnUnderline.label = "Underline";
40 this.btnStrikethrough.label = "Strikethrough";
41 this.alignLeft.label = "Left";
42 this.alignCenter.label = "Center";
43 this.alignRight.label = "Right";
44 this.alignJustify.label = "Justify";
45 }
46 },
47
48 _subPrepare: {
49 value: function() {
50 //this.divElement.addEventListener("click", this, false);
51 }
52 },
53
54 handleClick: {
55 value: function(event) {
56 // this.selectedElement = event._event.target.id;
57 }
58 }
59}); \ No newline at end of file