function edasTab = getTabDialogSchema(this, schemaName, hdlcc) %#ok
%GETTABDIALOGSCHEMA Get the tabDialogSchema.

% Author(s): P. Costa, J. Sun
% Copyright 2005-2023 The MathWorks, Inc.
%

tagpf = [getWidgetTagPrefix(this),'EDAScript_'];

standalone = isa(hdlcc, 'hdlcoderprops.CLI');
enableWidget = true;
if standalone
src = hdlcc;
else
% For standalone dialog
src = hdlcc.getCLI;
cs = hdlcc.getSourceObject.getConfigSet;
enableWidget = strcmpi(cs.ReadOnly, 'off');
end

% Get the pixel unit
pf = hdlcoderui.getpixunit;
minimumSize = [100 40]*pf;
% StandaloneMinimumSize = [100 60]*pf;
% AttachedMinimumSize = [100 10]*pf;

[items, currRow] = getSharedWidgets(this, src, minimumSize, 1, tagpf);

currRow = 7;
spacer1.Type = 'panel';
% spacer1.Name = '';
spacer1.RowSpan = [currRow currRow];
spacer1.ColSpan = [1 4];

if ~standalone
edasTab.Name = DAStudio.message('HDLShared:hdldialog:hdledasGroupName');
edasTab.Enabled = enableWidget;

%% CSHTAG
edasTab.Tag = [getWidgetTagPrefix(this),'EDAScriptPanel'];
end

currRow = currRow+1;
% spacer.Type = 'panel';
% spacer.RowSpan = [currRow currRow];
% spacer.ColSpan = [1 4];

edasTab.Items = [items];
edasTab.LayoutGrid = [currRow 4];
% edasTab.RowStretch = [zeros(1, currRow-1) 1];
edasTab.RowStretch = [zeros(1, currRow-1) 1];%[0 0 ones(1, currRow-2)];
edasTab.ColStretch = [0 0 0 1];

% [EOF]