diff --git a/ewol/object/Manager.cpp b/ewol/object/Manager.cpp index 26342d37..53d3abc7 100644 --- a/ewol/object/Manager.cpp +++ b/ewol/object/Manager.cpp @@ -17,7 +17,7 @@ ewol::object::Manager::Manager(ewol::Context& _context) : m_context(_context), - periodicCall(*this, "periodic", "Call every time system render"), + periodicCall(*this, "periodic", "Call every time system render", true), m_applWakeUpTime(0), m_lastPeriodicCallTime(0) { EWOL_DEBUG(" == > init Object-Manager"); diff --git a/ewol/signal/Base.cpp b/ewol/signal/Base.cpp index 444ba2af..2e7f62ae 100644 --- a/ewol/signal/Base.cpp +++ b/ewol/signal/Base.cpp @@ -18,12 +18,14 @@ ewol::signal::Base::Base(ewol::signal::Interface& _signalInterfaceLink, const std::string& _name, - const std::string& _description) : + const std::string& _description, + bool _periodic) : m_signalInterfaceLink(_signalInterfaceLink), m_name(_name), m_description(_description), m_callInProgress(0), - m_someOneRemoveInCall(false) { + m_someOneRemoveInCall(false), + m_periodic(_periodic) { // add a reference on the current signal ... m_signalInterfaceLink.signalAdd(this); } diff --git a/ewol/signal/Base.h b/ewol/signal/Base.h index f2a3d60d..6dd1928a 100644 --- a/ewol/signal/Base.h +++ b/ewol/signal/Base.h @@ -25,16 +25,19 @@ namespace ewol { std::string m_description; int32_t m_callInProgress; bool m_someOneRemoveInCall; + bool m_periodic; public: /** * @brief Create a parameter with a specific type. * @param[in] _signalInterfaceLink reference on the signal list. * @param[in] _name Static name of the parameter. * @param[in] _description description of the parameter. + * @param[in] _periodic Customisation of the log display tag at true to down debug lebel at verbose. */ Base(ewol::signal::Interface& _signalInterfaceLink, - const std::string& _name, - const std::string& _description = ""); + const std::string& _name, + const std::string& _description = "", + bool _periodic = false); /** * @brief Destructor. */ diff --git a/ewol/signal/Signal.h b/ewol/signal/Signal.h index 2905f541..e029a100 100644 --- a/ewol/signal/Signal.h +++ b/ewol/signal/Signal.h @@ -23,18 +23,17 @@ namespace ewol { std::function>> m_callerListInCallback; // temporaty list (when add one in call process) public: /** - * @brief Create a parameter with a specific type. - * @param[in] _signalInterfaceLink reference on the parameter lister. - * @param[in] _name Static name of the parameter. - * @param[in] _defaultValue Default value of the parameter. - * @param[in] _min Minumum value. - * @param[in] _max Maximum value. - * @param[in] _description description of the parameter. + * @brief Create a signal with a specific type. + * @param[in] _signalInterfaceLink reference on the signal lister. + * @param[in] _name Static name of the signal. + * @param[in] _description Description of the signal. + * @param[in] _periodic Customisation of the log display tag at true to down debug lebel at verbose. */ Signal(ewol::signal::Interface& _signalInterfaceLink, const std::string& _name, - const std::string& _description = "") : - signal::Base(_signalInterfaceLink, _name, _description) { + const std::string& _description = "", + bool _periodic = false) : + signal::Base(_signalInterfaceLink, _name, _description, _periodic) { }; /** @@ -144,7 +143,11 @@ namespace ewol { int32_t tmpID = m_uidSignal++; #endif m_callInProgress++; - EWOL_DEBUG(ewol::signal::logIndent(m_signalCallLevel-1) << "emit signal{" << tmpID << "} : signal='" << m_name << "' data='" << etk::to_string(_data) << "' to: " << m_callerList.size() << " element(s)"); + if (m_periodic == true) { + EWOL_VERBOSE(ewol::signal::logIndent(m_signalCallLevel-1) << "emit signal{" << tmpID << "} : signal='" << m_name << "' data='" << etk::to_string(_data) << "' to: " << m_callerList.size() << " element(s)"); + } else { + EWOL_DEBUG(ewol::signal::logIndent(m_signalCallLevel-1) << "emit signal{" << tmpID << "} : signal='" << m_name << "' data='" << etk::to_string(_data) << "' to: " << m_callerList.size() << " element(s)"); + } auto it(m_callerList.begin()); while (it != m_callerList.end()) { std::shared_ptr destObject = it->first.lock(); @@ -153,7 +156,11 @@ namespace ewol { EWOL_DEBUG(ewol::signal::logIndent(m_signalCallLevel-1) << " nullptr dest"); continue; } - EWOL_DEBUG(ewol::signal::logIndent(m_signalCallLevel-1) << " signal{" << tmpID << "} :");// [" << destObject->getId() << "]" << destObject->getObjectType()); + if (m_periodic == true) { + EWOL_VERBOSE(ewol::signal::logIndent(m_signalCallLevel-1) << " signal{" << tmpID << "} :");// [" << destObject->getId() << "]" << destObject->getObjectType()); + } else { + EWOL_DEBUG(ewol::signal::logIndent(m_signalCallLevel-1) << " signal{" << tmpID << "} :");// [" << destObject->getId() << "]" << destObject->getObjectType()); + } it->second(_data); ++it; } @@ -194,18 +201,17 @@ namespace ewol { std::vector, std::function>> m_callerListInCallback; public: /** - * @brief Create a parameter with a specific type. - * @param[in] _signalInterfaceLink reference on the parameter lister. - * @param[in] _name Static name of the parameter. - * @param[in] _defaultValue Default value of the parameter. - * @param[in] _min Minumum value. - * @param[in] _max Maximum value. - * @param[in] _description description of the parameter. + * @brief Create a signal with a specific 'void' type. + * @param[in] _signalInterfaceLink reference on the signal lister. + * @param[in] _name Static name of the signal. + * @param[in] _description Description of the signal. + * @param[in] _periodic Customisation of the log display tag at true to down debug lebel at verbose. */ Signal(ewol::signal::Interface& _signalInterfaceLink, const std::string& _name, - const std::string& _description = "") : - signal::Base(_signalInterfaceLink, _name, _description) { + const std::string& _description = "", + bool _periodic = false) : + signal::Base(_signalInterfaceLink, _name, _description, _periodic) { }; /** @@ -277,7 +283,11 @@ namespace ewol { int32_t tmpID = m_uidSignal++; #endif m_callInProgress++; - EWOL_DEBUG(ewol::signal::logIndent(m_signalCallLevel-1) << "emit signal{" << tmpID << "} : signal='" << m_name << "' to: " << m_callerList.size() << " element(s)"); + if (m_periodic == true) { + EWOL_VERBOSE(ewol::signal::logIndent(m_signalCallLevel-1) << "emit signal{" << tmpID << "} : signal='" << m_name << "' to: " << m_callerList.size() << " element(s)"); + } else { + EWOL_DEBUG(ewol::signal::logIndent(m_signalCallLevel-1) << "emit signal{" << tmpID << "} : signal='" << m_name << "' to: " << m_callerList.size() << " element(s)"); + } auto it(m_callerList.begin()); while (it != m_callerList.end()) { std::shared_ptr destObject = it->first.lock(); @@ -286,7 +296,11 @@ namespace ewol { EWOL_DEBUG(ewol::signal::logIndent(m_signalCallLevel-1) << " nullptr dest"); continue; } - EWOL_DEBUG(ewol::signal::logIndent(m_signalCallLevel-1) << " signal{" << tmpID << "} :");// [" << destObject->getId() << "]" << destObject->getObjectType()); + if (m_periodic == true) { + EWOL_VERBOSE(ewol::signal::logIndent(m_signalCallLevel-1) << " signal{" << tmpID << "} :");// [" << destObject->getId() << "]" << destObject->getObjectType()); + } else { + EWOL_DEBUG(ewol::signal::logIndent(m_signalCallLevel-1) << " signal{" << tmpID << "} :");// [" << destObject->getId() << "]" << destObject->getObjectType()); + } it->second(); ++it; } diff --git a/ewol/widget/Windows.cpp b/ewol/widget/Windows.cpp index 6bdefcb8..1c8e169a 100644 --- a/ewol/widget/Windows.cpp +++ b/ewol/widget/Windows.cpp @@ -73,7 +73,7 @@ std::shared_ptr ewol::widget::Windows::getWidgetAtPos(const vec2& } void ewol::widget::Windows::sysDraw() { - EWOL_DEBUG("Drow on " << m_size); + EWOL_VERBOSE("Draw on " << m_size); // set the size of the open GL system gale::openGL::setViewPort(vec2(0,0), m_size); gale::openGL::disable(gale::openGL::flag_dither);