27 #include "../../../../common/Config.h" 28 #include "../../../../core/translator/Translator.h" 29 #include "../../../../core/logger/Logger.h" 30 #include "../../../../dataaccess/datasource/DataSourceInfoManager.h" 31 #include "../../../widgets/datasource/core/DataSourceTypeManager.h" 32 #include "../../../widgets/datasource/selector/DataSourceSelectorDialog.h" 33 #include "../../../widgets/datasource/selector/DataSourceSelectorWidget.h" 34 #include "../../../af/ApplicationController.h" 35 #include "../../../af/events/ApplicationEvents.h" 43 #include <QMessageBox> 50 te::core::CppPlugin(pluginInfo),
51 m_openPostGISRasterSelector(nullptr)
107 dselector->getSelectorWidget()->showSpecificDataSource(
"POSTGISRASTER");
109 if (dselector->exec() == QDialog::Accepted)
111 std::list<te::da::DataSourceInfoPtr> selectedDatasources = dselector->getSelecteds();
113 if (!selectedDatasources.empty())
119 selector->set(dsInfo);
121 if (selector->exec() == QDialog::Accepted)
124 selector->getSelecteds(vec);
129 tr(
"PostGIS Raster"), tr(
"No PostGIS Raster selected."));
void triggered(te::qt::af::evt::Event *e)
Plugin implementation for the PostGIS Raster data source widget.
void startup()
This method will be called by applications to startup some plugin's functionality.
QList< QAction * > m_actions
Basic information about a plugin.
#define TE_TR(message)
It marks a string in order to get translated.
Utility functions for the PgisRaster data source widget plugin.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
void shutdown()
This method will be called by applicatons to shutdown plugin's functionality.
#define TERRALIB_PLUGIN_CALL_BACK_IMPL(PLUGIN_CLASS_NAME)
This macro should be used by C++ plugins in order to declare the exportable/callable DLL function...
std::vector< PostGISRasterInfo > PostGISRasterInfoVec
Plugin(const te::core::PluginInfo &pluginInfo)
QAction * m_openPostGISRasterSelector
void CreateLayers(PostGISRasterInfoVec &vec)
#define TE_LOG_TRACE(message)
Use this tag in order to log a message to the TerraLib default logger with the TRACE level...
void openDataSourceSelector()
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr