27 #include "../../../../common/Translator.h"
28 #include "../../Exception.h"
31 #include "ui_DataSourceExplorerDialogForm.h"
32 #include "ui_DataSourceSelectorWidgetForm.h"
35 #include <QMessageBox>
36 #include <QVBoxLayout>
40 m_ui(new Ui::DataSourceExplorerDialogForm)
47 QVBoxLayout* layout =
new QVBoxLayout(
this);
49 layout->addWidget(
m_ui->layoutWidget, 0);
55 m_ui->m_helpPushButton->setPageReference(
"widgets/datasource_explorer/datasource_explorer.html");
64 m_selectorWidget.get()->setDataSource(dsType);
74 return m_selectorWidget.get();
81 m_selecteds = m_selectorWidget->getSelecteds();
85 catch(
const std::exception& e)
87 QMessageBox::warning(
this,
88 tr(
"TerraLib Qt Components"),
95 QMessageBox::warning(
this,
96 tr(
"TerraLib Qt Components"),
97 tr(
"Unknown error while selecting a data source!"));
A dialog for selecting a data source.