function init(basePath) {
    var action = new RGuiAction(qsTranslate("ToggleBlockVisibility", "&Toggle Visibility"), RMainWindowQt.getMainWindow());
    action.setRequiresDocument(true);
    action.setScriptFile(basePath + "/ToggleBlockVisibility.js");
    action.setDefaultShortcut(new QKeySequence("b,v"));
    action.setDefaultCommands(["blocktogglevisibility", "bv"]);
    action.setGroupSortOrder(14100);
    action.setSortOrder(100);
    action.setWidgetNames(["BlockMenu", "BlockToolBar", "BlockToolsPanel", "BlockMatrixPanel"]);
}
