27 #include "terralib_config.h" 
   28 #include "../../../common/Config.h" 
   29 #include "../../../common/Translator.h" 
   30 #include "../../../common/Logger.h" 
   31 #include "../../af/ApplicationController.h" 
   34 #if defined(TERRALIB_APACHE_LOG4CXX_ENABLED) && defined(TERRALIB_LOGGER_ENABLED) 
   36 #include <log4cxx/basicconfigurator.h> 
   37 #include <log4cxx/consoleappender.h> 
   38 #include <log4cxx/fileappender.h> 
   39 #include <log4cxx/helpers/pool.h> 
   40 #include <log4cxx/helpers/transcoder.h> 
   41 #include <log4cxx/logger.h> 
   42 #include <log4cxx/logmanager.h> 
   43 #include <log4cxx/logstring.h> 
   44 #include <log4cxx/simplelayout.h> 
   45 #include <log4cxx/patternlayout.h> 
   46 #include <log4cxx/rollingfileappender.h> 
   49 #ifdef TE_QT_PLUGIN_LAYOUT_HAVE_LAYOUTEDITOR 
   58   : te::plugin::
Plugin(pluginInfo), m_layoutMenu(0)
 
   88   m_layoutMenu = 
new QMenu(pluginMenu);
 
   89   m_layoutMenu->setIcon(QIcon::fromTheme(
"map-layout-icon"));
 
   91   pluginMenu->insertMenu(pluginsSeparator, m_layoutMenu);
 
   93   m_layoutMenu->setTitle(
TE_TR(
"Map Layout"));
 
  100   path += 
"/log/terralib_map_layout.log";
 
  102 #if defined(TERRALIB_APACHE_LOG4CXX_ENABLED) && defined(TERRALIB_LOGGER_ENABLED) 
  103   std::string layout = 
"%d{ISO8601} [%t] %-5p %c - %m%n";
 
  104   log4cxx::LogString lString(layout.begin(), layout.end());
 
  106   log4cxx::FileAppender* fileAppender = 
new log4cxx::RollingFileAppender(log4cxx::LayoutPtr(
new log4cxx::PatternLayout(lString)),
 
  109   log4cxx::helpers::Pool p;
 
  110   fileAppender->activateOptions(p);
 
  112   log4cxx::BasicConfigurator::configure(log4cxx::AppenderPtr(fileAppender));
 
  113   log4cxx::Logger::getRootLogger()->setLevel(log4cxx::Level::getDebug());
 
  115   log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(
"maplayout");
 
  116   logger->setAdditivity(
false);
 
  117   logger->addAppender(fileAppender);
 
  119   m_initialized = 
true;
 
  137 #if defined(TERRALIB_APACHE_LOG4CXX_ENABLED) && defined(TERRALIB_LOGGER_ENABLED) 
  138   log4cxx::LogManager::shutdown();
 
  143   m_initialized = 
false;
 
  148 #ifdef TE_QT_PLUGIN_LAYOUT_HAVE_LAYOUTEDITOR 
  155 #ifdef TE_QT_PLUGIN_LAYOUT_HAVE_LAYOUTEDITOR 
#define TE_LOG_TRACE(msg)
Use this tag in order to log a message to a specified logger with the TRACE level. 
 
This file defines the Transformation class. 
 
This class register the contrast action into VP Plugin. 
 
#define TE_TR(message)
It marks a string in order to get translated. 
 
#define TE_QT_PLUGIN_LAYOUT_TEXT_DOMAIN
It contains the name of the text domain used in the translation of messages in TerraLib LAYOUT Qt Plu...
 
~Plugin()
Virtual destructor. 
 
#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 ApplicationController & getInstance()
It returns a reference to the singleton instance. 
 
void startup()
Do nothing! Just set plugin as started. 
 
#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(const te::plugin::PluginInfo &pluginInfo)
 
void unRegisterActions()
Function used to unregister all raster processing actions. 
 
void registerActions()
Function used to register all raster processing actions. 
 
bool decode(std::string &s)
Decode the pct-encoded (hex) sequences, if any, return success. 
 
#define TE_QT_PLUGIN_LAYOUT_TEXT_DOMAIN_DIR
It contains the translation catalog directory. 
 
void shutdown()
Do nothing! Just set plugin as stopped. 
 
The basic information about a plugin.