function simulink_menu_expand()
% include menu entry
cm  = sl_customization_manager;
cm.addCustomMenuFcn('Simulink:ToolsMenu', @getMenuItems);
end

function schemaFcns = getMenuItems(callbackInfo)
% add handler for menu
schemaFcns = {@getItem};
end

function schema = getItem(callbackInfo)
% definition menu and submenu handler
schema = sl_container_schema;
schema.label = 'Visard';
schema.childrenFcns = {@save, @options, @clear, @test_entry, @info_entry};
end

function schema = save(callbackInfo)
% definition menu item
schema = sl_action_schema;
schema.label = 'Save model';

%schema.callback = @pre_save_data;
schema.callback = @save_model;
end

function schema = clear(callbackInfo)
% definition menu item
schema = sl_action_schema;
schema.label = 'Clear signal names';
schema.callback = @clear_signals;
end

function clear_signals(callbackInfo)
% remove all signal names
clear_signal_names(gcs);
end

function schema = test_entry(callbackInfo)
% definition menu item
schema = sl_action_schema;
schema.label = '&Tests';
schema.callback = @test;
end

function test(callbackInfo)
% definition menu item
schema = sl_action_schema;
schema.label = '&Testing';
schema.callback = @testing;
end


function schema = info_entry(callbackInfo)
% definition menu item
schema = sl_action_schema;
schema.label = '&Info';
schema.callback = @info;
end

function info(callbackInfo)
global COPYRIGHT;
% info messages
msgbox('Developed from Daniel Ölschlegel for degree thesis', ...
    ['copyright Daniel Ölschlegel ' COPYRIGHT]);
end

function schema = options(callbackInfo)
% definition menu item
schema = sl_action_schema;
schema.label = '&Options';
schema.callback = @change_options;
end


