#include <Plugin.h>
Public Member Functions | |
const PluginInfo & | getInfo () const |
It return the information associated to the plugin. More... | |
bool | isStarted () const |
It tells if the plugin was started or not. More... | |
bool | operator< (const AbstractPlugin &rhs) const |
This overloaded operator can be used to index the plugin in a set. More... | |
Plugin (const te::plugin::PluginInfo &pluginInfo) | |
void | shutdown () |
Do nothing! Just set plugin as stopped. More... | |
void | startup () |
Do nothing! Just set plugin as started. More... | |
~Plugin () | |
Virtual destructor. More... | |
Protected Slots | |
void | onActionActivated (bool checked) |
Slot function used when a action was selected. More... | |
Protected Member Functions | |
std::list < te::map::AbstractLayerPtr > | getLayers () |
Get the list of layers from app. More... | |
void | unRegisterActions () |
Function used to unregister all addressgeocoding actions. More... | |
Protected Attributes | |
QAction * | m_action |
Address Geocoding Action. More... | |
bool | m_initialized |
A flag that indicates if the plugin was started or not. More... | |
PluginInfo | m_pluginInfo |
Information about the plugin. More... | |
te::qt::plugins::addressgeocoding::Plugin::Plugin | ( | const te::plugin::PluginInfo & | pluginInfo | ) |
Definition at line 60 of file Plugin.cpp.
|
virtual |
Virtual destructor.
Reimplemented from te::plugin::Plugin.
Definition at line 65 of file Plugin.cpp.
|
virtualinherited |
It return the information associated to the plugin.
Implements te::plugin::AbstractPlugin.
Definition at line 29 of file Plugin.cpp.
References te::plugin::Plugin::m_pluginInfo.
|
protected |
Get the list of layers from app.
Definition at line 165 of file Plugin.cpp.
References te::qt::af::Project::getAllLayers(), and te::common::Singleton< ApplicationController >::getInstance().
|
virtualinherited |
It tells if the plugin was started or not.
Implements te::plugin::AbstractPlugin.
Definition at line 34 of file Plugin.cpp.
|
protectedslot |
Slot function used when a action was selected.
checked | Flag used in case a toggle action. |
Definition at line 134 of file Plugin.cpp.
References te::common::Singleton< ApplicationController >::getInstance(), te::addressgeocoding::MainWindowDialog::getLayer(), te::qt::af::Project::getSingleLayers(), and te::addressgeocoding::MainWindowDialog::setLayers().
|
inherited |
This overloaded operator can be used to index the plugin in a set.
rhs | The right-hand-side plugin. |
Definition at line 38 of file AbstractPlugin.cpp.
References te::plugin::AbstractPlugin::getInfo().
|
virtual |
Do nothing! Just set plugin as stopped.
Reimplemented from te::plugin::Plugin.
Definition at line 117 of file Plugin.cpp.
References TE_LOG_TRACE, and TE_TR.
|
virtual |
Do nothing! Just set plugin as started.
Reimplemented from te::plugin::Plugin.
Definition at line 69 of file Plugin.cpp.
References te::qt::af::AddActionToCustomToolbars(), te::common::uri::urisyn::decode(), te::common::Singleton< ApplicationController >::getInstance(), TE_LOG_TRACE, and TE_TR.
|
protected |
Function used to unregister all addressgeocoding actions.
Definition at line 178 of file Plugin.cpp.
|
protected |
|
protectedinherited |
|
protectedinherited |
Information about the plugin.
Definition at line 78 of file Plugin.h.
Referenced by te::plugin::Plugin::getInfo().