classdef (Hidden) ModeSelectionOptionsDialog < mrtool.dialogs.AbstractOptionsDialog
    % Mode Selection Options Dialog of Model Reduction App
    
    % Author(s): Suat Gumussoy
    % Copyright 2015 The MathWorks, Inc.    
    
    methods
        function this = ModeSelectionOptionsDialog(ToolData,Anchor,ParentToolGroup)
            DialogName = 'ModeSelectionOptionsDialogTab';            
            this = this@mrtool.dialogs.AbstractOptionsDialog(ToolData,DialogName,Anchor,ParentToolGroup);        
        end             
    end
    methods (Access=protected)
        function Panel = createPanel(this)
            Panel = createPanel@mrtool.dialogs.AbstractOptionsDialog(this);
            mrtool.util.createTitledBorder(Panel,getString(message('Control:mrtool:ModeSelectionOptionsTitle')));                               
        end
        function connectUI(this)
            connectUI@mrtool.dialogs.AbstractOptionsDialog(this)
            if ~matlab.ui.internal.desktop.isMOTW            
                addlistener(this.Widgets.HelpButton,'ActionPerformed',@this.cbHelpActionPerformed);
            end
        end
        function cbHelpActionPerformed(this,~,~)
            mrtool.guiutil.mrToolHelp('ModelReducerModeSelectionOptions',true);
        end        
    end
end

