Skip to content

Commit f35be3b

Browse files
utkarshayachitkwrobot
authored andcommitted
Merge topic 'pvweb-merge-sources-filters'
8b6898f Merged sources and filters to make more room for the save data button.
2 parents 5a39421 + 8b6898f commit f35be3b

File tree

3 files changed

+43
-10
lines changed

3 files changed

+43
-10
lines changed

Web/Applications/Visualizer/www/index.html

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@
2929
class='vtk-icon-doc-text clickable padding inspector-selector' data-type='files' data-toggle='tooltip' data-placement='bottom' title='Show File List'>
3030
</span>
3131
<span
32-
class='vtk-icon-plus clickable padding inspector-selector' data-type='sources' data-toggle='tooltip' data-placement='bottom' title='Show Sources'>
33-
</span>
34-
<span
35-
class='vtk-icon-filter clickable padding inspector-selector need-input-source' data-type='filters' data-toggle='tooltip' data-placement='bottom' title='Show Filters'>
32+
class='vtk-icon-plus clickable padding inspector-selector' data-type='sources' data-toggle='tooltip' data-placement='bottom' title='Show Sources/Filters'>
3633
</span>
3734
<span
3835
class='vtk-icon-info-1 clickable padding inspector-selector need-input-source' data-type='info' data-toggle='tooltip' data-placement='bottom' title='Show Data Info'>
@@ -78,9 +75,7 @@
7875
<div class="row inspector" data-type="sources">
7976
<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12 pv-source-list nopadding'>
8077
</div>
81-
</div>
82-
<div class="row inspector" data-type="filters">
83-
<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12 pv-filter-list nopadding'>
78+
<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12 pv-filter-list nopadding need-input-source'>
8479
</div>
8580
</div>
8681
<div class="row inspector" data-type="info">
@@ -90,7 +85,10 @@
9085
<div class="row inspector" data-type="preferences">
9186
<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12 pv-preferences'>
9287
<div class="row" style='margin-top: 15px;'>
93-
<label class='col-sm-5 control-label'>Rendering</label>
88+
<label class='col-sm-5 control-label'
89+
data-toggle='tooltip'
90+
data-placement='right'
91+
title='Select rendering mode'>Rendering</label>
9492
<div class='col-sm-5'>
9593
<select class='pv-update-viewport' data-property-name='ActiveRendererType'>
9694
<option value='image'>Remote</option>
@@ -100,11 +98,24 @@
10098
</div>
10199
</div>
102100
<div class="row">
103-
<label class='col-sm-5 control-label'>Rendering statistics</label>
101+
<label class='col-sm-5 control-label'
102+
data-toggle='tooltip'
103+
data-placement='right'
104+
title='Toggle local rendering statistics'>Statistics</label>
104105
<div class='col-sm-5'>
105106
<input type='checkbox' class='pv-update-viewport checkbox' data-property-name='Stats'/>
106107
</div>
107108
</div>
109+
<div class="row">
110+
<label class='col-sm-5 control-label'
111+
data-toggle='tooltip'
112+
data-placement='right'
113+
title='Shutdown server process when leaving page'>Auto&nbsp;shutdown</label>
114+
<div class='col-sm-5'>
115+
<input type='checkbox' class='pv-update-viewport checkbox' data-property-name='CloseBehavior' checked/>
116+
</div>
117+
</div>
118+
<div class="row" style="height: 15px;"><br/></div>
108119
</div>
109120
<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12 pv-global-settings-editor'>
110121
</div>
@@ -169,6 +180,7 @@
169180
sessionManagerURL: vtkWeb.properties.sessionManagerURL,
170181
application: "visualizer"
171182
},
183+
reallyStop = true,
172184
stop = vtkWeb.NoOp,
173185
start = function(connection) {
174186
$('.app-wait-start-page').remove();
@@ -183,7 +195,9 @@
183195

184196
// Update stop method to use the connection
185197
stop = function() {
186-
connection.session.call('application.exit');
198+
if (reallyStop === true) {
199+
connection.session.call('application.exit');
200+
}
187201
}
188202
};
189203

Web/Applications/Visualizer/www/main.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44
.fix-height { position: relative; top: 0; left: 0; }
55
.pv-time-input { position: relative; top: 2px; width: 80px; border: solid 1px white; background: none; padding: 2px 10px; }
66

7+
/* ---- Sources/Filters Icons ---- */
8+
9+
.pv-source-list ul, .pv-filter-list ul {
10+
margin-bottom: 0;
11+
}
12+
.pvActionList li:before {
13+
font-family: "fontello";
14+
width: 16px;
15+
display: inline-block;
16+
}
17+
.pv-source-list li:before { content: '\e94e'; }
18+
.pv-filter-list li:before { content: '\e81c'; }
19+
720
/* ---- Font - colors - Cursor ----- */
821

922
.clickable { cursor: pointer; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; }

Web/Applications/Visualizer/www/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@
211211
viewport.invalidateScene();
212212
} else if(propName === 'Stats') {
213213
viewport.showStatistics(value === 1);
214+
} else if(propName === 'CloseBehavior') {
215+
if(value === 1) {
216+
reallyStop = true;
217+
} else {
218+
reallyStop = false;
219+
}
214220
}
215221
});
216222
}

0 commit comments

Comments
 (0)