[Frontend] Convert new Fixed Position Display from glyphs

Fixes #1047
WIP
This commit is contained in:
Charles Hacskaylo 2016-07-21 14:10:13 -07:00
parent a4111f3855
commit 421286c7e4

View File

@ -36,7 +36,7 @@ define([
{ {
"key": "fixed-display", "key": "fixed-display",
"name": "Fixed Position Display", "name": "Fixed Position Display",
"glyph": "3", "cssclass": "icon-telemetry-panel",
"type": "telemetry.fixed", "type": "telemetry.fixed",
"template": fixedTemplate, "template": fixedTemplate,
"uses": [ "uses": [
@ -49,28 +49,28 @@ define([
"items": [ "items": [
{ {
"method": "add", "method": "add",
"glyph": "\u002b", "cssclass": "icon-plus",
"control": "menu-button", "control": "menu-button",
"text": "Add", "text": "Add",
"options": [ "options": [
{ {
"name": "Box", "name": "Box",
"glyph": "\u00e0", "cssclass": "icon-box",
"key": "fixed.box" "key": "fixed.box"
}, },
{ {
"name": "Line", "name": "Line",
"glyph": "\u00e2", "cssclass": "icon-line-horz",
"key": "fixed.line" "key": "fixed.line"
}, },
{ {
"name": "Text", "name": "Text",
"glyph": "\u00e4", "cssclass": "icon-T",
"key": "fixed.text" "key": "fixed.text"
}, },
{ {
"name": "Image", "name": "Image",
"glyph": "\u00e3", "cssclass": "icon-image",
"key": "fixed.image" "key": "fixed.image"
} }
] ]
@ -81,52 +81,61 @@ define([
"items": [ "items": [
{ {
"method": "order", "method": "order",
"glyph": ", "cssclass": "icon-layers",
"control": "menu-button", "control": "menu-button",
"title": "Layering",
"description": "Move the selected object above or below other objects",
"options": [ "options": [
{ {
"name": "Move to Top", "name": "Move to Top",
"glyph": "\u00eb", "cssclass": "icon-arrow-double-up",
"key": "top" "key": "top"
}, },
{ {
"name": "Move Up", "name": "Move Up",
"glyph": "\u005e", "cssclass": "icon-arrow-up",
"key": "up" "key": "up"
}, },
{ {
"name": "Move Down", "name": "Move Down",
"glyph": "\u0076", "cssclass": "icon-arrow-down",
"key": "down" "key": "down"
}, },
{ {
"name": "Move to Bottom", "name": "Move to Bottom",
"glyph": "\u00ee", "cssclass": "icon-arrow-double-down",
"key": "bottom" "key": "bottom"
} }
] ]
}, },
{ {
"property": "fill", "property": "fill",
"glyph": "", "cssclass": "icon-paint-bucket",
"title": "Fill color",
"description": "Set fill color",
"control": "color" "control": "color"
}, },
{ {
"property": "stroke", "property": "stroke",
"glyph": "â", "cssclass": "icon-line-horz",
"title": "Border color",
"description": "Set border color",
"control": "color" "control": "color"
}, },
{ {
"property": "color", "property": "color",
"glyph": "ä", "cssclass": "icon-T",
"title": "Text color",
"description": "Set text color",
"mandatory": true, "mandatory": true,
"control": "color" "control": "color"
}, },
{ {
"property": "url", "property": "url",
"glyph": ", "cssclass": "icon-image",
"control": "dialog-button", "control": "dialog-button",
"title": "Image Properties", "title": "Image Properties",
"description": "Edit image properties",
"dialog": { "dialog": {
"control": "textfield", "control": "textfield",
"name": "Image URL", "name": "Image URL",
@ -135,9 +144,10 @@ define([
}, },
{ {
"property": "text", "property": "text",
"glyph": "G", "cssclass": "icon-gear",
"control": "dialog-button", "control": "dialog-button",
"title": "Text Properties", "title": "Text Properties",
"description": "Edit text properties",
"dialog": { "dialog": {
"control": "textfield", "control": "textfield",
"name": "Text", "name": "Text",
@ -146,15 +156,17 @@ define([
}, },
{ {
"method": "showTitle", "method": "showTitle",
"glyph": ", "cssclass": "icon-two-parts-both",
"control": "button", "control": "button",
"description": "Show telemetry element title." "title": "Show title",
"description": "Show telemetry element title"
}, },
{ {
"method": "hideTitle", "method": "hideTitle",
"glyph": ", "cssclass": "icon-two-parts-one-only",
"control": "button", "control": "button",
"description": "Hide telemetry element title." "title": "Hide title",
"description": "Hide telemetry element title"
} }
] ]
}, },
@ -163,7 +175,7 @@ define([
{ {
"method": "remove", "method": "remove",
"control": "button", "control": "button",
"glyph": "Z" "cssclass": "icon-trash"
} }
] ]
} }
@ -175,7 +187,7 @@ define([
{ {
"key": "telemetry.fixed", "key": "telemetry.fixed",
"name": "Fixed Position Display", "name": "Fixed Position Display",
"glyph": "3", "cssclass": "icon-telemetry-panel",
"description": "A panel for collecting telemetry" + "description": "A panel for collecting telemetry" +
" elements in a fixed position display.", " elements in a fixed position display.",
"priority": 899, "priority": 899,