[Frontend] Removing glyph definitions; updating tests

Fixes #1047
Search and removal of "glyph" definitions in bundle
and other JS files; updating tests accordingly;
This commit is contained in:
Charles Hacskaylo 2016-07-25 10:20:33 -07:00
parent 574b8bd5c1
commit 650fbcc921
34 changed files with 22 additions and 102 deletions

View File

@ -49,7 +49,6 @@ define([
{ {
"key": "eventGenerator", "key": "eventGenerator",
"name": "Event Message Generator", "name": "Event Message Generator",
"glyph": "\u0066",
"cssclass": "icon-folder-new", "cssclass": "icon-folder-new",
"description": "For development use. Creates sample event message data that mimics a live data stream.", "description": "For development use. Creates sample event message data that mimics a live data stream.",
"priority": 10, "priority": 10,

View File

@ -36,7 +36,7 @@ define([
"name": "Export Telemetry as CSV", "name": "Export Telemetry as CSV",
"implementation": ExportTelemetryAsCSVAction, "implementation": ExportTelemetryAsCSVAction,
"category": "contextual", "category": "contextual",
"glyph": "\u0033", "cssclass": "icon-download",
"depends": [ "exportService" ] "depends": [ "exportService" ]
} }
] ]

View File

@ -86,7 +86,6 @@ define([
{ {
"key": "generator", "key": "generator",
"name": "Sine Wave Generator", "name": "Sine Wave Generator",
"glyph": "\u0054",
"cssclass": "icon-telemetry", "cssclass": "icon-telemetry",
"description": "For development use. Generates example streaming telemetry data using a simple sine wave algorithm.", "description": "For development use. Generates example streaming telemetry data using a simple sine wave algorithm.",
"priority": 10, "priority": 10,

View File

@ -49,7 +49,6 @@ define([
{ {
"key": "imagery", "key": "imagery",
"name": "Example Imagery", "name": "Example Imagery",
"glyph": "\u00e3",
"cssclass": "icon-image", "cssclass": "icon-image",
"features": "creation", "features": "creation",
"description": "For development use. Creates example imagery data that mimics a live imagery stream.", "description": "For development use. Creates example imagery data that mimics a live imagery stream.",

View File

@ -43,18 +43,18 @@ define([
{ {
"name":"Mars Science Laboratory", "name":"Mars Science Laboratory",
"key": "msl.curiosity", "key": "msl.curiosity",
"glyph": "o" "cssclass": "icon-object"
}, },
{ {
"name": "Instrument", "name": "Instrument",
"key": "msl.instrument", "key": "msl.instrument",
"glyph": "o", "cssclass": "icon-object",
"model": {"composition": []} "model": {"composition": []}
}, },
{ {
"name": "Measurement", "name": "Measurement",
"key": "msl.measurement", "key": "msl.measurement",
"glyph": "\u0054", "cssclass": "icon-telemetry",
"model": {"telemetry": {}}, "model": {"telemetry": {}},
"telemetry": { "telemetry": {
"source": "rems.source", "source": "rems.source",

View File

@ -81,7 +81,7 @@ define([
{ {
"key": "plot", "key": "plot",
"name": "Example Telemetry Plot", "name": "Example Telemetry Plot",
"glyph": "\u0074", "cssclass": "icon-telemetry-panel",
"description": "For development use. A plot for displaying telemetry.", "description": "For development use. A plot for displaying telemetry.",
"priority": 10, "priority": 10,
"delegates": [ "delegates": [

View File

@ -246,7 +246,7 @@ define([
{ {
"key": "items", "key": "items",
"name": "Items", "name": "Items",
"glyph": "9", "cssclass": "icon-thumbs-strip",
"description": "Grid of available items", "description": "Grid of available items",
"template": itemsTemplate, "template": itemsTemplate,
"uses": [ "uses": [

View File

@ -174,7 +174,6 @@ define([
], ],
"description": "Edit", "description": "Edit",
"category": "view-control", "category": "view-control",
"glyph": "p",
"cssclass": "major icon-pencil" "cssclass": "major icon-pencil"
}, },
{ {
@ -184,7 +183,6 @@ define([
"view-control" "view-control"
], ],
"implementation": PropertiesAction, "implementation": PropertiesAction,
"glyph": "p",
"cssclass": "major icon-pencil", "cssclass": "major icon-pencil",
"name": "Edit Properties...", "name": "Edit Properties...",
"description": "Edit properties of this object.", "description": "Edit properties of this object.",
@ -196,7 +194,6 @@ define([
"key": "remove", "key": "remove",
"category": "contextual", "category": "contextual",
"implementation": RemoveAction, "implementation": RemoveAction,
"glyph": "Z",
"cssclass": "icon-trash", "cssclass": "icon-trash",
"name": "Remove", "name": "Remove",
"description": "Remove this object from its containing object.", "description": "Remove this object from its containing object.",

View File

@ -51,7 +51,6 @@ define(
function AddAction(type, parent, context, $q, dialogService, policyService) { function AddAction(type, parent, context, $q, dialogService, policyService) {
this.metadata = { this.metadata = {
key: 'add', key: 'add',
glyph: type.getGlyph(),
cssclass: type.getCssClass(), cssclass: type.getCssClass(),
name: type.getName(), name: type.getName(),
type: type.getKey(), type: type.getKey(),

View File

@ -47,7 +47,6 @@ define(
function CreateAction(type, parent, context) { function CreateAction(type, parent, context) {
this.metadata = { this.metadata = {
key: 'create', key: 'create',
glyph: type.getGlyph(),
cssclass: type.getCssClass(), cssclass: type.getCssClass(),
name: type.getName(), name: type.getName(),
type: type.getKey(), type: type.getKey(),

View File

@ -120,7 +120,6 @@ define(
mockParent.useCapability.andReturn(mockDomainObject); mockParent.useCapability.andReturn(mockDomainObject);
mockType.getKey.andReturn("test"); mockType.getKey.andReturn("test");
mockType.getGlyph.andReturn("T");
mockType.getCssClass.andReturn("icon-telemetry"); mockType.getCssClass.andReturn("icon-telemetry");
mockType.getDescription.andReturn("a test type"); mockType.getDescription.andReturn("a test type");
mockType.getName.andReturn("Test"); mockType.getName.andReturn("Test");
@ -139,7 +138,6 @@ define(
expect(metadata.name).toEqual("Test"); expect(metadata.name).toEqual("Test");
expect(metadata.description).toEqual("a test type"); expect(metadata.description).toEqual("a test type");
expect(metadata.glyph).toEqual("T");
expect(metadata.cssclass).toEqual("icon-telemetry"); expect(metadata.cssclass).toEqual("icon-telemetry");
}); });

View File

@ -75,7 +75,6 @@ define(
testModel = { someKey: "some value" }; testModel = { someKey: "some value" };
mockType.getKey.andReturn("test"); mockType.getKey.andReturn("test");
mockType.getGlyph.andReturn("T");
mockType.getCssClass.andReturn("icon-telemetry"); mockType.getCssClass.andReturn("icon-telemetry");
mockType.getDescription.andReturn("a test type"); mockType.getDescription.andReturn("a test type");
mockType.getName.andReturn("Test"); mockType.getName.andReturn("Test");

View File

@ -67,16 +67,16 @@
// Used in grid-item.html, tree-item, inspector location // Used in grid-item.html, tree-item, inspector location
@extend .ui-symbol; @extend .ui-symbol;
@extend .icon; @extend .icon;
line-height: inherit; // This is Ok for the symbolsfont line-height: inherit;
position: relative; position: relative;
&.l-icon-link { &.l-icon-link {
.t-item-icon-glyph { .t-item-icon-glyph {
&:after { &:after {
color: $colorIconLink; color: $colorIconLink;
content: "\e921"; content: $glyph-icon-link;
height: auto; width: auto; height: auto; width: auto;
position: absolute; position: absolute;
left: 0; top: 0; right: 0; bottom: 10%; left: 0; top: 0; right: 0; bottom: 20%;
@include transform-origin(bottom left); @include transform-origin(bottom left);
@include transform(scale(0.3)); @include transform(scale(0.3));
z-index: 2; z-index: 2;

View File

@ -258,12 +258,11 @@ define([
{ {
"key": "root", "key": "root",
"name": "Root", "name": "Root",
"glyph": "\u0046" "cssclass": "icon-folder"
}, },
{ {
"key": "folder", "key": "folder",
"name": "Folder", "name": "Folder",
"glyph": "\u0046",
"cssclass": "icon-folder", "cssclass": "icon-folder",
"features": "creation", "features": "creation",
"description": "Create folders to organize other objects or links to objects.", "description": "Create folders to organize other objects or links to objects.",
@ -275,12 +274,10 @@ define([
{ {
"key": "unknown", "key": "unknown",
"name": "Unknown Type", "name": "Unknown Type",
"glyph": "\u003f",
"cssclass": "icon-object-unknown" "cssclass": "icon-object-unknown"
}, },
{ {
"name": "Unknown Type", "name": "Unknown Type",
"glyph": "\u003f",
"cssclass": "icon-object-unknown" "cssclass": "icon-object-unknown"
} }
], ],

View File

@ -58,8 +58,7 @@ define(
* @property {string} key machine-readable identifier for this action * @property {string} key machine-readable identifier for this action
* @property {string} name human-readable name for this action * @property {string} name human-readable name for this action
* @property {string} description human-readable description * @property {string} description human-readable description
* @property {string} glyph character to display as icon * @property {string} cssclass CSS class for icon
* @property {string} cssclass CSS class for icon, supercedes glyph
* @property {ActionContext} context the context in which the action * @property {ActionContext} context the context in which the action
* will be performed. * will be performed.
*/ */

View File

@ -56,13 +56,13 @@ define(
* @method Type#getDescription * @method Type#getDescription
*/ */
/** /**
* Get the glyph associated with this type. Glyphs are * Get the cssclass associated with this type. cssclass is a
* single-character strings which will appear as icons (when * string which will appear as an icon (when
* displayed in an appropriate font) which visually * displayed in an appropriate font) which visually
* distinguish types from one another. * distinguish types from one another.
* *
* @returns {string} the glyph to be displayed * @returns {string} the cssclass for this type
* @method Type#getGlyph * @method Type#getCssClass
*/ */
/** /**
* Get an array of properties associated with objects of * Get an array of properties associated with objects of
@ -144,11 +144,6 @@ define(
return this.typeDef.description; return this.typeDef.description;
}; };
TypeImpl.prototype.getGlyph = function () {
// TO-DO: remove this function
return this.typeDef.glyph;
};
TypeImpl.prototype.getCssClass = function () { TypeImpl.prototype.getCssClass = function () {
return this.typeDef.cssclass; return this.typeDef.cssclass;
}; };

View File

@ -61,7 +61,7 @@ define(
* domain object's whose `type` capability matches or inherits * domain object's whose `type` capability matches or inherits
* from that type. * from that type.
* *
* Views themselves are primarily metadata, such as name, glyph, and * Views themselves are primarily metadata, such as name, icon and
* description (to be shown in the UI); they do not contain any * description (to be shown in the UI); they do not contain any
* information directly applicable to rendering to the DOM, although * information directly applicable to rendering to the DOM, although
* they do contain sufficient information (such as a `templateUrl`, * they do contain sufficient information (such as a `templateUrl`,

View File

@ -33,7 +33,6 @@ define(
key: 'test-type', key: 'test-type',
name: 'Test Type', name: 'Test Type',
description: 'A type, for testing', description: 'A type, for testing',
glyph: 't',
cssclass: 'icon-telemetry-panel', cssclass: 'icon-telemetry-panel',
inherits: ['test-parent-1', 'test-parent-2'], inherits: ['test-parent-1', 'test-parent-2'],
features: ['test-feature-1'], features: ['test-feature-1'],
@ -55,11 +54,7 @@ define(
expect(type.getDescription()).toEqual('A type, for testing'); expect(type.getDescription()).toEqual('A type, for testing');
}); });
it("exposes glyph from definition", function () { it("exposes CSS class from definition", function() {
expect(type.getGlyph()).toEqual('t');
});
it("exposes glyph CSS class from definition", function() {
expect(type.getCssClass()).toEqual('icon-telemetry-panel'); expect(type.getCssClass()).toEqual('icon-telemetry-panel');
}); });

View File

@ -30,20 +30,17 @@ define(
testTypeDefinitions = [ testTypeDefinitions = [
{ {
key: 'basic', key: 'basic',
glyph: "X",
cssclass: "icon-magnify-in", cssclass: "icon-magnify-in",
name: "Basic Type" name: "Basic Type"
}, },
{ {
key: 'multi1', key: 'multi1',
glyph: "Z",
cssclass: "icon-trash", cssclass: "icon-trash",
description: "Multi1 Description", description: "Multi1 Description",
capabilities: ['a1', 'b1'] capabilities: ['a1', 'b1']
}, },
{ {
key: 'multi2', key: 'multi2',
glyph: "Y",
cssclass: "icon-magnify-out", cssclass: "icon-magnify-out",
capabilities: ['a2', 'b2', 'c2'] capabilities: ['a2', 'b2', 'c2']
}, },
@ -73,7 +70,6 @@ define(
it("looks up non-inherited types by name", function () { it("looks up non-inherited types by name", function () {
captured.type = provider.getType('basic'); captured.type = provider.getType('basic');
expect(captured.type.getGlyph()).toEqual("X");
expect(captured.type.getCssClass()).toEqual("icon-magnify-in"); expect(captured.type.getCssClass()).toEqual("icon-magnify-in");
expect(captured.type.getName()).toEqual("Basic Type"); expect(captured.type.getName()).toEqual("Basic Type");
expect(captured.type.getDescription()).toBeUndefined(); expect(captured.type.getDescription()).toBeUndefined();
@ -82,7 +78,6 @@ define(
it("supports single inheritance", function () { it("supports single inheritance", function () {
captured.type = provider.getType('single-subtype'); captured.type = provider.getType('single-subtype');
expect(captured.type.getGlyph()).toEqual("X");
expect(captured.type.getCssClass()).toEqual("icon-magnify-in"); expect(captured.type.getCssClass()).toEqual("icon-magnify-in");
expect(captured.type.getName()).toEqual("Basic Subtype"); expect(captured.type.getName()).toEqual("Basic Subtype");
expect(captured.type.getDescription()).toEqual("A test subtype"); expect(captured.type.getDescription()).toEqual("A test subtype");
@ -91,7 +86,6 @@ define(
it("supports multiple inheritance", function () { it("supports multiple inheritance", function () {
captured.type = provider.getType('multi-subtype'); captured.type = provider.getType('multi-subtype');
expect(captured.type.getGlyph()).toEqual("Y");
expect(captured.type.getCssClass()).toEqual("icon-magnify-out"); expect(captured.type.getCssClass()).toEqual("icon-magnify-out");
expect(captured.type.getName()).toEqual("Multi-parent Subtype"); expect(captured.type.getName()).toEqual("Multi-parent Subtype");
expect(captured.type.getDescription()).toEqual("Multi1 Description"); expect(captured.type.getDescription()).toEqual("Multi1 Description");

View File

@ -66,7 +66,6 @@ define([
"key": "move", "key": "move",
"name": "Move", "name": "Move",
"description": "Move object to another location.", "description": "Move object to another location.",
"glyph": "f",
"cssclass": "icon-move", "cssclass": "icon-move",
"category": "contextual", "category": "contextual",
"implementation": MoveAction, "implementation": MoveAction,
@ -80,7 +79,6 @@ define([
"key": "copy", "key": "copy",
"name": "Duplicate", "name": "Duplicate",
"description": "Duplicate object to another location.", "description": "Duplicate object to another location.",
"glyph": "+",
"cssclass": "icon-duplicate", "cssclass": "icon-duplicate",
"category": "contextual", "category": "contextual",
"implementation": CopyAction, "implementation": CopyAction,
@ -97,7 +95,6 @@ define([
"key": "link", "key": "link",
"name": "Create Link", "name": "Create Link",
"description": "Create Link to object in another location.", "description": "Create Link to object in another location.",
"glyph": "è",
"cssclass": "icon-link", "cssclass": "icon-link",
"category": "contextual", "category": "contextual",
"implementation": LinkAction, "implementation": LinkAction,
@ -111,7 +108,6 @@ define([
"key": "follow", "key": "follow",
"name": "Go To Original", "name": "Go To Original",
"description": "Go to the original, un-linked instance of this object.", "description": "Go to the original, un-linked instance of this object.",
"glyph": "",
"cssclass": "", "cssclass": "",
"category": "contextual", "category": "contextual",
"implementation": GoToOriginalAction "implementation": GoToOriginalAction
@ -120,7 +116,6 @@ define([
"key": "locate", "key": "locate",
"name": "Set Primary Location", "name": "Set Primary Location",
"description": "Set a domain object's primary location.", "description": "Set a domain object's primary location.",
"glyph": "",
"cssclass": "", "cssclass": "",
"category": "contextual", "category": "contextual",
"implementation": SetPrimaryLocationAction "implementation": SetPrimaryLocationAction

View File

@ -136,7 +136,6 @@ define([
], ],
"category": "contextual", "category": "contextual",
"name": "Start", "name": "Start",
"glyph": "ï",
"cssclass": "icon-play", "cssclass": "icon-play",
"priority": "preferred" "priority": "preferred"
}, },
@ -148,7 +147,6 @@ define([
], ],
"category": "contextual", "category": "contextual",
"name": "Restart at 0", "name": "Restart at 0",
"glyph": "r",
"cssclass": "icon-refresh", "cssclass": "icon-refresh",
"priority": "preferred" "priority": "preferred"
} }
@ -157,7 +155,6 @@ define([
{ {
"key": "clock", "key": "clock",
"name": "Clock", "name": "Clock",
"glyph": "\u0043",
"cssclass": "icon-clock", "cssclass": "icon-clock",
"description": "A UTC-based clock that supports a variety of display formats. Clocks can be added to Display Layouts.", "description": "A UTC-based clock that supports a variety of display formats. Clocks can be added to Display Layouts.",
"priority": 101, "priority": 101,
@ -215,7 +212,6 @@ define([
{ {
"key": "timer", "key": "timer",
"name": "Timer", "name": "Timer",
"glyph": "\u00f5",
"cssclass": "icon-timer", "cssclass": "icon-timer",
"description": "A timer that counts up or down to a datetime. Timers can be started, stopped and reset whenever needed, and support a variety of display formats. Each Timer displays the same value to all users. Timers can be added to Display Layouts.", "description": "A timer that counts up or down to a datetime. Timers can be started, stopped and reset whenever needed, and support a variety of display formats. Each Timer displays the same value to all users. Timers can be added to Display Layouts.",
"priority": 100, "priority": 100,

View File

@ -48,10 +48,6 @@ define(
return "icon-clock"; return "icon-clock";
}; };
ClockIndicator.prototype.getGlyphClass = function () {
return "no-icon no-collapse float-right subtle";
};
ClockIndicator.prototype.getText = function () { ClockIndicator.prototype.getText = function () {
return this.text; return this.text;
}; };

View File

@ -49,7 +49,6 @@ define(
it("implements the Indicator interface", function () { it("implements the Indicator interface", function () {
expect(indicator.getCssClass()).toEqual(jasmine.any(String)); expect(indicator.getCssClass()).toEqual(jasmine.any(String));
expect(indicator.getGlyphClass()).toEqual(jasmine.any(String));
expect(indicator.getText()).toEqual(jasmine.any(String)); expect(indicator.getText()).toEqual(jasmine.any(String));
expect(indicator.getDescription()).toEqual(jasmine.any(String)); expect(indicator.getDescription()).toEqual(jasmine.any(String));
}); });

View File

@ -41,7 +41,6 @@ define([
{ {
"name": "Imagery", "name": "Imagery",
"key": "imagery", "key": "imagery",
"glyph": "ã",
"cssclass": "icon-image", "cssclass": "icon-image",
"template": imageryTemplate, "template": imageryTemplate,
"priority": "preferred", "priority": "preferred",

View File

@ -56,7 +56,6 @@ define([
{ {
"key": "layout", "key": "layout",
"name": "Display Layout", "name": "Display Layout",
"glyph": "\u004c",
"cssclass": "icon-layout", "cssclass": "icon-layout",
"type": "layout", "type": "layout",
"template": layoutTemplate, "template": layoutTemplate,
@ -66,7 +65,6 @@ define([
{ {
"key": "fixed", "key": "fixed",
"name": "Fixed Position", "name": "Fixed Position",
"glyph": "3",
"cssclass": "icon-telemetry-panel", "cssclass": "icon-telemetry-panel",
"type": "telemetry.panel", "type": "telemetry.panel",
"template": fixedTemplate, "template": fixedTemplate,
@ -142,7 +140,6 @@ define([
}, },
{ {
"property": "fill", "property": "fill",
"glyph": "",
"cssclass": "icon-paint-bucket", "cssclass": "icon-paint-bucket",
"title": "Fill color", "title": "Fill color",
"description": "Set fill color", "description": "Set fill color",
@ -150,7 +147,6 @@ define([
}, },
{ {
"property": "stroke", "property": "stroke",
"glyph": "â",
"cssclass": "icon-line-horz", "cssclass": "icon-line-horz",
"title": "Border color", "title": "Border color",
"description": "Set border color", "description": "Set border color",
@ -158,7 +154,6 @@ define([
}, },
{ {
"property": "color", "property": "color",
"glyph": "ä",
"cssclass": "icon-T", "cssclass": "icon-T",
"title": "Text color", "title": "Text color",
"description": "Set text color", "description": "Set text color",
@ -167,7 +162,6 @@ define([
}, },
{ {
"property": "url", "property": "url",
"glyph": "ã",
"cssclass": "icon-image", "cssclass": "icon-image",
"control": "dialog-button", "control": "dialog-button",
"title": "Image Properties", "title": "Image Properties",
@ -180,7 +174,6 @@ define([
}, },
{ {
"property": "text", "property": "text",
"glyph": "G",
"cssclass": "icon-gear", "cssclass": "icon-gear",
"control": "dialog-button", "control": "dialog-button",
"title": "Text Properties", "title": "Text Properties",
@ -193,7 +186,6 @@ define([
}, },
{ {
"method": "showTitle", "method": "showTitle",
"glyph": "ç",
"cssclass": "icon-two-parts-both", "cssclass": "icon-two-parts-both",
"control": "button", "control": "button",
"title": "Show title", "title": "Show title",
@ -201,7 +193,6 @@ define([
}, },
{ {
"method": "hideTitle", "method": "hideTitle",
"glyph": "å",
"cssclass": "icon-two-parts-one-only", "cssclass": "icon-two-parts-one-only",
"control": "button", "control": "button",
"title": "Hide title", "title": "Hide title",
@ -214,7 +205,6 @@ define([
{ {
"method": "remove", "method": "remove",
"control": "button", "control": "button",
"glyph": "Z",
"cssclass": "icon-trash", "cssclass": "icon-trash",
"title": "Delete", "title": "Delete",
"description": "Delete the selected item" "description": "Delete the selected item"
@ -284,7 +274,6 @@ define([
{ {
"key": "layout", "key": "layout",
"name": "Display Layout", "name": "Display Layout",
"glyph": "\u004c",
"cssclass": "icon-layout", "cssclass": "icon-layout",
"description": "Assemble other objects and components together into a reusable screen layout. Working in a simple canvas workspace, simply drag in the objects you want, position and size them. Save your design and view or edit it at any time.", "description": "Assemble other objects and components together into a reusable screen layout. Working in a simple canvas workspace, simply drag in the objects you want, position and size them. Save your design and view or edit it at any time.",
"priority": 900, "priority": 900,
@ -317,7 +306,6 @@ define([
{ {
"key": "telemetry.panel", "key": "telemetry.panel",
"name": "Telemetry Panel", "name": "Telemetry Panel",
"glyph": "t",
"cssclass": "icon-telemetry-panel", "cssclass": "icon-telemetry-panel",
"description": "A panel for collecting telemetry elements.", "description": "A panel for collecting telemetry elements.",
"priority": 899, "priority": 899,

View File

@ -36,7 +36,6 @@ define([
{ {
"key": "example.page", "key": "example.page",
"name": "Web Page", "name": "Web Page",
"glyph": "\u00ea",
"cssclass": "icon-page", "cssclass": "icon-page",
"description": "Embed a web page or web-based image in a resizeable window component. Can be added to Display Layouts. Note that the URL being embedded must allow iframing.", "description": "Embed a web page or web-based image in a resizeable window component. Can be added to Display Layouts. Note that the URL being embedded must allow iframing.",
"priority": 50, "priority": 50,

View File

@ -45,7 +45,6 @@ define([
{ {
"name": "Plot", "name": "Plot",
"key": "plot", "key": "plot",
"glyph": "6",
"cssclass": "icon-sine", "cssclass": "icon-sine",
"template": plotTemplate, "template": plotTemplate,
"needs": [ "needs": [

View File

@ -313,7 +313,7 @@ define(
/** /**
* Get the current mode that is applicable to this plot. This * Get the current mode that is applicable to this plot. This
* will include key, name, and glyph fields. * will include key, name, and cssclass fields.
*/ */
PlotController.prototype.getMode = function () { PlotController.prototype.getMode = function () {
return this.modeOptions.getMode(); return this.modeOptions.getMode();

View File

@ -27,14 +27,12 @@ define(
var STACKED = { var STACKED = {
key: "stacked", key: "stacked",
name: "Stacked", name: "Stacked",
glyph: "m",
cssclass: "icon-menu-hamburger", cssclass: "icon-menu-hamburger",
Constructor: PlotStackMode Constructor: PlotStackMode
}, },
OVERLAID = { OVERLAID = {
key: "overlaid", key: "overlaid",
name: "Overlaid", name: "Overlaid",
glyph: "6",
cssclass: "icon-sine", cssclass: "icon-sine",
Constructor: PlotOverlayMode Constructor: PlotOverlayMode
}; };
@ -117,7 +115,7 @@ define(
/** /**
* Get all mode options available for each plot. Each * Get all mode options available for each plot. Each
* mode contains a `name` and `glyph` field suitable * mode contains a `name` and `cssclass` field suitable
* for display in a template. * for display in a template.
* @return {Array} the available modes * @return {Array} the available modes
*/ */

View File

@ -36,7 +36,7 @@ define([
{ {
"key": "static.markup", "key": "static.markup",
"name": "Static Markup", "name": "Static Markup",
"glyph": "p", "cssclass": "icon-pencil",
"description": "Static markup sandbox", "description": "Static markup sandbox",
"features": [ "features": [
"creation" "creation"

View File

@ -60,7 +60,6 @@ define([
{ {
"key": "table", "key": "table",
"name": "Historical Telemetry Table", "name": "Historical Telemetry Table",
"glyph": "\ue604",
"cssclass": "icon-tabular", "cssclass": "icon-tabular",
"description": "A static table of all values over time for all included telemetry elements. Rows are timestamped data values for each telemetry element; columns are data fields. The number of rows is based on the range of your query. New incoming data must be manually re-queried for.", "description": "A static table of all values over time for all included telemetry elements. Rows are timestamped data values for each telemetry element; columns are data fields. The number of rows is based on the range of your query. New incoming data must be manually re-queried for.",
"priority": 861, "priority": 861,
@ -84,7 +83,6 @@ define([
{ {
"key": "rttable", "key": "rttable",
"name": "Real-time Telemetry Table", "name": "Real-time Telemetry Table",
"glyph": "\ue620",
"cssclass": "icon-tabular-realtime", "cssclass": "icon-tabular-realtime",
"description": "A scrolling table of latest values for all included telemetry elements. Rows are timestamped data values for each telemetry element; columns are data fields. New incoming data is automatically added to the view.", "description": "A scrolling table of latest values for all included telemetry elements. Rows are timestamped data values for each telemetry element; columns are data fields. New incoming data is automatically added to the view.",
"priority": 860, "priority": 860,
@ -129,7 +127,6 @@ define([
{ {
"name": "Historical Table", "name": "Historical Table",
"key": "table", "key": "table",
"glyph": "\ue604",
"cssclass": "icon-tabular", "cssclass": "icon-tabular",
"templateUrl": "templates/historical-table.html", "templateUrl": "templates/historical-table.html",
"needs": [ "needs": [
@ -141,7 +138,6 @@ define([
{ {
"name": "Real-time Table", "name": "Real-time Table",
"key": "rt-table", "key": "rt-table",
"glyph": "\ue620",
"cssclass": "icon-tabular-realtime", "cssclass": "icon-tabular-realtime",
"templateUrl": "templates/rt-table.html", "templateUrl": "templates/rt-table.html",
"needs": [ "needs": [

View File

@ -151,7 +151,6 @@ define([
{ {
"key": "timeline", "key": "timeline",
"name": "Timeline", "name": "Timeline",
"glyph": "\u0053",
"cssclass": "icon-timeline", "cssclass": "icon-timeline",
"description": "A time-oriented container that lets you enclose and organize other Timelines and Activities. The Timeline view provides both tabular and Gantt views as well as resource utilization graphing of Activities.", "description": "A time-oriented container that lets you enclose and organize other Timelines and Activities. The Timeline view provides both tabular and Gantt views as well as resource utilization graphing of Activities.",
"priority": 502, "priority": 502,
@ -195,7 +194,6 @@ define([
{ {
"key": "activity", "key": "activity",
"name": "Activity", "name": "Activity",
"glyph": "\u0061",
"cssclass": "icon-activity", "cssclass": "icon-activity",
"features": [ "features": [
"creation" "creation"
@ -242,7 +240,6 @@ define([
{ {
"key": "mode", "key": "mode",
"name": "Activity Mode", "name": "Activity Mode",
"glyph": "\u0041",
"cssclass": "icon-activity-mode", "cssclass": "icon-activity-mode",
"features": [ "features": [
"creation" "creation"
@ -283,7 +280,6 @@ define([
{ {
"key": "values", "key": "values",
"name": "Values", "name": "Values",
"glyph": "\u0041",
"cssclass": "icon-activity-mode", "cssclass": "icon-activity-mode",
"template": valuesTemplate, "template": valuesTemplate,
"type": "mode", "type": "mode",
@ -295,7 +291,6 @@ define([
{ {
"key": "timeline", "key": "timeline",
"name": "Timeline", "name": "Timeline",
"glyph": "\u0053",
"cssclass": "icon-timeline", "cssclass": "icon-timeline",
"type": "timeline", "type": "timeline",
"description": "A time-oriented container that lets you enclose and organize other Timelines and Activities. The Timeline view provides both tabular and Gantt views as well as resource utilization graphing of Activities.", "description": "A time-oriented container that lets you enclose and organize other Timelines and Activities. The Timeline view provides both tabular and Gantt views as well as resource utilization graphing of Activities.",
@ -307,19 +302,16 @@ define([
"items": [ "items": [
{ {
"method": "add", "method": "add",
"glyph": "\u002b",
"control": "menu-button", "control": "menu-button",
"text": "Add", "text": "Add",
"options": [ "options": [
{ {
"name": "Timeline", "name": "Timeline",
"glyph": "\u0053",
"cssclass": "icon-timeline", "cssclass": "icon-timeline",
"key": "timeline" "key": "timeline"
}, },
{ {
"name": "Activity", "name": "Activity",
"glyph": "\u0061",
"cssclass": "icon-activity", "cssclass": "icon-activity",
"key": "activity" "key": "activity"
} }
@ -330,14 +322,12 @@ define([
{ {
"items": [ "items": [
{ {
"glyph": "\u00e9",
"cssclass": "icon-plot-resource", "cssclass": "icon-plot-resource",
"description": "Graph Resource Utilization", "description": "Graph Resource Utilization",
"control": "button", "control": "button",
"method": "toggleGraph" "method": "toggleGraph"
}, },
{ {
"glyph": "icon-activity-mode",
"cssclass": "icon-activity-mode", "cssclass": "icon-activity-mode",
"control": "dialog-button", "control": "dialog-button",
"description": "Apply Activity Modes...", "description": "Apply Activity Modes...",
@ -351,7 +341,6 @@ define([
"property": "modes" "property": "modes"
}, },
{ {
"glyph": "\u00e8",
"cssclass": "icon-chain-links", "cssclass": "icon-chain-links",
"description": "Edit Activity Link", "description": "Edit Activity Link",
"title": "Activity Link", "title": "Activity Link",
@ -365,7 +354,6 @@ define([
"property": "link" "property": "link"
}, },
{ {
"glyph": "\u0047",
"cssclass": "icon-gear", "cssclass": "icon-gear",
"description": "Edit Properties...", "description": "Edit Properties...",
"control": "button", "control": "button",
@ -379,7 +367,6 @@ define([
"method": "remove", "method": "remove",
"description": "Remove Item", "description": "Remove Item",
"control": "button", "control": "button",
"glyph": "\u005a",
"cssclass": "icon-trash" "cssclass": "icon-trash"
} }
] ]

View File

@ -63,7 +63,6 @@ define(
// Prepare the structure for the button itself // Prepare the structure for the button itself
self.buttonStructure = {}; self.buttonStructure = {};
self.buttonStructure.glyph = structure.glyph;
self.buttonStructure.cssclass = structure.cssclass; self.buttonStructure.cssclass = structure.cssclass;
self.buttonStructure.name = structure.name; self.buttonStructure.name = structure.name;
self.buttonStructure.description = structure.description; self.buttonStructure.description = structure.description;

View File

@ -46,7 +46,7 @@ define(
); );
testStructure = { testStructure = {
name: "A Test", name: "A Test",
glyph: "T", cssclass: "icon-T",
description: "Test description", description: "Test description",
control: "dialog-button", control: "dialog-button",
title: "Test title", title: "Test title",
@ -83,7 +83,7 @@ define(
mockScope.$watch.mostRecentCall.args[1](testStructure); mockScope.$watch.mostRecentCall.args[1](testStructure);
buttonStructure = controller.getButtonStructure(); buttonStructure = controller.getButtonStructure();
expect(buttonStructure.glyph).toEqual(testStructure.glyph); expect(buttonStructure.cssclass).toEqual(testStructure.cssclass);
expect(buttonStructure.description).toEqual(testStructure.description); expect(buttonStructure.description).toEqual(testStructure.description);
expect(buttonStructure.name).toEqual(testStructure.name); expect(buttonStructure.name).toEqual(testStructure.name);
expect(buttonStructure.click).toEqual(jasmine.any(Function)); expect(buttonStructure.click).toEqual(jasmine.any(Function));