Commit 5585dd87 authored by kh1's avatar kh1 Committed by Karsten Heimrich
Browse files

Add option to hide folder and file actions.



Change-Id: I51abb1eaae27370a714b8331bd9b2a4d36446674
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent dea70b5e
......@@ -2687,6 +2687,8 @@ void ProjectExplorerPlugin::updateContextMenuActions()
d->m_addExistingFilesAction->setVisible(true);
d->m_addExistingDirectoryAction->setVisible(true);
d->m_addNewFileAction->setVisible(true);
d->m_addNewSubprojectAction->setVisible(true);
d->m_removeFileAction->setVisible(true);
d->m_deleteFileAction->setVisible(true);
d->m_runActionContextMenu->setVisible(false);
......@@ -2751,6 +2753,18 @@ void ProjectExplorerPlugin::updateContextMenuActions()
d->m_showInGraphicalShell->setVisible(false);
d->m_searchOnFileSystem->setVisible(false);
}
if (actions.contains(ProjectExplorer::HideFileActions)) {
d->m_deleteFileAction->setVisible(false);
d->m_removeFileAction->setVisible(false);
}
if (actions.contains(ProjectExplorer::HideFolderActions)) {
d->m_addNewFileAction->setVisible(false);
d->m_addNewSubprojectAction->setVisible(false);
d->m_addExistingFilesAction->setVisible(false);
d->m_addExistingDirectoryAction->setVisible(false);
}
}
}
......
......@@ -89,6 +89,8 @@ enum ProjectAction {
Rename,
// hides actions that use the path(): Open containing folder, open terminal here and Find in Directory
HidePathActions,
HideFileActions,
HideFolderActions,
HasSubProjectRunConfigurations
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment