добавелно включение вкладок по конфигу

This commit is contained in:
2025-06-15 12:52:53 +03:00
parent edb22966ff
commit 058d3a00cf
2 changed files with 55 additions and 15 deletions

View File

@@ -1,14 +1,14 @@
classdef mcuPath
methods(Static)
%% GET PATH FROM PARAM
function path = get(paramName)
blockPath = gcb;
path = get_param(blockPath, paramName);
end
%% ADD PATH TO TABLE
function addSourceFileTable(targetParamName, message)
% Открываем проводник для выбора файлов
[files, pathstr] = uigetfile({ ...
@@ -61,6 +61,7 @@ classdef mcuPath
customtable.collect(targetParamName, oldTable);
end
%% ADD PATH TO EDIT
function addPath(targetParamName, message)
block = gcb;
@@ -91,6 +92,8 @@ classdef mcuPath
param.Value = rel;
end
%% GET PATH STRING
function absPath = getAbsolutePath(relPath)
% relativeToAbsolutePath преобразует относительный путь в абсолютный.
%
@@ -115,8 +118,6 @@ classdef mcuPath
end
end
function rel = absoluteToRelativePath(pathstr)
% absoluteToRelativePath преобразует абсолютный путь в относительный от текущей директории.
%
@@ -163,6 +164,5 @@ classdef mcuPath
end
end
end
end