All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::widgets::ChartWidget Class Reference

A base widget for settings. More...

#include <ChartWidget.h>

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

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::ChartDisplay
getDisplay ()
 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.

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

Destructor.

Definition at line 35 of file ChartWidget.cpp.

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, and te::qt::widgets::HistogramFrame.

Definition at line 41 of file ChartWidget.cpp.

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 47 of file ChartWidget.cpp.

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, and te::qt::widgets::HistogramFrame.

Definition at line 52 of file ChartWidget.cpp.

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 58 of file ChartWidget.cpp.

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

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.

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

The display that will be configured by this widget.

Definition at line 102 of file ChartWidget.h.

std::string te::qt::widgets::ChartWidget::m_label

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