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 dictionary_type & getDictionary()
It returns a reference to the internal dictionary of concrete factories.
A factory to build the Chart frame object.
std::map< TFACTORYKEY, TFACTORY *, TKEYCOMPARE >::const_iterator const_iterator
std::map< TFACTORYKEY, TFACTORY *, TKEYCOMPARE >::const_iterator end() const
It returns an iterator to the end of the container.
A factory to build the histogram frame object.
std::map< TFACTORYKEY, TFACTORY *, TKEYCOMPARE >::const_iterator begin() const
It returns an iterator to the first stored factory.
A dialog used to customize a graphic's parameters, weather it is about it's data or it's visual style...
A class to represent a chart display.
This class represents a dictionary of factories.
A factory to build the scatter frame object.