diff --git a/gui/resources/icones/unplot.png b/gui/resources/icones/unplot.png new file mode 100644 index 0000000000000000000000000000000000000000..ab7c5f6682760c1e24bf911f628afa81bd5897dc GIT binary patch literal 2234 zc$@*c2u1gaP)(vi?D9I=v)#+WYAbdWCyjp@Q`V0 zpaaSnjyf}4e3R)o|G2)r*V=0zz6aLT>{-0)TkqcgIxjE`!!QiPFe*n~YynC}1LJ@( zz$joCa2?P9^aa|1HlP(a2^9x`>U>WJYGKPWyNWc#g zuhM%;t-uDPonZu^AFv$woA{O8TRI192AaZzp_=X(bD0r&}d0}mi0c_+I5b{-j1=#TW}Z$P?o6M)HGx<-1|)CsHrUiO@C zVVMK`gTJ@zcVwjQ9%QUP4RydRz!GGnvE8H2^(nQLf_eBEzHJ3I0aFM&S1}TKdk=Wf z+zGr9SZ}VGL;A{Z0alXzP;4Jy0e;#nuV$=07u-d<&wd-Q4j7!Z@NU#2UDhL{Gr_8? zg~wzp>4tQh$zOMB5b`E>ki1-rGFKge0VMxyo=1Lv`(&=#od6S(H~r9$njNKh zzxh|A9{3Pl96Eq$F~s_0Il4lhr#P*BE!P5j(Z%EI7(#t90NG@rDewzXlxD|d^uyn? zqbT*jGW3nUJP-2tVgy)|9evO(-EJd)!@HsA3+zN^f~irIreGer0`**AF_;QRY8hahB9E#!{<`zC;@Mk* zsc@v00mdlu*yBM*nb5>zY%mp$)H1**MIHxy2q_UQ$f8*nMu!yQLM;OfQ{-WXEndkH z$LEFyRpCG_189aRPo&hKnMBDdJ(jXet}%(;4XkB=21Oocd3(afL~1=rKaT7s%@pw>^oaYY_uJm@GB z4aiI3!m*G-T&QIL%^O{nJpiuUs(AL#U@9D`Wq|#PJSO`PQX(|Bk7(i?gx(C`+7p;g zh0n+9fx8vY=6WJcv*juJv}TUjjeFc~jHK}*y{!rSUXjnkX@!)8Cg3*5XOENPHUQ{W zwmh0vNJ-Gd;oD#;JTV&gPgy(uPvR~j&A7+x*+?2yXbys05lLfS7>{ns`KCBBb*#m` zKnJMy#Lz3a$12yY|4W&K&eeGw*Uy3>$oz?GoCl-Rk=B17P`0`q@dgA#vtq5 zG{18XM9`TfgMmNL8K4k-|5|KDSJ=bo_7@b1I&_;rJCR}E=!-zp(1a{^))e|n3i`>r z3fg0HJAo&oDD}*0^aX#Na!nV{MSthuPD;`}?vLD}tu?`#7-9o31N~R99l2SpG-zAC z|D{zF`%7>y$!<#77(;AmHj>N)>nY}^a4z~czZ2;>m2#G}KQf__!~`EA=j|7PI;6pu z=APkiDCxl11Y~1FlA!D*|BFcnqwnff&II#Ge#2%PvW6g!-Naew4t=b&37#iiV0Mz9 zGxJ6P@8GxMD`A2pH)(ZG9}w@ygSb6DS#hETBv}au_rH$mLVIgD?{$ zW*Tyla_mZVNr!+Z=(!teCP>L_@@s^H$d!3l>&2J}JTMixPBqDVyU)~tY}$AX-5y6X zfhPtdH)?)??zYmjX*V)>m1et^nZPsGAvHGLMpTeJ&lf}*U^YeaS` zPejfm8jBoYF|_M%{kl>+a{TIP@=IX& z#Y|wB2@ErVftkR-OkiLpFfbDsm>A7xk$BL$&Ma5T$8 z80iRMf@d-5b!bZH}G_1ErwwjhG7_nVHApg0T{%Y4KAj$mH+?%07*qo IM6N<$f&hXLX#fBK literal 0 Hc$@icones/next.png icones/plot.png icones/previous.png + icones/unplot.png diff --git a/gui/src/Visualization/operations/GenerateVariableMenuOperation.cpp b/gui/src/Visualization/operations/GenerateVariableMenuOperation.cpp index 4dc1b15..38f6f67 100644 --- a/gui/src/Visualization/operations/GenerateVariableMenuOperation.cpp +++ b/gui/src/Visualization/operations/GenerateVariableMenuOperation.cpp @@ -14,7 +14,7 @@ Q_LOGGING_CATEGORY(LOG_GenerateVariableMenuOperation, "GenerateVariableMenuOpera struct GenerateVariableMenuOperation::GenerateVariableMenuOperationPrivate { explicit GenerateVariableMenuOperationPrivate(QMenu *menu, std::shared_ptr variable) - : m_Variable{variable}, m_PlotMenuBuilder{menu} + : m_Variable{variable}, m_PlotMenuBuilder{menu}, m_UnplotMenuBuilder{menu} { } @@ -22,12 +22,14 @@ struct GenerateVariableMenuOperation::GenerateVariableMenuOperationPrivate { { // Creates the root menu m_PlotMenuBuilder.addMenu(QObject::tr("Plot"), QIcon{":/icones/plot.png"}); + m_UnplotMenuBuilder.addMenu(QObject::tr("Unplot"), QIcon{":/icones/unplot.png"}); } void visitRootLeave() { // Closes the root menu m_PlotMenuBuilder.closeMenu(); + m_UnplotMenuBuilder.closeMenu(); } void visitNodeEnter(const IVisualizationWidget &container) @@ -60,6 +62,7 @@ struct GenerateVariableMenuOperation::GenerateVariableMenuOperationPrivate { std::shared_ptr m_Variable; MenuBuilder m_PlotMenuBuilder; ///< Builder for the 'Plot' menu + MenuBuilder m_UnplotMenuBuilder; ///< Builder for the 'Unplot' menu }; GenerateVariableMenuOperation::GenerateVariableMenuOperation(QMenu *menu, @@ -73,6 +76,7 @@ void GenerateVariableMenuOperation::visitEnter(VisualizationWidget *widget) // VisualizationWidget is not intended to accommodate a variable Q_UNUSED(widget) + // 'Plot' and 'Unplot' menus impl->visitRootEnter(); } @@ -81,6 +85,7 @@ void GenerateVariableMenuOperation::visitLeave(VisualizationWidget *widget) // VisualizationWidget is not intended to accommodate a variable Q_UNUSED(widget) + // 'Plot' and 'Unplot' menus impl->visitRootLeave(); }