#include <Plugin.h>
Signals | |
| void | triggered (te::qt::af::evt::Event *e) |
Public Member Functions | |
| const PluginInfo & | info () const |
| It returns the PluginInfo of the CppPlugin. More... | |
| bool | initialized () const |
| It returns true or false if the CppPlugin was initialized. More... | |
| Plugin (const te::core::PluginInfo &pluginInfo) | |
| void | shutdown () |
| This method will be called by applicatons to shutdown plugin's functionality. More... | |
| void | startup () |
| This method will be called by applications to startup some plugin's functionality. More... | |
| ~Plugin () | |
Protected Slots | |
| void | onActionActivated (bool) |
| Slot function used when a action was selected. More... | |
| void | onApplicationTriggered (te::qt::af::evt::Event *e) |
| void | onGeometriesChanged () |
| void | onStashedLayer (te::map::AbstractLayer *layer) |
| void | onUpdateDelegate (const bool &add) |
Protected Member Functions | |
| void | drawStashed () |
| te::qt::widgets::LayerItemView * | getLayerExplorer () |
Protected Attributes | |
| QAction * | m_action |
| Action used to call the process. More... | |
| EditDelegate * | m_delegate |
| bool | m_initialized |
| PluginInfo | m_pinfo |
| ToolBar * | m_toolbar |
| Main toolbar of TerraLib Edit Qt Plugin. More... | |
Definition at line 69 of file src/terralib/qt/plugins/edit/Plugin.h.
| Plugin::Plugin | ( | const te::core::PluginInfo & | pluginInfo | ) |
Definition at line 95 of file src/terralib/qt/plugins/edit/Plugin.cpp.
| Plugin::~Plugin | ( | ) |
Definition at line 100 of file src/terralib/qt/plugins/edit/Plugin.cpp.
References m_toolbar.
|
protected |
Definition at line 235 of file src/terralib/qt/plugins/edit/Plugin.cpp.
References te::edit::Renderer::begin(), te::edit::Renderer::drawRepository(), te::edit::Renderer::end(), te::qt::af::MapDisplay::getDisplay(), te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), te::qt::widgets::MapDisplay::getHeight(), te::map::AbstractLayer::getId(), te::common::Singleton< T >::getInstance(), te::common::Singleton< SnapManager >::getInstance(), getLayerExplorer(), GetSelectedLayer(), te::map::MapDisplay::getSRID(), te::map::AbstractLayer::getVisibility(), te::qt::widgets::MapDisplay::getWidth(), te::qt::plugins::edit::ToolBar::isEnabled(), te::qt::af::evt::GetMapDisplay::m_display, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_toolbar, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, triggered(), and te::map::VISIBLE.
Referenced by onApplicationTriggered(), and onGeometriesChanged().
|
protected |
Definition at line 289 of file src/terralib/qt/plugins/edit/Plugin.cpp.
References te::qt::af::evt::GetLayerExplorer::m_layerExplorer, TERRALIB_PLUGIN_CALL_BACK_IMPL, and triggered().
Referenced by drawStashed(), onApplicationTriggered(), onGeometriesChanged(), onStashedLayer(), and onUpdateDelegate().
|
virtualinherited |
It returns the PluginInfo of the CppPlugin.
Implements te::core::AbstractPlugin.
Definition at line 43 of file src/terralib/core/plugin/CppPlugin.cpp.
References te::core::CppPlugin::m_pinfo.
Referenced by te::qt::plugins::gdal::Plugin::openFileDialog(), te::qt::plugins::gdal::Plugin::openMultipleFilesDialog(), and te::qt::plugins::ogr::Plugin::showWindow().
|
virtualinherited |
It returns true or false if the CppPlugin was initialized.
Implements te::core::AbstractPlugin.
Definition at line 49 of file src/terralib/core/plugin/CppPlugin.cpp.
References te::core::CppPlugin::m_initialized.
|
protectedslot |
Slot function used when a action was selected.
| checked | Flag used in case a toggle action. |
Definition at line 159 of file src/terralib/qt/plugins/edit/Plugin.cpp.
References te::qt::plugins::edit::ToolBar::get(), te::qt::af::evt::NewActionsAvailable::m_category, m_toolbar, te::qt::af::evt::NewActionsAvailable::m_toolbar, and triggered().
Referenced by startup().
|
protectedslot |
Definition at line 168 of file src/terralib/qt/plugins/edit/Plugin.cpp.
References de, te::qt::af::evt::DRAWING_FINISHED, drawStashed(), getLayerExplorer(), GetSelectedLayer(), te::qt::plugins::edit::ToolBar::isEnabled(), EditDelegate::isStached(), te::qt::af::evt::LAYER_SELECTED, m_delegate, te::qt::af::evt::Event::m_id, te::qt::af::evt::LayerSelected::m_layer, m_toolbar, triggered(), and te::qt::plugins::edit::ToolBar::updateLayer().
|
protectedslot |
Definition at line 223 of file src/terralib/qt/plugins/edit/Plugin.cpp.
References EditDelegate::addEdited(), drawStashed(), getLayerExplorer(), te::qt::plugins::edit::ToolBar::getSelectedLayer(), m_delegate, m_toolbar, and UpdateTreeView().
Referenced by startup().
|
protectedslot |
Definition at line 205 of file src/terralib/qt/plugins/edit/Plugin.cpp.
References EditDelegate::addStashed(), te::qt::af::MapDisplay::getDisplay(), getLayerExplorer(), te::map::AbstractLayer::getTitle(), EditDelegate::isStached(), m_delegate, te::qt::af::evt::GetMapDisplay::m_display, te::qt::widgets::MapDisplay::refresh(), RemoveStash(), EditDelegate::removeStashed(), triggered(), and UpdateTreeView().
Referenced by startup().
|
protectedslot |
Definition at line 267 of file src/terralib/qt/plugins/edit/Plugin.cpp.
References getLayerExplorer(), m_delegate, and te::qt::widgets::LayerItemView::removeDelegate().
Referenced by shutdown(), and startup().
|
virtual |
This method will be called by applicatons to shutdown plugin's functionality.
| PluginShutdownException | It may throws an exception. |
Implements te::core::AbstractPlugin.
Definition at line 145 of file src/terralib/qt/plugins/edit/Plugin.cpp.
References te::common::Singleton< ApplicationController >::getInstance(), te::core::CppPlugin::m_initialized, onUpdateDelegate(), TE_LOG_TRACE, and TE_TR.
|
virtual |
This method will be called by applications to startup some plugin's functionality.
| PluginStartupException | It may throws an exception. |
Implements te::core::AbstractPlugin.
Definition at line 105 of file src/terralib/qt/plugins/edit/Plugin.cpp.
References EditDelegate::addStashed(), te::common::Singleton< ApplicationController >::getInstance(), GetStashedLayers(), m_action, m_delegate, te::core::CppPlugin::m_initialized, m_toolbar, onActionActivated(), onGeometriesChanged(), onStashedLayer(), onUpdateDelegate(), TE_LOG_TRACE, TE_TR, and triggered().
|
signal |
Referenced by drawStashed(), getLayerExplorer(), onActionActivated(), onApplicationTriggered(), onStashedLayer(), and startup().
|
protected |
Action used to call the process.
Definition at line 110 of file src/terralib/qt/plugins/edit/Plugin.h.
Referenced by startup().
|
protected |
Definition at line 112 of file src/terralib/qt/plugins/edit/Plugin.h.
Referenced by onApplicationTriggered(), onGeometriesChanged(), onStashedLayer(), onUpdateDelegate(), and startup().
|
protectedinherited |
Definition at line 73 of file src/terralib/core/plugin/CppPlugin.h.
Referenced by te::core::CppPlugin::initialized(), te::qt::plugins::wcs::Plugin::shutdown(), te::ce::Plugin::shutdown(), te::qt::plugins::ado::Plugin::shutdown(), te::qt::plugins::pgis::Plugin::shutdown(), te::ws::ogc::wcs::qtplugin::Plugin::shutdown(), te::qt::plugins::wfs::Plugin::shutdown(), te::qt::plugins::cellspace::Plugin::shutdown(), te::qt::plugins::terralib4::Plugin::shutdown(), te::qt::plugins::ogr::Plugin::shutdown(), te::qt::plugins::pgisRaster::Plugin::shutdown(), te::qt::plugins::addressgeocoding::Plugin::shutdown(), te::qt::plugins::wms::Plugin::shutdown(), te::qt::plugins::attributefill::Plugin::shutdown(), te::qt::plugins::gdal::Plugin::shutdown(), te::qt::plugins::st::Plugin::shutdown(), te::ws::ogc::wms::qtplugin::Plugin::shutdown(), te::qt::plugins::terramobile::Plugin::shutdown(), te::qt::plugins::mnt::Plugin::shutdown(), te::qt::plugins::tv::Plugin::shutdown(), te::wms::Module::shutdown(), te::wfs::Module::shutdown(), te::qt::plugins::sa::Plugin::shutdown(), te::wcs::Module::shutdown(), terralib4::Module::shutdown(), te::qt::plugins::vp::Plugin::shutdown(), te::ado::Module::shutdown(), te::qt::plugins::wtss::Plugin::shutdown(), shutdown(), te::ws::ogc::wcs::da::Module::shutdown(), te::ws::ogc::wms::da::Module::shutdown(), te::qt::plugins::rp::Plugin::shutdown(), te::qt::plugins::pgis::Plugin::startup(), te::qt::plugins::wcs::Plugin::startup(), te::ce::Plugin::startup(), te::qt::plugins::ado::Plugin::startup(), te::ws::ogc::wcs::qtplugin::Plugin::startup(), te::qt::plugins::terralib4::Plugin::startup(), te::qt::plugins::cellspace::Plugin::startup(), te::qt::plugins::wfs::Plugin::startup(), te::qt::plugins::addressgeocoding::Plugin::startup(), te::qt::plugins::ogr::Plugin::startup(), te::qt::plugins::pgisRaster::Plugin::startup(), te::qt::plugins::gdal::Plugin::startup(), te::qt::plugins::wms::Plugin::startup(), te::qt::plugins::attributefill::Plugin::startup(), te::wms::Module::startup(), te::wcs::Module::startup(), te::ws::ogc::wms::qtplugin::Plugin::startup(), te::wfs::Module::startup(), te::qt::plugins::st::Plugin::startup(), terralib4::Module::startup(), te::qt::plugins::terramobile::Plugin::startup(), te::ado::Module::startup(), te::qt::plugins::mnt::Plugin::startup(), te::qt::plugins::tv::Plugin::startup(), te::qt::plugins::sa::Plugin::startup(), te::qt::plugins::vp::Plugin::startup(), te::ws::ogc::wms::da::Module::startup(), te::ws::ogc::wcs::da::Module::startup(), te::qt::plugins::wtss::Plugin::startup(), startup(), and te::qt::plugins::rp::Plugin::startup().
|
protectedinherited |
Definition at line 72 of file src/terralib/core/plugin/CppPlugin.h.
Referenced by te::core::CppPlugin::info().
|
protected |
Main toolbar of TerraLib Edit Qt Plugin.
Definition at line 109 of file src/terralib/qt/plugins/edit/Plugin.h.
Referenced by drawStashed(), onActionActivated(), onApplicationTriggered(), onGeometriesChanged(), startup(), and ~Plugin().