function curPage = hdlHelp(subPage)
%HDLHELP   

%   Author(s): J. Sun
%   Copyright 2006-2018 The MathWorks, Inc.
%     

if isempty(subPage)
    curPage = 'General';
else
    switch strtok(subPage,'/')
        case DAStudio.message('HDLShared:hdldialog:hdltgtComponentName')
            curPage = 'Target';
        case DAStudio.message('HDLShared:hdldialog:hdloptComponentName')
            curPage = 'Optimization';
        case DAStudio.message('HDLShared:hdldialog:hdlfptComponentName')
            curPage = 'Floating Point';
        case DAStudio.message('HDLShared:hdldialog:hdlglblsettingsComponentName')
            curPage = 'Global Settings';
        case DAStudio.message('HDLShared:hdldialog:hdlrptComponentName')
            curPage = 'Report';
        case DAStudio.message('HDLShared:hdldialog:hdltbComponentName')
            curPage = 'Test Bench';
        case DAStudio.message('HDLShared:hdldialog:hdledasGroupName')
            curPage = 'EDA Tool Scripts';
        otherwise % ModelExplorer does not use localized strings, instead it always pass English strings.
            curPage = subPage;
    end
end

switch curPage
    case 'General'
        curPage = 'Tag_ConfigSet_HDLCoder_GeneralPanel';
    case 'Target'
        curPage = 'ConfigSet_HDLCoder_TgtSettingsPanel';
    case 'Optimization'
        curPage = 'ConfigSet_HDLCoder_OptSettingsPanel';
    case 'Floating Point'
        curPage = 'ConfigSet_HDLCoder_FloatingPointPanel';
    case 'Global Settings'
        curPage = 'ConfigSet_HDLCoder_GlobalSettingsPanel';
    case 'Report'
        curPage = 'ConfigSet_HDLCoder_ReportPanel';
    case 'Test Bench'
        curPage = 'ConfigSet_HDLCoder_TestBenchPanel';
    case 'EDA Tool Scripts'
        curPage = 'ConfigSet_HDLCoder_EDAScriptPanel';
end

% [EOF]
