35 #include "ui_ChartPropertiesDialogForm.h"
38 #include <qwt_plot_seriesitem.h>
42 m_ui(new Ui::ChartPropertiesDialogForm),
44 m_chartWidget(chartWidget)
63 std::vector<std::string> vec;
69 vec.push_back(it->first);
73 for(
size_t i = 0; i < vec.size(); i++)
75 m_ui->m_componentsListWidget->addItem(vec[i].c_str());
77 m_ui->m_componentsListWidget->setFocus();
78 m_ui->m_tabWidget->clear();
80 m_ui->m_tabWidget->addTab(
m_curComp, QString::fromStdString(
"Chart Style"));
82 m_ui->m_componentsListWidget->setCurrentRow(0);
83 m_ui->m_helpPushButton->setPageReference(
"widgets/charts/style/style.html");
85 connect(
m_ui->m_componentsListWidget, SIGNAL(itemClicked(QListWidgetItem*)),
this, SLOT(
onItemClicked(QListWidgetItem*)));
96 std::string value = current->text().toStdString();
99 m_curComp->setChart(m_chartWidget->getChart());
100 m_curComp->setDisplay(m_chartWidget->getDisplay());
101 m_ui->m_tabWidget->clear();
102 m_ui->m_tabWidget->addTab(m_curComp, QString::fromStdString(value));
108 if(m_ui->m_componentsListWidget->currentItem()->text() ==
"Chart Style")
110 m_chartWidget->setDisplay(m_curComp->getDisplay());
114 m_chartWidget->setChart(m_curComp->getChart());
static te::qt::widgets::ChartWidget * make(const std::string &cwType)
A dialog used to customize a graphic's parameters, weather it is about it's data or it's visual style...
std::auto_ptr< Ui::ChartPropertiesDialogForm > m_ui
A factory to build the scatter frame object.
A factory to build the Chart frame object.
A wdiget used to display a chart.
A widget used to display a set of charts.
te::qt::widgets::ChartDisplay * getDisplay()
Returns a pointer to the display being used.
A factory to build widget objects.
This class represents a dictionary of factories.
ChartProperties(te::qt::widgets::ChartDisplayWidget *chartWidget, QWidget *parent=0)
Constructor.
static dictionary_type & getDictionary()
It returns a reference to the internal dictionary of concrete factories.
~ChartProperties()
Destructor.
void onApplyButtonClicked()
Called when the user clicks on the apply button. It will set the configurations to the ChartDisplayWi...
A class to represent a chart display.
virtual void setDisplay(te::qt::widgets::ChartDisplay *newDisplay)
It sets the ChartDisplay being configured.
A factory to build the histogram frame object.
std::map< TFACTORYKEY, TFACTORY *, TKEYCOMPARE >::const_iterator const_iterator
A base widget to be used on the chart settings.
std::map< TFACTORYKEY, TFACTORY *, TKEYCOMPARE >::const_iterator end() const
It returns an iterator to the end of the container.
void onItemClicked(QListWidgetItem *current)
Called when the user clicks on one of the items available at the list.
ChartDisplayWidget * m_chartWidget
std::map< TFACTORYKEY, TFACTORY *, TKEYCOMPARE >::const_iterator begin() const
It returns an iterator to the first stored factory.