qumbia-tango-controls 1.x
Library on top of cumbia-qtcontrols and cumbia-tango
Public Member Functions | List of all members
QuTPlotContextMenuStrategy Class Reference

strategy pattern. Provide a contextual menu for tango plots More...

#include <qutplotcontextmenustrategy.h>

Inheritance diagram for QuTPlotContextMenuStrategy:
Inheritance graph
[legend]

Public Member Functions

 QuTPlotContextMenuStrategy (bool realtime=false)
 
QMenu * createMenu (QWidget *w)
 returs a QMenu with an action that executes a configuration dialog More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QuTPlotContextMenuStrategy()

QuTPlotContextMenuStrategy::QuTPlotContextMenuStrategy ( bool  realtime = false)

the class constructor

Parameters
realtimetrue if the plot is a Tango real time plot
realtimefalse if the plot is not a Tango real time plot
Note
real time plots may offer a special configuration section.

Member Function Documentation

◆ createMenu()

QMenu * QuTPlotContextMenuStrategy::createMenu ( QWidget *  w)

returs a QMenu with an action that executes a configuration dialog

Parameters
wthe parent widget (plot)

A QMenu is created invoking the parent class' method QuPlotBaseContextMenuStrategy::createMenu The "configure" action executes QuTPlotSettings::configure

References QuTPlotSettings::configure().


The documentation for this class was generated from the following files: