27 #include "../../../../common/Config.h"
28 #include "../../../../common/Translator.h"
29 #include "../../../../common/Logger.h"
30 #include "../../../af/ApplicationController.h"
36 #include <QtGui/QAction>
37 #include <QtGui/QMenu>
38 #include <QtGui/QMenuBar>
41 : QObject(), te::plugin::
Plugin(pluginInfo)
69 m_showWindow =
new QAction(QIcon::fromTheme(
"tools-terralib4converter"),
"TerraLib 4 Converter...", mnu);
70 m_showWindow->setObjectName(
"Tools.TerraLib 4 Converter");
71 mnu->insertAction(act, m_showWindow);
74 connect(m_showWindow, SIGNAL(triggered()), SLOT(showWindow()));
89 m_initialized =
false;
97 if(dlg.exec() != QDialog::Accepted)
The basic information about a plugin.
QMenu * findMenu(const QString &id) const
Returns the menu registered with key id.
#define TE_QT_PLUGIN_TERRALIB4_TEXT_DOMAIN_DIR
It contains the translation catalog directory.
#define TE_QT_PLUGIN_TERRALIB4_TEXT_DOMAIN
It contains the name of the text domain used in the translation of messages in TerraLib TERRALIB4 Qt ...
void startup()
Do nothing! Just set plugin as started.
static ApplicationController & getInstance()
It gives access to the controller singleton.
Plugin(const te::plugin::PluginInfo &pluginInfo)
#define TE_LOG_TRACE(msg)
Use this tag in order to log a message to a specified logger with the TRACE level.
#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...
#define TE_ADD_TEXT_DOMAIN(domain, domaindir, codeset)
It adds the given text domain located at domain-dir with the given codeset to the multilingual system...
~Plugin()
Virtual destructor.
#define TE_QT_PLUGIN_TERRALIB4(message)
It marks a string in order to get translated. This is a special mark used in the TERRALIB4 QtPlugin o...
QWidget * getMainWindow() const
Returns main window.
void shutdown()
Do nothing! Just set plugin as stopped.
QAction * findAction(const QString &id) const
Returns the action identified by id or NULL if there's not an action identified by id...