Clarify GUIDE helper names

Agent-Logs-Url: https://github.com/kk14222/3D_EDFM_SIM-X/sessions/a128ab7f-6b94-4048-a847-f2dc37bbe0ab

Co-authored-by: kk14222 <217880052+kk14222@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-28 03:36:55 +00:00
committed by GitHub
co-authored by kk14222
parent 421696c5e0
commit 0018b44cea
3 changed files with 17 additions and 13 deletions
@@ -10,7 +10,7 @@ handles.UIFigure = fig;
handles.TemplateDropDown = uicontrol('Parent', fig, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [18 774 120 22], ...
'String', {'', ''}, 'Value', 1, 'Tag', 'TemplateDropDown');
setGuidePopupValue(handles.TemplateDropDown, '');
setPopupDefaultValue(handles.TemplateDropDown, '');
handles.LoadTemplateButton = uicontrol('Parent', fig, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [177 774 94 23], ...
'String', 'Load Template', 'Tag', 'LoadTemplateButton');
@@ -42,14 +42,14 @@ handles.GridModelDropDownLabel = uicontrol('Parent', handles.ModelTab, 'Style',
handles.ModelGridModelDropDown = uicontrol('Parent', handles.ModelTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [137 630 100 22], ...
'String', {'1', '2', '', ''}, 'Value', 1, 'Tag', 'ModelGridModelDropDown');
setGuidePopupValue(handles.ModelGridModelDropDown, '');
setPopupDefaultValue(handles.ModelGridModelDropDown, '');
handles.FlowModelDropDownLabel = uicontrol('Parent', handles.ModelTab, 'Style', 'text', 'Units', 'pixels', 'Position', [67 566 63 22], ...
'String', 'FlowModel', 'HorizontalAlignment', 'right', 'Tag', 'FlowModelDropDownLabel');
handles.ModelFlowModelDropDown = uicontrol('Parent', handles.ModelTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [145 566 100 22], ...
'String', {'1', '2', '3'}, 'Value', 1, 'Tag', 'ModelFlowModelDropDown');
setGuidePopupValue(handles.ModelFlowModelDropDown, '1');
setPopupDefaultValue(handles.ModelFlowModelDropDown, '1');
handles.GridTab = uitab('Parent', handles.TabGroup, 'Title', 'Grid', 'Tag', 'GridTab');
@@ -346,7 +346,7 @@ handles.oil_modelLabel = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text
handles.OWoil_modelDropDown = uicontrol('Parent', handles.OilWaterTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [121 205 100 22], ...
'String', {''}, 'Value', 1, 'Tag', 'OWoil_modelDropDown');
setGuidePopupValue(handles.OWoil_modelDropDown, '');
setPopupDefaultValue(handles.OWoil_modelDropDown, '');
handles.MultiComponentTab = uitab('Parent', handles.TabGroup2, 'Title', 'MultiComponent', 'Tag', 'MultiComponentTab');
@@ -630,7 +630,7 @@ handles.SelectedFractureWellLabel = uicontrol('Parent', handles.WellsTab, 'Style
handles.SelectedFracWellDropDown = uicontrol('Parent', handles.WellsTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [864 464 70 22], ...
'String', {''}, 'Value', 1, 'Tag', 'SelectedFracWellDropDown');
setGuidePopupValue(handles.SelectedFracWellDropDown, '');
setPopupDefaultValue(handles.SelectedFracWellDropDown, '');
handles.SolverRunTab = uitab('Parent', handles.TabGroup, 'Title', 'Solver&Run', 'Tag', 'SolverRunTab');
@@ -703,28 +703,28 @@ handles.PlotLayerDropDownLabel = uicontrol('Parent', handles.ResultsTab, 'Style'
handles.PlotLayerDropDown = uicontrol('Parent', handles.ResultsTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [86 224 78 22], ...
'String', {''}, 'Value', 1, 'Tag', 'PlotLayerDropDown');
setGuidePopupValue(handles.PlotLayerDropDown, '');
setPopupDefaultValue(handles.PlotLayerDropDown, '');
handles.PlotPropertyDropDownLabel = uicontrol('Parent', handles.ResultsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [8 182 71 22], ...
'String', 'PlotProperty', 'HorizontalAlignment', 'right', 'Tag', 'PlotPropertyDropDownLabel');
handles.PlotPropertyDropDown = uicontrol('Parent', handles.ResultsTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [94 182 68 22], ...
'String', {''}, 'Value', 1, 'Tag', 'PlotPropertyDropDown');
setGuidePopupValue(handles.PlotPropertyDropDown, '');
setPopupDefaultValue(handles.PlotPropertyDropDown, '');
handles.PlotMetricDropDownLabel = uicontrol('Parent', handles.ResultsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [5 97 58 22], ...
'String', 'PlotMetric', 'HorizontalAlignment', 'right', 'Tag', 'PlotMetricDropDownLabel');
handles.PlotMetricDropDown = uicontrol('Parent', handles.ResultsTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [78 97 86 22], ...
'String', {''}, 'Value', 1, 'Tag', 'PlotMetricDropDown');
setGuidePopupValue(handles.PlotMetricDropDown, '');
setPopupDefaultValue(handles.PlotMetricDropDown, '');
handles.PlotWellDropDownLabel = uicontrol('Parent', handles.ResultsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [12 139 49 22], ...
'String', 'PlotWell', 'HorizontalAlignment', 'right', 'Tag', 'PlotWellDropDownLabel');
handles.PlotWellDropDown = uicontrol('Parent', handles.ResultsTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [76 139 87 22], ...
'String', {''}, 'Value', 1, 'Tag', 'PlotWellDropDown');
setGuidePopupValue(handles.PlotWellDropDown, '');
setPopupDefaultValue(handles.PlotWellDropDown, '');
handles.PlotTimeStepSlider = uicontrol('Parent', handles.ResultsTab, 'Style', 'slider', 'Units', 'pixels', 'Position', [15 578 150 3], ...
'Min', 0, 'Max', 100, 'Value', 0, 'Tag', 'PlotTimeStepSlider');
@@ -748,7 +748,7 @@ zlabel(handles.ResultAxes, 'Z');
set(fig, 'Visible', 'on');
end
function setGuidePopupValue(handleObj, value)
function setPopupDefaultValue(handleObj, value)
items = get(handleObj, 'String');
if ischar(items), items = cellstr(items); end
idx = find(strcmp(items, char(string(value))), 1);