Commit b6f86225 authored by Sebastien Jourdain's avatar Sebastien Jourdain Committed by Code Review

Merge topic 'catalyst-web-estimate' into master

794807f6 Add cost estimate for Catalyst Web
parents e112ba8f 794807f6
......@@ -28,6 +28,7 @@ set(lib_js_min_files
)
set(widgets_js_min_files
"${widgets_source_dir}/CatalystBrowser/vtkweb-widget-catalyst-analysis-cost-estimate.js"
"${widgets_source_dir}/CatalystBrowser/vtkweb-widget-catalyst-analysis-cost.js"
"${widgets_source_dir}/CatalystBrowser/vtkweb-widget-catalyst-analysis-bench.js"
"${widgets_source_dir}/CatalystBrowser/vtkweb-widget-catalyst-viewer.js"
......@@ -41,6 +42,7 @@ set(widgets_js_min_files
"${widgets_source_dir}/TreeWidget/vtkweb-widget-tree.js"
)
set(widgets_css_min_files
"${widgets_source_dir}/CatalystBrowser/vtkweb-widget-catalyst-analysis-cost-estimate.css"
"${widgets_source_dir}/CatalystBrowser/vtkweb-widget-catalyst-analysis-cost.css"
"${widgets_source_dir}/CatalystBrowser/vtkweb-widget-catalyst-analysis-bench.css"
"${widgets_source_dir}/CatalystBrowser/vtkweb-widget-catalyst-viewer.css"
......
.vtkweb-catalyst-analysis .estimate-content {
margin-top: 10px;
}
.vtkweb-catalyst-analysis .estimate-content select {
position: relative;
right: 0px;
width: 50%;
}
.vtkweb-catalyst-analysis .estimate-content li {
line-height: 2em;
}
.vtkweb-catalyst-analysis .estimate-content div.label {
position: relative;
width: 40%;
margin-right: 10px;
display: inline-block;
}
.vtkweb-catalyst-analysis .estimate-content div.label > .value {
position: absolute;
right: 5px;
}
.vtkweb-catalyst-analysis .estimate-content input[type='range'] {
position: relative;
left: -8px;
top: 3px;
width: 50%;
}
.vtkweb-catalyst-analysis .estimate-content input[type='text'] {
position: relative;
width: 50%;
}
.vtkweb-catalyst-analysis .estimate-content input[type='text'].half {
position: relative;
width: 22%;
}
.vtkweb-catalyst-analysis .estimate-content ul {
list-style: none;
}
.vtkweb-catalyst-analysis .estimate-content .input {
position: relative;
float: left;
clear: left;
width: 45%;
padding: 10px;
margin: 10px 0;
margin-left: 1.5%;
border-radius: 5px;
border: solid 1px black;
}
.vtkweb-catalyst-analysis .estimate-content .input.right {
float: right;
margin: 10px 0;
margin-right: 1.5%;
}
.vtkweb-catalyst-analysis .estimate-content .title {
position: absolute;
top: -0.8em;
left: 10px;
background: white;
font-weight: bold;
padding: 0 5px;
}
.vtkweb-catalyst-analysis .estimate-content .output {
clear: both;
position: relative;
width: 96%;
padding: 10px;
margin: 0px auto;
border-radius: 5px;
border: solid 1px black;
top: 20px;
}
\ No newline at end of file
(function ($, GLOBAL) {
var TOOLBAR_TEMPLATE = '<ul class=toolbar-main><li class="logo"/><li class="vtk-icon-menu-1 toggle-button run-button" data-animation="left" data-group=runs data-view="run-content">Runs</li><li class="vtk-icon-info-1 toggle-button need-project default-toggle" data-group="content" data-view="info-content" alt="Toggle Informations" title="Toggle Informations"/><li class="vtk-icon-th toggle-button need-project" data-group=content data-view="bench-content" alt="Toggle Exploration" title="Toggle Exploration"/><li class="vtk-icon-beaker toggle-button need-project" data-group=content data-view="search-content" alt="Toggle Search" title="Toggle Search"/><li class="vtk-icon-dollar toggle-button need-project" data-group=content data-view="cost-content" alt="Toggle Cost" title="Toggle Cost"/><li class="vtk-icon-user-add-1 toggle-button need-project right" data-group=content data-view="share-content" alt="Share active project" title="Share active project"/></ul><ul class="toggle-content run-content" data-group=runs></ul><div class="info-content toggle-content" data-group=content></div><div class="bench-content toggle-content" data-group="content"></div><div class="search-content toggle-content" data-group=content></div><div class="cost-content toggle-content" data-group="content"></div><div class="share-content toggle-content" data-group="content">The current version does not support user management.</div>',
var TOOLBAR_TEMPLATE = '<ul class=toolbar-main><li class="logo"/><li class="vtk-icon-menu-1 toggle-button run-button" data-animation="left" data-group=runs data-view="run-content">Runs</li><li class="vtk-icon-info-1 toggle-button need-project default-toggle" data-group="content" data-view="info-content" alt="Toggle Informations" title="Toggle Informations"/><li class="vtk-icon-th toggle-button need-project" data-group=content data-view="bench-content" alt="Toggle Exploration" title="Toggle Exploration"/><li class="vtk-icon-beaker toggle-button need-project" data-group=content data-view="search-content" alt="Toggle Search" title="Toggle Search"/><li class="vtk-icon-dollar toggle-button need-project" data-group=content data-view="cost-content" alt="Toggle Cost" title="Toggle Cost"/><li class="vtk-icon-gauge-1 toggle-button right" data-group=content data-view="estimate-content" alt="Data exploration cost estimate" title="Data exploration cost estimate"/><li class="vtk-icon-user-add-1 toggle-button need-project right" data-group=content data-view="share-content" alt="Share active project" title="Share active project"/></ul><ul class="toggle-content run-content" data-group=runs></ul><div class="info-content toggle-content" data-group=content></div><div class="bench-content toggle-content" data-group="content"></div><div class="search-content toggle-content" data-group=content></div><div class="cost-content toggle-content" data-group="content"></div><div class="share-content toggle-content" data-group="content">The current version does not support user management.</div><div class="estimate-content toggle-content" data-group="content">COST ESTIMATE</div>',
RUN_LINE_TEMPLATE = '<li class=select-run data-path=PATH>TITLE<i class=help>DESCRIPTION</i></li>',
TABLE_LINE_TEMPLATE = '<tr><td class="key">KEY</td><td class="value">VALUE</td></tr>';
......@@ -143,6 +143,9 @@
// Attach interaction listeners
initializeListeners(me);
// Add general purpose cost estimate
$('.estimate-content',me).vtkCatalystAnalysisCostEstimate();
},
error: function(error) {
console.log("error when trying to download " + dataBasePath + '/info.json');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment