27 #include "../../../../common/Config.h"
28 #include "../../../../common/Translator.h"
29 #include "../../../../common/Logger.h"
30 #include "../../../../dataaccess/datasource/DataSourceInfoManager.h"
31 #include "../../../../wms/qt/WMSLayerItem.h"
32 #include "../../../widgets/datasource/core/DataSourceTypeManager.h"
33 #include "../../../widgets/layer/explorer/AbstractTreeItemFactory.h"
34 #include "../../../widgets/layer/explorer/LayerExplorer.h"
35 #include "../../../widgets/layer/explorer/LayerTreeModel.h"
36 #include "../../../af/ApplicationController.h"
37 #include "../../../af/BaseApplication.h"
38 #include "../../../af/connectors/LayerExplorer.h"
46 #include <boost/functional/factory.hpp>
47 #include <boost/bind.hpp>
49 void GetWMSLayers(QAbstractItemModel* model,
const QModelIndex& parent, std::list<te::qt::widgets::AbstractTreeItem*>& layers)
51 int cc = model->rowCount(parent);
53 for(
int i = 0; i < cc; i++)
55 QModelIndex cIdx = model->index(i, 0, parent);
60 layers.push_back(cItem);
61 else if(cItem->
getItemType() ==
"FOLDER_LAYER_ITEM")
100 m_initialized =
false;
107 std::list<te::qt::widgets::AbstractTreeItem*> wms;
#define TE_LOG_TRACE(msg)
Use this tag in order to log a message to a specified logger with the TRACE level.
A connector for the te::qt::widgets::LayerExplorer class to the Application Framework.
A QMainWindow to be used as the basis for TerraLib applications.
#define TE_TR(message)
It marks a string in order to get translated.
void removeLayers(const std::list< te::qt::widgets::AbstractTreeItem * > &items)
Plugin(const te::plugin::PluginInfo &pluginInfo)
void GetWMSLayers(QAbstractItemModel *model, const QModelIndex &parent, std::list< te::qt::widgets::AbstractTreeItem * > &layers)
#define PLUGIN_CALL_BACK_IMPL(PLUGIN_CLASS_NAME)
This macro should be used by C++ plugins in order to declare the exportable/callable DLL function...
static DataSourceTypeManager & getInstance()
It returns a reference to the singleton instance.
~Plugin()
Virtual destructor.
te::qt::widgets::LayerExplorer * getExplorer() const
void startup()
Do nothing! Just set plugin as started.
Plugin implementation for the OGC Web Map Service (WMS) data source widget.
The basic information about a plugin.
void shutdown()
Do nothing! Just set plugin as stopped.