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.css | 33 +++ .../text-properties.reel/text-properties.html | 235 +++++++++++++++++++++ .../text-properties.reel/text-properties.js | 59 ++++++ 3 files changed, 327 insertions(+) create mode 100644 js/components/tools-properties/text-properties.reel/text-properties.css create mode 100644 js/components/tools-properties/text-properties.reel/text-properties.html create mode 100644 js/components/tools-properties/text-properties.reel/text-properties.js (limited to 'js/components/tools-properties/text-properties.reel') diff --git a/js/components/tools-properties/text-properties.reel/text-properties.css b/js/components/tools-properties/text-properties.reel/text-properties.css new file mode 100644 index 00000000..d581c6c3 --- /dev/null +++ b/js/components/tools-properties/text-properties.reel/text-properties.css @@ -0,0 +1,33 @@ +/* + 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. +
*/ + +.optionsTextTool { + display: -webkit-box; + -webkit-box-orient:horizontal; + -webkit-box-align: stretch; + padding: 5px; +} + + +.optionsTextTool > * { + -webkit-box-flex:0; +} + +.optionsTextTool .button { + width: auto; + +} + +.optionsTextTool .hottextunit { + padding-top:5px; +} + +.optionsTextTool .label, .optionsTextTool .hottextunit { + float:none; + font-size:11px; +} + + diff --git a/js/components/tools-properties/text-properties.reel/text-properties.html b/js/components/tools-properties/text-properties.reel/text-properties.html new file mode 100644 index 00000000..fb57c06d --- /dev/null +++ b/js/components/tools-properties/text-properties.reel/text-properties.html @@ -0,0 +1,235 @@ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + +
+ + + \ No newline at end of file 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