32 #include "../../../../core/translator/Translator.h" 33 #include "../../../../core/logger/Logger.h" 34 #include "../../../../dataaccess/datasource/DataSourceInfoManager.h" 35 #include "../../../../qt/widgets/datasource/core/DataSourceTypeManager.h" 36 #include "../../../../qt/af/events/ApplicationEvents.h" 37 #include "../../../../qt/af/events/LayerEvents.h" 38 #include "../../../../qt/af/ApplicationController.h" 39 #include "../../../../qt/widgets/layer/explorer/LayerItem.h" 40 #include "../../../../qt/widgets/layer/explorer/LayerItemView.h" 41 #include "../qt/WMSType.h" 44 QModelIndexList& layersIdx)
47 int cS = model->rowCount(parent);
49 for(
int i = 0; i < cS; i++)
51 QModelIndex idx = model->index(i, 0, parent);
56 if(child->
getType() ==
"FOLDER")
58 else if(child->
getType() ==
"LAYER")
61 layersIdx.push_back(idx);
66 std::list<te::map::AbstractLayerPtr>
GetLayers(
const QModelIndexList& lst)
68 std::list<te::map::AbstractLayerPtr> res;
70 for(QModelIndexList::const_iterator it = lst.begin(); it != lst.end(); ++it)
72 QModelIndex idx = *it;
81 :
te::core::CppPlugin(pluginInfo),
131 std::list<te::map::AbstractLayerPtr> lst =
GetLayers(wls);
void triggered(te::qt::af::evt::Event *e)
Plugin implementation for the OGC Web Coverage Service (WMS) data source widget.
void updateDelegate(const bool &add)
te::qt::widgets::LayerItemView * m_layerExplorer
Basic information about a plugin.
#define TE_TR(message)
It marks a string in order to get translated.
static DataSourceTypeManager & 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::list< te::map::AbstractLayerPtr > GetLayers(const QModelIndexList &lst)
void GetAllWMSLayers(te::qt::widgets::LayerItemView *view, const QModelIndex &parent, QModelIndexList &layersIdx)
te::ws::ogc::wms::qt::WMSItemDelegate * m_delegate
#define TE_LOG_TRACE(message)
Use this tag in order to log a message to the TerraLib default logger with the TRACE level...
void startup()
This method will be called by applications to startup some plugin's functionality.
Plugin(const te::core::PluginInfo &pluginInfo)