Add GUIDE-compatible simulator shell

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:33:45 +00:00
committed by GitHub
co-authored by kk14222
parent 771d57e7d0
commit dd42a8f138
7 changed files with 1244 additions and 9 deletions
+33
View File
@@ -0,0 +1,33 @@
classdef EDFMGuideApp < dynamicprops
%EDFMGUIDEAPP App-like container used by the GUIDE implementation.
properties
Controller EDFMAppController
end
methods
function obj = EDFMGuideApp(handles)
names = fieldnames(handles);
for i = 1:numel(names)
name = names{i};
if isprop(obj, name)
obj.(name) = obj.wrapHandle(name, handles.(name));
else
addprop(obj, name);
obj.(name) = obj.wrapHandle(name, handles.(name));
end
end
end
end
methods (Access = private)
function value = wrapHandle(~, name, handleObj)
if strcmp(name, 'UIFigure') || isa(handleObj, 'matlab.ui.container.TabGroup') || ...
isa(handleObj, 'matlab.ui.container.Tab') || isa(handleObj, 'matlab.graphics.axis.Axes')
value = handleObj;
else
value = EDFMGuideComponent(handleObj);
end
end
end
end