function init(basePath) {
    var action = new RGuiAction(qsTranslate("SelectAll", "Select &All"), RMainWindowQt.getMainWindow());
    action.setRequiresDocument(true);
    action.setScriptFile(basePath + "/SelectAll.js");
    action.setStatusTip(qsTranslate("SelectAll", "Select all visible entities"));
    action.setDefaultShortcuts([
        new QKeySequence("t,a"),
        new QKeySequence(QKeySequence.SelectAll)
    ]);
    action.setDefaultCommands(["selectall", "ta"]);
    action.setNoState();
    action.setGroupSortOrder(4100);
    action.setSortOrder(200);
    action.setWidgetNames(["SelectMenu", "SelectToolBar", "SelectToolsPanel", "SelectMatrixPanel"]);
}
