Improving User Preferences dialog
This commit is contained in:
parent
44fa8f0e21
commit
06fe7f0da7
@ -15,6 +15,7 @@
|
||||
<div class="form-buttons clearfix">
|
||||
{{#button class='btn btn-danger pull-left' action='resetDefaults'}}Reset to Defaults{{/button}}
|
||||
{{#button class='btn btn-primary pull-right' action='save'}}Save{{/button}}
|
||||
{{#button class='btn btn-default pull-right m-r-1' tagAttributes=(extend '' data-dismiss='modal')}}Cancel{{/button}}
|
||||
</div>
|
||||
{{/form}}
|
||||
</template>
|
||||
|
||||
@ -17,7 +17,8 @@ Template.hotkeysForm.onCreated(() => {
|
||||
resetDefaults() {
|
||||
const { contextName } = instance.data;
|
||||
const dialogOptions = {
|
||||
title: 'Reset Shortcuts to Default',
|
||||
class: 'themed',
|
||||
title: 'Reset Keyboard Shortcuts',
|
||||
message: 'Are you sure you want to reset all the shortcuts to their defaults?'
|
||||
};
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-right p-r-1">Function</th>
|
||||
<th>Shortcut</th>
|
||||
<th class="text-center">Shortcut</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
<tr>
|
||||
<th class="p-x-1 text-center">Preset</th>
|
||||
<th class="p-x-1">Description</th>
|
||||
<th class="p-x-1">Window Level (WL)</th>
|
||||
<th class="p-x-1">Window Width (WW)</th>
|
||||
<th class="p-x-1">Window</th>
|
||||
<th class="p-x-1">Level</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -15,8 +15,8 @@
|
||||
{{#group base='baseTr' key=(concat @index)}}
|
||||
<td class="p-x-1 text-center">{{sum @index 1}}</td>
|
||||
<td class="p-x-1">{{>inputText key='id' value=presetInputInformation.id}}</td>
|
||||
<td class="p-x-1">{{>inputText key='wc' value=(filterNaN presetInputInformation.wc) dataType='Number'}}</td>
|
||||
<td class="p-x-1">{{>inputText key='ww' value=(filterNaN presetInputInformation.ww) dataType='Number'}}</td>
|
||||
<td class="p-x-1">{{>inputText key='wc' value=(filterNaN presetInputInformation.wc) dataType='Number'}}</td>
|
||||
{{/group}}
|
||||
{{/each}}
|
||||
</tbody>
|
||||
|
||||
@ -15,7 +15,8 @@ Template.windowLevelPresetsForm.onCreated(() => {
|
||||
|
||||
resetDefaults() {
|
||||
const dialogOptions = {
|
||||
title: 'Reset Window Level Presets to Default',
|
||||
class: 'themed',
|
||||
title: 'Reset Window/Levels Presets',
|
||||
message: 'Are you sure you want to reset all the window level presets to their defaults?'
|
||||
};
|
||||
|
||||
|
||||
@ -107,7 +107,7 @@ Meteor.startup(function() {
|
||||
|
||||
// Register the tool switching commands
|
||||
registerToolCommands({
|
||||
wwwc: 'Window W/L',
|
||||
wwwc: 'W/L',
|
||||
zoom: 'Zoom',
|
||||
angle: 'Angle Measurement',
|
||||
dragProbe: 'Pixel Probe',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user