27 #include "../../datasource/core/DataSourceType.h" 28 #include "../../datasource/core/DataSourceTypeManager.h" 29 #include "../../datasource/explorer/DataSetItem.h" 30 #include "../explorer/DataSetTreeView.h" 33 #include "ui_DataSetSelectorDialogForm.h" 36 #include <QMessageBox> 40 m_ui(new
Ui::DataSetSelectorDialogForm),
41 m_selectMode(CHECKED_ITEMS)
56 m_ui->m_helpPushButton->setPageReference(
"widgets/dataset_selector/dataset_selector.html");
65 if(ds.get() ==
nullptr)
68 QString title(tr(
"Dataset Selection - %1"));
69 title = title.arg(QString::fromUtf8(ds->getTitle().c_str()));
71 setWindowTitle(title);
78 title = tr(
"%1 - %2");
79 title = title.arg(QString::fromUtf8(dsType->
getTitle().c_str())).arg(QString::fromUtf8(ds->getTitle().c_str()));
81 m_ui->m_titleLabel->setText(title);
137 m_ui->m_selectPushButton->setEnabled(
m_selectorW->hasCheckedDataSets());
139 m_ui->m_selectPushButton->setEnabled(
m_selectorW->hasSelectedDataSets());
static te::dt::Date ds(2010, 01, 01)
static DataSourceTypeManager & getInstance()
It returns a reference to the singleton instance.
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr