te::qt::widgets::ChartProperties Class Reference

A dialog used to customize a graphic's parameters. More...

#include <ChartProperties.h>

Inheritance diagram for te::qt::widgets::ChartProperties:
QDialog

Public Slots

void onApplyButtonClicked ()
 Called when the user clicks on the apply button. It will set the configurations to the ChartDisplayWidget being configured by this dialog. More...
 
void onItemClicked (QListWidgetItem *current)
 Called when the user clicks on one of the items available at the list. More...
 

Public Member Functions

 ChartProperties (te::qt::widgets::ChartDisplayWidget *chartWidget, QWidget *parent=0)
 Constructor. More...
 
 ~ChartProperties ()
 Destructor. More...
 

Private Attributes

ChartDisplayWidgetm_chartWidget
 
ChartWidgetm_curComp
 
std::unique_ptr< Ui::ChartPropertiesDialogForm > m_ui
 

Detailed Description

A dialog used to customize a graphic's parameters.

Definition at line 55 of file ChartProperties.h.

Constructor & Destructor Documentation

te::qt::widgets::ChartProperties::~ChartProperties ( )

Destructor.

Definition at line 91 of file ChartProperties.cpp.

References m_curComp.

Member Function Documentation

void te::qt::widgets::ChartProperties::onApplyButtonClicked ( )
slot

Called when the user clicks on the apply button. It will set the configurations to the ChartDisplayWidget being configured by this dialog.

Definition at line 108 of file ChartProperties.cpp.

References te::qt::widgets::ChartWidget::getChart(), te::qt::widgets::ChartWidget::getDisplay(), m_chartWidget, m_curComp, m_ui, te::qt::widgets::ChartDisplayWidget::setChart(), and te::qt::widgets::ChartDisplayWidget::setDisplay().

Referenced by ChartProperties().

void te::qt::widgets::ChartProperties::onItemClicked ( QListWidgetItem *  current)
slot

Called when the user clicks on one of the items available at the list.

Parameters
currentThe currently selected item of the list, it will be used to determine which type of chart the user wishes to configure.

Definition at line 96 of file ChartProperties.cpp.

References te::qt::widgets::ChartDisplayWidget::getChart(), te::qt::widgets::ChartDisplayWidget::getDisplay(), m_chartWidget, m_curComp, m_ui, te::qt::widgets::ChartWidgetFactory::make(), te::qt::widgets::ChartWidget::setChart(), and te::qt::widgets::ChartWidget::setDisplay().

Referenced by ChartProperties().

Member Data Documentation

ChartDisplayWidget* te::qt::widgets::ChartProperties::m_chartWidget
private

Definition at line 93 of file ChartProperties.h.

Referenced by ChartProperties(), onApplyButtonClicked(), and onItemClicked().

ChartWidget* te::qt::widgets::ChartProperties::m_curComp
private
std::unique_ptr<Ui::ChartPropertiesDialogForm> te::qt::widgets::ChartProperties::m_ui
private

Definition at line 91 of file ChartProperties.h.

Referenced by ChartProperties(), onApplyButtonClicked(), and onItemClicked().


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