27 #include "../../../../core/translator/Translator.h" 28 #include "../../Exception.h" 31 #include "ui_DataSourceSelectorDialogForm.h" 32 #include "ui_DataSourceSelectorWidgetForm.h" 35 #include <QMessageBox> 36 #include <QVBoxLayout> 40 m_ui(new
Ui::DataSourceSelectorDialogForm)
47 QVBoxLayout* layout =
new QVBoxLayout(
this);
49 layout->addWidget(
m_ui->layoutWidget, 0);
56 m_ui->m_helpPushButton->setPageReference(
"widgets/datasource_selector/datasource_selector.html");
88 catch(
const std::exception& e)
90 QMessageBox::warning(
this,
91 tr(
"TerraLib Qt Components"),
98 QMessageBox::warning(
this,
99 tr(
"TerraLib Qt Components"),
100 tr(
"Unknown error while selecting a data source!"));
111 bool hasSelectedItems = !
m_selectorWidget->getForm()->m_datasourceListWidget->selectedItems().empty();
113 m_ui->m_selectPushButton->setEnabled(hasSelectedItems);
Base exception class for plugin module.
#define TE_TR(message)
It marks a string in order to get translated.
A dialog for selecting a data source.