qumbia-tango-controls 1.x
Library on top of cumbia-qtcontrols and cumbia-tango
|
strategy pattern. Provide a contextual menu for tango plots More...
#include <qutplotcontextmenustrategy.h>
Public Member Functions | |
QuTPlotContextMenuStrategy (bool realtime=false) | |
QMenu * | createMenu (QWidget *w) |
returs a QMenu with an action that executes a configuration dialog More... | |
strategy pattern. Provide a contextual menu for tango plots
This class implements the QuPlotBaseContextMenuStrategy::createMenu virtual method offering a menu with an action to execute a configuration dialog to change Tango specific settings.
QuTPlotContextMenuStrategy::QuTPlotContextMenuStrategy | ( | bool | realtime = false | ) |
the class constructor
realtime | true if the plot is a Tango real time plot |
realtime | false if the plot is not a Tango real time plot |
QMenu * QuTPlotContextMenuStrategy::createMenu | ( | QWidget * | w | ) |
returs a QMenu with an action that executes a configuration dialog
w | the parent widget (plot) |
A QMenu is created invoking the parent class' method QuPlotBaseContextMenuStrategy::createMenu The "configure" action executes QuTPlotSettings::configure
References QuTPlotSettings::configure().