A wdiget used to display a chart. More...
#include <ChartDisplayWidget.h>
Signals | |
| void | selected (te::da::ObjectIdSet *, const bool &) |
| Emmit when objects were selected. More... | |
Public Member Functions | |
| ChartDisplayWidget (QwtPlotSeriesItem *chart, int type, te::qt::widgets::ChartDisplay *display, QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor. More... | |
| QwtPlotSeriesItem * | getChart () |
| Returns a pointer to the chart being displayed. More... | |
| te::qt::widgets::ChartDisplay * | getDisplay () |
| Returns a pointer to the display being used. More... | |
| int | getType () |
| void | highlightOIds (const te::da::ObjectIdSet *oids, te::da::DataSetType *dataType) |
| Highlights the objects identified by oids. More... | |
| void | setChart (QwtPlotSeriesItem *newChart) |
| It sets the chart that will be displayed More... | |
| void | setDisplay (te::qt::widgets::ChartDisplay *newDisplay) |
| It sets the display that will be used More... | |
| void | setSelectionColor (QColor selColor) |
| color used to hgihlight selected objects on this display. More... | |
| ~ChartDisplayWidget () | |
| Destructor. More... | |
Protected Slots | |
| void | onExportToolButtonnClicked () |
| Called when the user clicks on the export tool button. More... | |
| void | onSettingsToolButtonnClicked () |
| Called when the user clicks on the Settings tool button. More... | |
| void | selectionChanged (te::da::ObjectIdSet *oids, const bool &add) |
| Called when objects were selected. More... | |
Private Attributes | |
| QwtPlotSeriesItem * | m_chart |
| The chart that will be plotted by this widget. More... | |
| ChartDisplay * | m_display |
| The display that will be used to plot the chart. More... | |
| int | m_type |
| The type of the chart that will be plotted by this widget. More... | |
| std::unique_ptr< Ui::ChartDisplayWidgetForm > | m_ui |
| The widget form. More... | |
A wdiget used to display a chart.
Definition at line 62 of file ChartDisplayWidget.h.
| te::qt::widgets::ChartDisplayWidget::ChartDisplayWidget | ( | QwtPlotSeriesItem * | chart, |
| int | type, | ||
| te::qt::widgets::ChartDisplay * | display, | ||
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor.
| chart | The chart that will be displayed by this widget. |
| display | The display that will be used by this widget to display the chart |
| parent | this widget's parent |
| f | Window flags used to configure this widget |
Definition at line 44 of file ChartDisplayWidget.cpp.
References m_display, m_ui, onExportToolButtonnClicked(), onSettingsToolButtonnClicked(), selected(), and selectionChanged().
| te::qt::widgets::ChartDisplayWidget::~ChartDisplayWidget | ( | ) |
| QwtPlotSeriesItem * te::qt::widgets::ChartDisplayWidget::getChart | ( | ) |
Returns a pointer to the chart being displayed.
Definition at line 69 of file ChartDisplayWidget.cpp.
References m_chart.
Referenced by te::qt::widgets::ChartConfigurer::config(), and te::qt::widgets::ChartProperties::onItemClicked().
| te::qt::widgets::ChartDisplay * te::qt::widgets::ChartDisplayWidget::getDisplay | ( | ) |
Returns a pointer to the display being used.
Definition at line 80 of file ChartDisplayWidget.cpp.
References m_display.
Referenced by te::qt::widgets::ChartProperties::ChartProperties(), and te::qt::widgets::ChartProperties::onItemClicked().
| int te::qt::widgets::ChartDisplayWidget::getType | ( | ) |
Definition at line 95 of file ChartDisplayWidget.cpp.
References m_type.
Referenced by te::qt::widgets::ChartProperties::ChartProperties().
| void te::qt::widgets::ChartDisplayWidget::highlightOIds | ( | const te::da::ObjectIdSet * | oids, |
| te::da::DataSetType * | dataType | ||
| ) |
Highlights the objects identified by oids.
| oids | The identifiers of plotitems to be highlighted. |
Definition at line 100 of file ChartDisplayWidget.cpp.
References te::qt::widgets::ChartDisplay::highlightOIds(), and m_display.
Referenced by te::qt::af::ChartDisplayDockWidget::onApplicationTriggered(), and te::qt::af::ChartDisplayDockWidget::setLayer().
|
protectedslot |
Called when the user clicks on the export tool button.
Definition at line 105 of file ChartDisplayWidget.cpp.
References te::qt::widgets::exportChart(), te::qt::widgets::ChartDisplay::getStyle(), te::qt::widgets::HISTOGRAM_CHART, m_chart, m_display, te::qt::widgets::SCATTER_CHART, and te::common::Exception::what().
Referenced by ChartDisplayWidget().
|
protectedslot |
Called when the user clicks on the Settings tool button.
Definition at line 148 of file ChartDisplayWidget.cpp.
Referenced by ChartDisplayWidget().
|
signal |
Emmit when objects were selected.
Referenced by ChartDisplayWidget(), and selectionChanged().
|
protectedslot |
Called when objects were selected.
Definition at line 154 of file ChartDisplayWidget.cpp.
References selected().
Referenced by ChartDisplayWidget().
| void te::qt::widgets::ChartDisplayWidget::setChart | ( | QwtPlotSeriesItem * | newChart | ) |
It sets the chart that will be displayed
| newChart | The new chart. |
Definition at line 74 of file ChartDisplayWidget.cpp.
References m_chart, and m_display.
Referenced by te::qt::widgets::ChartProperties::onApplyButtonClicked().
| void te::qt::widgets::ChartDisplayWidget::setDisplay | ( | te::qt::widgets::ChartDisplay * | newDisplay | ) |
It sets the display that will be used
| newDisplay | The new display. |
Definition at line 85 of file ChartDisplayWidget.cpp.
References te::qt::widgets::ChartDisplay::getStyle(), te::qt::widgets::ChartStyle::getTitle(), and m_display.
Referenced by te::qt::widgets::ChartProperties::onApplyButtonClicked().
| void te::qt::widgets::ChartDisplayWidget::setSelectionColor | ( | QColor | selColor | ) |
color used to hgihlight selected objects on this display.
| selColor | The color used to hgihlight selected objects on this display. |
Definition at line 159 of file ChartDisplayWidget.cpp.
References m_display, and te::qt::widgets::ChartDisplay::setSelectionColor().
Referenced by te::qt::af::ChartDisplayDockWidget::setSelectionColor().
|
private |
The chart that will be plotted by this widget.
Definition at line 161 of file ChartDisplayWidget.h.
Referenced by getChart(), onExportToolButtonnClicked(), setChart(), and ~ChartDisplayWidget().
|
private |
The display that will be used to plot the chart.
Definition at line 163 of file ChartDisplayWidget.h.
Referenced by ChartDisplayWidget(), getDisplay(), highlightOIds(), onExportToolButtonnClicked(), setChart(), setDisplay(), and setSelectionColor().
|
private |
The type of the chart that will be plotted by this widget.
Definition at line 162 of file ChartDisplayWidget.h.
Referenced by getType().
|
private |
The widget form.
Definition at line 160 of file ChartDisplayWidget.h.
Referenced by ChartDisplayWidget().