добавелно включение вкладок по конфигу
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user