From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- .../text-properties.reel/text-properties.js | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 js/components/tools-properties/text-properties.reel/text-properties.js (limited to 'js/components/tools-properties/text-properties.reel/text-properties.js') 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 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +var Montage = require("montage/core/core").Montage; +var Component = require("montage/ui/component").Component; +var ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties; + +exports.TextProperties = Montage.create(ToolProperties, { + className: {value: null}, + tagType: {value: null}, + fontSelection: {value: null}, + fontSettings: {value: null}, + fontSize: {value: null}, + fontColor: {value: null}, + btnBold: {value: null}, + btnItalic: {value: null}, + btnUnderline: {value: null}, + btnStrikethrough: {value: null}, + txtLink: {value: null}, + linkTarget: {value: null}, + alignLeft: {value: null}, + alignCenter: {value: null}, + alignRight: {value: null}, + alignJustify: {value: null}, + indentRight: {value: null}, + indentLeft: {value: null}, + numberedList: {value: null}, + bulletedList: {value: null}, + + prepareForDraw: { + value: function() { + this.linkTarget.items = ["Target","_blank","_self","_parent", "_top"]; + this.fontSettings.label = "Settings"; + this.btnBold.label = "Bold"; + this.btnItalic.label = "Italic"; + this.btnUnderline.label = "Underline"; + this.btnStrikethrough.label = "Strikethrough"; + this.alignLeft.label = "Left"; + this.alignCenter.label = "Center"; + this.alignRight.label = "Right"; + this.alignJustify.label = "Justify"; + } + }, + + _subPrepare: { + value: function() { + //this.divElement.addEventListener("click", this, false); + } + }, + + handleClick: { + value: function(event) { + // this.selectedElement = event._event.target.id; + } + } +}); \ No newline at end of file -- cgit v1.2.3