Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
UPlotLegend Class Reference

#include <UPlot.h>

Inheritance diagram for UPlotLegend:
Inheritance graph
[legend]

Public Slots

void removeLegendItem (const UPlotCurve *curve)
 

Signals

void legendItemRemoved (const UPlotCurve *curve)
 
void legendItemToggled (const UPlotCurve *curve, bool toggled)
 

Public Member Functions

void addItem (const UPlotCurve *curve)
 
QPixmap createSymbol (const QPen &pen, const QBrush &brush)
 
bool isFlat () const
 
bool remove (const UPlotCurve *curve)
 
void setFlat (bool on)
 
 UPlotLegend (QWidget *parent=0)
 
virtual ~UPlotLegend ()
 

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *event)
 

Private Slots

void redirectToggled (bool)
 

Private Attributes

QAction * _aUseFlatButtons
 
bool _flat
 
QMenu * _menu
 

Detailed Description

The UPlot legend. Used internally by UPlot.

Definition at line 366 of file UPlot.h.

Constructor & Destructor Documentation

◆ UPlotLegend()

UPlotLegend::UPlotLegend ( QWidget *  parent = 0)

Constructor.

Definition at line 1344 of file UPlot.cpp.

◆ ~UPlotLegend()

UPlotLegend::~UPlotLegend ( )
virtual

Definition at line 1362 of file UPlot.cpp.

Member Function Documentation

◆ addItem()

void UPlotLegend::addItem ( const UPlotCurve curve)

Definition at line 1384 of file UPlot.cpp.

◆ contextMenuEvent()

void UPlotLegend::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Definition at line 1443 of file UPlot.cpp.

◆ createSymbol()

QPixmap UPlotLegend::createSymbol ( const QPen &  pen,
const QBrush &  brush 
)

Definition at line 1409 of file UPlot.cpp.

◆ isFlat()

bool UPlotLegend::isFlat ( ) const
inline

Definition at line 378 of file UPlot.h.

◆ legendItemRemoved

void UPlotLegend::legendItemRemoved ( const UPlotCurve curve)
signal

◆ legendItemToggled

void UPlotLegend::legendItemToggled ( const UPlotCurve curve,
bool  toggled 
)
signal

◆ redirectToggled

void UPlotLegend::redirectToggled ( bool  toggled)
privateslot

Definition at line 1452 of file UPlot.cpp.

◆ remove()

bool UPlotLegend::remove ( const UPlotCurve curve)

Definition at line 1421 of file UPlot.cpp.

◆ removeLegendItem

void UPlotLegend::removeLegendItem ( const UPlotCurve curve)
slot

Definition at line 1435 of file UPlot.cpp.

◆ setFlat()

void UPlotLegend::setFlat ( bool  on)

Definition at line 1369 of file UPlot.cpp.

Member Data Documentation

◆ _aUseFlatButtons

QAction* UPlotLegend::_aUseFlatButtons
private

Definition at line 399 of file UPlot.h.

◆ _flat

bool UPlotLegend::_flat
private

Definition at line 397 of file UPlot.h.

◆ _menu

QMenu* UPlotLegend::_menu
private

Definition at line 398 of file UPlot.h.


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


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Dec 12 2022 03:20:10