te::qt::widgets::ChartWidget Class Reference

A base widget for settings. More...

#include <ChartWidget.h>

Inheritance diagram for te::qt::widgets::ChartWidget:
QWidget te::qt::widgets::ChartStyleFrame te::qt::widgets::HistogramFrame te::qt::widgets::ScatterFrame te::qt::widgets::TimeSeriesFrame

Public Member Functions

 ChartWidget (QWidget *parent=0)
 Constructor. More...
 
virtual QwtPlotSeriesItem * getChart ()
 Returns a pointer to the chart being configured. More...
 
virtual te::qt::widgets::ChartDisplaygetDisplay ()
 Returns a pointer to the display being configured. More...
 
virtual void setChart (QwtPlotSeriesItem *newChart)
 It sets the chart being configured. More...
 
virtual void setDisplay (te::qt::widgets::ChartDisplay *newDisplay)
 It sets the ChartDisplay being configured. More...
 
 ~ChartWidget ()
 Destructor. More...
 

Public Attributes

QwtPlotSeriesItem * m_chart
 The chart that will be configured by this widget. More...
 
ChartDisplaym_display
 The display that will be configured by this widget. More...
 
std::string m_label
 The chart's Label. More...
 

Detailed Description

A base widget for settings.

Definition at line 50 of file ChartWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::ChartWidget::ChartWidget ( QWidget parent = 0)

Constructor.

Parameters
parentthis widget's parent

Definition at line 29 of file ChartWidget.cpp.

References ~ChartWidget().

te::qt::widgets::ChartWidget::~ChartWidget ( )
default

Destructor.

Referenced by ChartWidget().

Member Function Documentation

QwtPlotSeriesItem * te::qt::widgets::ChartWidget::getChart ( )
virtual

Returns a pointer to the chart being configured.

Returns
A QwtPlotSeriesItem type pointer to the chart being configured
Note
The caller will take ownership of the returned pointer.

Reimplemented in te::qt::widgets::ScatterFrame, te::qt::widgets::TimeSeriesFrame, and te::qt::widgets::HistogramFrame.

Definition at line 37 of file ChartWidget.cpp.

References m_chart.

Referenced by te::qt::widgets::ChartProperties::onApplyButtonClicked().

te::qt::widgets::ChartDisplay * te::qt::widgets::ChartWidget::getDisplay ( )
virtual

Returns a pointer to the display being configured.

Returns
A ChartDisplay type pointer to the display being configured
Note
The caller will take ownership of the returned pointer.

Reimplemented in te::qt::widgets::ChartStyleFrame.

Definition at line 43 of file ChartWidget.cpp.

References m_display.

Referenced by te::qt::widgets::ChartProperties::onApplyButtonClicked().

void te::qt::widgets::ChartWidget::setChart ( QwtPlotSeriesItem *  newChart)
virtual

It sets the chart being configured.

Parameters
newChartThe new QwtPlotSeriesItem.
Note
It will not take ownership of the given pointer

Reimplemented in te::qt::widgets::ScatterFrame, te::qt::widgets::TimeSeriesFrame, and te::qt::widgets::HistogramFrame.

Definition at line 48 of file ChartWidget.cpp.

References m_chart.

Referenced by te::qt::widgets::ChartProperties::onItemClicked().

void te::qt::widgets::ChartWidget::setDisplay ( te::qt::widgets::ChartDisplay newDisplay)
virtual

It sets the ChartDisplay being configured.

Parameters
newDisplayThe new ChartDisplay.
Note
It will not take ownership of the given pointer

Reimplemented in te::qt::widgets::ChartStyleFrame.

Definition at line 54 of file ChartWidget.cpp.

References m_display.

Referenced by te::qt::widgets::ChartProperties::ChartProperties(), and te::qt::widgets::ChartProperties::onItemClicked().

Member Data Documentation

QwtPlotSeriesItem* te::qt::widgets::ChartWidget::m_chart

The chart that will be configured by this widget.

Definition at line 101 of file ChartWidget.h.

Referenced by getChart(), and setChart().

ChartDisplay* te::qt::widgets::ChartWidget::m_display

The display that will be configured by this widget.

Definition at line 102 of file ChartWidget.h.

Referenced by getDisplay(), and setDisplay().


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