otsdaq_utilities  v2_05_02_indev
widgetLibrary.js
1 //=====================================================================================
2 //
3 // Created Aug, 2016
4 // by Daniel Parilla ((parilla at fnal.gov))
5 //
6 // OtsConfigurationWizard.js
7 //
8 //
9 //
10 //
11 //
12 //
13 //=====================================================================================
14 var widgetLibrary = widgetLibrary || {};
15 widgetLibrary.typeToSrc = {
16  "0" :"widget_text.html",
17  //"1" :"widget_basicDisplay.html",
18  //"1" :"timeseries_widget.html",
19  //"1" :"widget_text_with_title.html",
20  "1" :"table.html",
21  "2" :"gauge_widget.html",
22  //"3" :"simple_bar_chart.html",
23  "3" :"plotly_bar_chart.html",
24  "4" :"thermometer.html",
25  "5" :"siren_alarm.html",
26  "6" :"label.html",
27  "7" :"led.html",
28  "8" :"picture.html",
29  "9" :"root_visualizer.html"
30  }
31 
32 widgetLibrary.typeToImgSrc = {
33  "0" :"txt-icon.png",
34  //"1" :"digital-clock-icon.png",
35  "1" :"table-icon.png",
36  "2" :"gauge-icon.png",
37  "3" :"basic-chart-icon.png",
38  "4" :"thermometer-icon.png" ,
39  "5" :"red_siren.png",
40  "6" :"label-icon.png",
41  "7" :"led-icon.png",
42  "8" :"picture-icon.png",
43  "9" :"root-icon.png"
44  }
45 
46 widgetLibrary.typeToName = {
47  "0" : "Plain Text",
48  //"1" : "Basic Display as a digital clock",
49  //"1" : "Basic Timeseries Display",
50  "1" : "Basic PVs Table",
51  "2" : "Basic Gauge Style Display",
52  "3" : "Basic Line Chart",
53  "4" : "Basic Thermometer",
54  "5" : "Basic Siren Alarm",
55  "6" : "Basic Label for widgets",
56  "7" : "Basic Led",
57  "8" : "Basic picture",
58  "9" : "Basic Root file viewer"
59  }
60 
61 widgetLibrary.typeToPurpose = {
62  "0" : "Plain Text",
63  //"1" : "Timeseries",
64  "1" : "PVs Table",
65  "2" : "Gauge",
66  "3" : "Chart",
67  "4" : "Thermometer",
68  "5" : "Siren Alarm",
69  "6" : "Label widgets",
70  "7" : "Led",
71  "8" : "Picture",
72  "9" : "Root file"
73  }
74 
75 widgetLibrary.dimensions = {
76  "3": {
77  "X": "300",
78  "Y": "200",
79  "Scale": "True"
80  },
81  "8": {
82  "X": "300",
83  "Y": "300",
84  "Scale": "True"
85  }
86  }
87 
88 widgetLibrary.init = function()
89 {
90 
91 }