Skip to content
Snippets Groups Projects
Commit be683221 authored by leprob001's avatar leprob001
Browse files

Adjusted temperature and pressure edit window.

parent a292371b
No related branches found
No related tags found
No related merge requests found
...@@ -35,84 +35,81 @@ set(gca, 'Position', [0.13 0.11 0.706 0.815]); ...@@ -35,84 +35,81 @@ set(gca, 'Position', [0.13 0.11 0.706 0.815]);
left = .85; left = .85;
width = .14; width = .14;
buttonHeight = .05; buttonHeight = .05;
buttonMarginLeftRight = .005;
artoaGui.editPressure.frameControls = uicontrol( ... artoaGui.editPressure.frameControls = uipanel( ...
'Style', 'Frame', ... 'Title', 'Data', ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'BackgroundColor', 'white', ... 'BackgroundColor', 'white', ...
'Position', [left .11 width .815] ... 'Position', [left .11 width .815] ...
); );
artoaGui.editPressure.frameHeadline = uicontrol( ...
'Style', 'Text', ...
'Units', 'normalized', ...
'FontSize', 8, ...
'BackgroundColor', 'white', ...
'Position', [(left+buttonMarginLeftRight) .85 (width-2*buttonMarginLeftRight) buttonHeight], ...
'String', 'Data' ...
);
artoaGui.editPressure.buttonPick = uicontrol( ... artoaGui.editPressure.buttonPick = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Pick', ... 'String', 'Pick', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .8 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .9 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.pressure.pickPolygon();' ... 'CallBack', 'artoa.controller.edit.pressure.pickPolygon();' ...
); );
artoaGui.editPressure.buttonApply = uicontrol( ... artoaGui.editPressure.buttonApply = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Apply', ... 'String', 'Apply', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .75 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .85 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.pressure.applyStatusToSelectedPoints(1);' ... 'CallBack', 'artoa.controller.edit.pressure.applyStatusToSelectedPoints(1);' ...
); );
artoaGui.editPressure.buttonDelete = uicontrol( ... artoaGui.editPressure.buttonDelete = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Delete', ... 'String', 'Delete', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .7 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .8 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.pressure.applyStatusToSelectedPoints(2);' ... 'CallBack', 'artoa.controller.edit.pressure.applyStatusToSelectedPoints(2);' ...
); );
artoaGui.editPressure.buttonReset = uicontrol( ... artoaGui.editPressure.buttonReset = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Reset', ... 'String', 'Reset', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .65 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .7 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.pressure.applyStatusToSelectedPoints(0);' ... 'CallBack', 'artoa.controller.edit.pressure.applyStatusToSelectedPoints(0);' ...
); );
artoaGui.editPressure.buttonApplyAll = uicontrol( ... artoaGui.editPressure.buttonApplyAll = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Apply all', ... 'String', 'Apply all', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .5 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .5 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.pressure.applyStatusToAllPointsExceptDeleted(1);' ... 'CallBack', 'artoa.controller.edit.pressure.applyStatusToAllPointsExceptDeleted(1);' ...
); );
artoaGui.editPressure.buttonResetAll = uicontrol( ... artoaGui.editPressure.buttonResetAll = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Reset all', ... 'String', 'Reset all', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .45 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .45 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.pressure.applyStatusToAllPointsExceptDeleted(0);' ... 'CallBack', 'artoa.controller.edit.pressure.applyStatusToAllPointsExceptDeleted(0);' ...
); );
artoaGui.editPressure.buttonReplot = uicontrol( ... artoaGui.editPressure.buttonReplot = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Replot', ... 'String', 'Replot', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .2 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .05 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.pressure.plot();' ... 'CallBack', 'artoa.controller.edit.pressure.plot();' ...
); );
......
...@@ -35,87 +35,83 @@ set(gca, 'Position', [0.13 0.11 0.706 0.815]); ...@@ -35,87 +35,83 @@ set(gca, 'Position', [0.13 0.11 0.706 0.815]);
left = .85; left = .85;
width = .14; width = .14;
buttonHeight = .05; buttonHeight = .05;
buttonMarginLeftRight = .005;
artoaGui.editTemperature.frameControls = uicontrol( ... artoaGui.editPressure.frameControls = uipanel( ...
'Style', 'Frame', ... 'Title', 'Data', ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'BackgroundColor', 'white', ... 'BackgroundColor', 'white', ...
'Position', [left .11 width .815] ... 'Position', [left .11 width .815] ...
); );
artoaGui.editTemperature.frameHeadline = uicontrol( ... artoaGui.editPressure.buttonPick = uicontrol( ...
'Style', 'Text', ... 'Parent', artoaGui.editPressure.frameControls, ...
'Units', 'normalized', ...
'FontSize', 8, ...
'BackgroundColor', 'white', ...
'Position', [(left+buttonMarginLeftRight) .85 (width-2*buttonMarginLeftRight) buttonHeight], ...
'String', 'Data' ...
);
artoaGui.editTemperature.buttonPick = uicontrol( ...
'String', 'Pick', ... 'String', 'Pick', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .8 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .9 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.temperature.pickPolygon();' ... 'CallBack', 'artoa.controller.edit.temperature.pickPolygon();' ...
); );
artoaGui.editTemperature.buttonApply = uicontrol( ... artoaGui.editPressure.buttonApply = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Apply', ... 'String', 'Apply', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .75 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .85 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.temperature.applyStatusToSelectedPoints(1);' ... 'CallBack', 'artoa.controller.edit.temperature.applyStatusToSelectedPoints(1);' ...
); );
artoaGui.editTemperature.buttonDelete = uicontrol( ... artoaGui.editPressure.buttonDelete = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Delete', ... 'String', 'Delete', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .7 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .8 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.temperature.applyStatusToSelectedPoints(2);' ... 'CallBack', 'artoa.controller.edit.temperature.applyStatusToSelectedPoints(2);' ...
); );
artoaGui.editTemperature.buttonReset = uicontrol( ... artoaGui.editPressure.buttonReset = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Reset', ... 'String', 'Reset', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .65 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .7 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.temperature.applyStatusToSelectedPoints(0);' ... 'CallBack', 'artoa.controller.edit.temperature.applyStatusToSelectedPoints(0);' ...
); );
artoaGui.editTemperature.buttonApplyAll = uicontrol( ... artoaGui.editPressure.buttonApplyAll = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Apply all', ... 'String', 'Apply all', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .5 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .5 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.temperature.applyStatusToAllPointsExceptDeleted(1);' ... 'CallBack', 'artoa.controller.edit.temperature.applyStatusToAllPointsExceptDeleted(1);' ...
); );
artoaGui.editTemperature.buttonResetAll = uicontrol( ... artoaGui.editPressure.buttonResetAll = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Reset all', ... 'String', 'Reset all', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .45 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .45 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.temperature.applyStatusToAllPointsExceptDeleted(0);' ... 'CallBack', 'artoa.controller.edit.temperature.applyStatusToAllPointsExceptDeleted(0);' ...
); );
artoaGui.editTemperature.buttonReplot = uicontrol( ... artoaGui.editPressure.buttonReplot = uicontrol( ...
'Parent', artoaGui.editPressure.frameControls, ...
'String', 'Replot', ... 'String', 'Replot', ...
'Style', 'PushButton', ... 'Style', 'PushButton', ...
'FontSize', 8, ... 'FontSize', 8, ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [(left+buttonMarginLeftRight) .2 (width-2*buttonMarginLeftRight) buttonHeight], ... 'Position', [.156 .05 .69 buttonHeight], ...
'CallBack', 'artoa.controller.edit.temperature.plot();' ... 'CallBack', 'artoa.controller.edit.temperature.plot();' ...
); );
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment