27 #include "../../../addressgeocoding/qt/MainWindowDialog.h" 28 #include "../../../common/Config.h" 29 #include "../../../core/translator/Translator.h" 30 #include "../../../core/logger/Logger.h" 31 #include "../../af/ApplicationController.h" 32 #include "../../af/events/LayerEvents.h" 33 #include "../../af/Utils.h" 40 #include <QMessageBox> 44 te::core::CppPlugin(pluginInfo)
63 m_action->setText(
"Address Geocoding...");
64 m_action->setIcon(QIcon::fromTheme(
"addressgeocoding-icon"));
65 m_action->setObjectName(
"Processing.Address Geocoding");
71 pluginMenu->insertAction(pluginsSeparator,
m_action);
107 if(dlg.exec() != QDialog::Accepted)
115 int reply = QMessageBox::question(0, tr(
"Address Geocoding Result"), tr(
"The operation was concluded successfully. Would you like to add the layer to the project?"), QMessageBox::No, QMessageBox::Yes);
117 if(reply == QMessageBox::Yes)
This event signals that a new layer was created.
void unRegisterActions()
Function used to unregister all addressgeocoding actions.
std::list< te::map::AbstractLayerPtr > getLayers()
Get the list of layers from app.
TEQTAFEXPORT void AddActionToCustomToolbars(te::qt::af::ApplicationController *appController, QAction *act)
Check QSettings for existance of act and adds it if necessary.
Plugin implementation for the SA Qt Plugin widget.
QAction * m_action
Address Geocoding Action.
Basic information about a plugin.
#define TE_TR(message)
It marks a string in order to get translated.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
void startup()
This method will be called by applications to startup some plugin's functionality.
void onActionActivated(bool checked)
Slot function used when a action was selected.
#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 > m_layers
#define TE_LOG_TRACE(message)
Use this tag in order to log a message to the TerraLib default logger with the TRACE level...
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
te::map::AbstractLayerPtr getLayer()
Get the generated layer.
Plugin(const te::core::PluginInfo &pluginInfo)
void shutdown()
This method will be called by applicatons to shutdown plugin's functionality.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
void triggered(te::qt::af::evt::Event *e)