From 8ed362fda74d5b7b6bbde3272522ca3a29f9d728 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 29 May 2016 12:32:53 +0200 Subject: [PATCH] Implement some forgotten context menu items for arguments * Dissolve context menu * Label toggle (for conglomerate-styled arguments) Fixes: #10150 --- lib/ui/stdcontext.inc | 9 +++++++++ src/insets/InsetArgument.cpp | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/ui/stdcontext.inc b/lib/ui/stdcontext.inc index cbe65a8cee..f1a0eafd07 100644 --- a/lib/ui/stdcontext.inc +++ b/lib/ui/stdcontext.inc @@ -158,10 +158,19 @@ Menuset # # InsetArgument context menu # + Menu "context-argument" + Item "Dissolve Inset|D" "inset-dissolve" + Separator SwitchArguments End + Menu "context-argument-conglomerate" + Item "Show Label|L" "inset-toggle" + Item "Dissolve Inset|D" "inset-dissolve" + Separator + SwitchArguments + End # # InsetBox context menu diff --git a/src/insets/InsetArgument.cpp b/src/insets/InsetArgument.cpp index 48551db1f5..b65257af97 100644 --- a/src/insets/InsetArgument.cpp +++ b/src/insets/InsetArgument.cpp @@ -232,7 +232,10 @@ bool InsetArgument::getStatus(Cursor & cur, FuncRequest const & cmd, string InsetArgument::contextMenuName() const { - return "context-argument"; + if (decoration() == InsetLayout::CONGLOMERATE) + return "context-argument-conglomerate"; + else + return "context-argument"; }