[DEV] change log system
Conflicts: external/ewolsa
This commit is contained in:
parent
b3602ceb14
commit
281f3dfc84
2
external/agg
vendored
2
external/agg
vendored
@ -1 +1 @@
|
||||
Subproject commit db2626136bd35e974a24c64b1b50c4187de30bdf
|
||||
Subproject commit 8bf2d17b61989d8fbe01cbd1228147ab52e19d23
|
2
external/airtaudio
vendored
2
external/airtaudio
vendored
@ -1 +1 @@
|
||||
Subproject commit 9b55657ef1ce265f95321fc9468cd28b12a7bdfb
|
||||
Subproject commit 55e1d5db4b2c0ac979c4334bd1882f1a1f7c909a
|
2
external/eaudiofx
vendored
2
external/eaudiofx
vendored
@ -1 +1 @@
|
||||
Subproject commit 5f94203fff63da9a37122f550e749d3d41e88ea4
|
||||
Subproject commit 28982a1bbddc3d7362b6caac9df01ccb2c9f8c71
|
2
external/egami
vendored
2
external/egami
vendored
@ -1 +1 @@
|
||||
Subproject commit 4c336334a8643fdfda6ab5b2627369cacf1fb487
|
||||
Subproject commit 889807e0b9b88890a9c6734e054da5edf23e59d9
|
2
external/ege
vendored
2
external/ege
vendored
@ -1 +1 @@
|
||||
Subproject commit 2b31c01fabad98b6cdfc842e9ff646f37534b9f0
|
||||
Subproject commit 000bde321dedc1ab709589a5f4cf057fe7825a63
|
2
external/ejson
vendored
2
external/ejson
vendored
@ -1 +1 @@
|
||||
Subproject commit 989ced9c90865dda4b0d6d65a4cf7eef99d9a8c1
|
||||
Subproject commit 86116be4dbcd8809b82a3bf607845c9bb4d5424b
|
2
external/esvg
vendored
2
external/esvg
vendored
@ -1 +1 @@
|
||||
Subproject commit 9229886513957a175637e84eadc0a4ffda7d8a14
|
||||
Subproject commit 95215e438d27f4ee715a1bf33fa491d89cb98f15
|
2
external/etk
vendored
2
external/etk
vendored
@ -1 +1 @@
|
||||
Subproject commit e730ba434e856046ca4c8c1c5c98b960ba482350
|
||||
Subproject commit 7f2fe7980f48cab07077bce7e192f08fc7e7cf34
|
2
external/ewolsa
vendored
2
external/ewolsa
vendored
@ -1 +1 @@
|
||||
Subproject commit 34ac6fe9d201e995401b0fc8bdbb70fe3bd40970
|
||||
Subproject commit 7bad0ec956e8bfd8eb06d8a55572bfe6012c2e44
|
2
external/exml
vendored
2
external/exml
vendored
@ -1 +1 @@
|
||||
Subproject commit a231aa2305055f739ce2f81f3e4b9b631b5a0551
|
||||
Subproject commit 92ea8abb9e66eee0be8fa1b70dc23ed4374615d6
|
2
monk
2
monk
@ -1 +1 @@
|
||||
Subproject commit 7654eea321b123e9af6b76f0d9e708e92d9448e4
|
||||
Subproject commit aff1fdf89a04b8a4594c2742f875614e56cf8a31
|
@ -264,7 +264,7 @@ vec2 ewol::Dimension::getFoot(void) const {
|
||||
return ewol::Dimension::getMillimeter()*millimeterToFoot;
|
||||
}
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, enum ewol::Dimension::distance _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, enum ewol::Dimension::distance _obj) {
|
||||
switch(_obj) {
|
||||
case ewol::Dimension::Pourcent:
|
||||
_os << "%";
|
||||
@ -294,7 +294,7 @@ etk::CCout& ewol::operator <<(etk::CCout& _os, enum ewol::Dimension::distance _o
|
||||
return _os;
|
||||
}
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, const ewol::Dimension& _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, const ewol::Dimension& _obj) {
|
||||
_os << _obj.get(_obj.getType()) << _obj.getType();
|
||||
return _os;
|
||||
}
|
||||
|
@ -204,8 +204,8 @@ namespace ewol {
|
||||
static float getWindowsDiag(enum ewol::Dimension::distance _type);
|
||||
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, enum ewol::Dimension::distance _obj);
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::Dimension& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, enum ewol::Dimension::distance _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::Dimension& _obj);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <ewol/Padding.h>
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, const ewol::Padding& _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, const ewol::Padding& _obj) {
|
||||
_os << "{";
|
||||
_os << _obj.xLeft();
|
||||
_os << ",";
|
||||
|
@ -80,7 +80,7 @@ namespace ewol {
|
||||
}
|
||||
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::Padding& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::Padding& _obj);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef __EWOL_CONFIG_FONT_H__
|
||||
#define __EWOL_CONFIG_FONT_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/types.h>
|
||||
#include <ewol/debug.h>
|
||||
|
||||
namespace ewol {
|
||||
namespace context {
|
||||
|
@ -312,26 +312,27 @@ ewol::Context::Context(int32_t _argc, const char* _argv[]) :
|
||||
// parse the debug level:
|
||||
for(int32_t iii = 0; iii < m_commandLine.size() ; ++iii) {
|
||||
if (m_commandLine.get(iii) == "-l0") {
|
||||
debug::setGeneralLevel(etk::logLevelNone);
|
||||
etk::log::setLevel(etk::log::logLevelNone);
|
||||
} else if (m_commandLine.get(iii) == "-l1") {
|
||||
debug::setGeneralLevel(etk::logLevelCritical);
|
||||
etk::log::setLevel(etk::log::logLevelCritical);
|
||||
} else if (m_commandLine.get(iii) == "-l2") {
|
||||
debug::setGeneralLevel(etk::logLevelError);
|
||||
etk::log::setLevel(etk::log::logLevelError);
|
||||
} else if (m_commandLine.get(iii) == "-l3") {
|
||||
debug::setGeneralLevel(etk::logLevelWarning);
|
||||
etk::log::setLevel(etk::log::logLevelWarning);
|
||||
} else if (m_commandLine.get(iii) == "-l4") {
|
||||
debug::setGeneralLevel(etk::logLevelInfo);
|
||||
etk::log::setLevel(etk::log::logLevelInfo);
|
||||
} else if (m_commandLine.get(iii) == "-l5") {
|
||||
debug::setGeneralLevel(etk::logLevelDebug);
|
||||
etk::log::setLevel(etk::log::logLevelDebug);
|
||||
} else if( m_commandLine.get(iii) == "-l6"
|
||||
|| m_commandLine.get(iii) == "-l7"
|
||||
|| m_commandLine.get(iii) == "-l8"
|
||||
|| m_commandLine.get(iii) == "-l9") {
|
||||
debug::setGeneralLevel(etk::logLevelVerbose);
|
||||
etk::log::setLevel(etk::log::logLevelVerbose);
|
||||
} else if (m_commandLine.get(iii) == "-fps") {
|
||||
m_displayFps=true;
|
||||
} else if (m_commandLine.get(iii) == "--dbg-file") {
|
||||
etk::cout.setOutputFile(true);
|
||||
// TODO : Set it back ...
|
||||
//etk::cout.setOutputFile(true);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
#ifndef __EWOL_CONTEXT_H__
|
||||
#define __EWOL_CONTEXT_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/os/Fifo.h>
|
||||
#include <ewol/debug.h>
|
||||
#include <ewol/ewol.h>
|
||||
#include <ewol/key/key.h>
|
||||
#include <ewol/object/Manager.h>
|
||||
|
@ -451,7 +451,7 @@ class X11Interface : public ewol::Context {
|
||||
//EWOL_DEBUG("X11 event : " << event.type << " = \"EnterNotify\" (" << (float)event.xcrossing.x << "," << (float)event.xcrossing.y << ")");
|
||||
//gui_uniqueWindows->GenEventInput(0, ewol::EVENT_INPUT_TYPE_ENTER, (float)event.xcrossing.x, (float)event.xcrossing.y);
|
||||
m_curentGrabDelta -= vec2(m_originX, -m_originY);
|
||||
EWOL_DEBUG("change grab delta of : " << vec2(m_originX, m_originY) );
|
||||
EWOL_VERBOSE("change grab delta of : " << vec2(m_originX, m_originY) );
|
||||
break;
|
||||
case LeaveNotify:
|
||||
X11_INFO("X11 event LeaveNotify");
|
||||
@ -459,7 +459,7 @@ class X11Interface : public ewol::Context {
|
||||
m_cursorEventY = (m_currentHeight-event.xcrossing.y);
|
||||
//EWOL_DEBUG("X11 event : " << event.type << " = \"LeaveNotify\" (" << (float)event.xcrossing.x << "," << (float)event.xcrossing.y << ")");
|
||||
m_curentGrabDelta += vec2(m_originX, -m_originY);
|
||||
EWOL_DEBUG("change grab delta of : " << vec2(m_originX, m_originY) );
|
||||
EWOL_VERBOSE("change grab delta of : " << vec2(m_originX, m_originY) );
|
||||
break;
|
||||
case MotionNotify:
|
||||
X11_INFO("X11 event MotionNotify");
|
||||
|
@ -41,7 +41,7 @@ static const char* clipboardDescriptionString[ewol::context::clipBoard::clipboar
|
||||
"clipboardCount"
|
||||
};
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, const enum ewol::context::clipBoard::clipboardListe _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, const enum ewol::context::clipBoard::clipboardListe _obj) {
|
||||
if (_obj >= 0 && _obj <ewol::context::clipBoard::clipboardCount) {
|
||||
_os << clipboardDescriptionString[_obj];
|
||||
} else {
|
||||
|
@ -10,7 +10,6 @@
|
||||
#define __EWOL_CLIPBOARD_H__
|
||||
|
||||
#include <ewol/debug.h>
|
||||
#include <etk/types.h>
|
||||
|
||||
// TODO : Remove this ... ==> set it in the context ....
|
||||
namespace ewol {
|
||||
@ -77,7 +76,7 @@ namespace ewol {
|
||||
/**
|
||||
* @brief Debug operator To display the curent element in a Human redeable information
|
||||
*/
|
||||
etk::CCout& operator <<(etk::CCout& _os, const enum ewol::context::clipBoard::clipboardListe _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const enum ewol::context::clipBoard::clipboardListe _obj);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef __EWOL_COMMAND_LINE_H__
|
||||
#define __EWOL_COMMAND_LINE_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/types.h>
|
||||
#include <ewol/debug.h>
|
||||
|
||||
namespace ewol {
|
||||
namespace context {
|
||||
|
@ -33,7 +33,7 @@ static const char* cursorDescriptionString[ewol::context::cursorCount+1] = {
|
||||
"cursorCount"
|
||||
};
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, const enum ewol::context::cursorDisplay _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, const enum ewol::context::cursorDisplay _obj) {
|
||||
if (_obj >= 0 && _obj <ewol::context::cursorCount) {
|
||||
_os << cursorDescriptionString[_obj];
|
||||
} else {
|
||||
|
@ -9,8 +9,8 @@
|
||||
#ifndef __EWOL_CURSOR_H__
|
||||
#define __EWOL_CURSOR_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/Stream.h>
|
||||
#include <ewol/debug.h>
|
||||
|
||||
namespace ewol {
|
||||
namespace context {
|
||||
enum cursorDisplay {
|
||||
@ -42,7 +42,7 @@ namespace ewol {
|
||||
/**
|
||||
* @brief Debug operator To display the curent element in a Human readable information
|
||||
*/
|
||||
etk::CCout& operator <<(etk::CCout& _os, const enum ewol::context::cursorDisplay _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const enum ewol::context::cursorDisplay _obj);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -8,4 +8,7 @@
|
||||
|
||||
#include <ewol/debug.h>
|
||||
|
||||
const char * g_ewolLibName = "ewol ";
|
||||
int32_t ewol::getLogId(void) {
|
||||
static int32_t g_val = etk::log::registerInstance("ewol");
|
||||
return g_val;
|
||||
}
|
||||
|
@ -9,20 +9,44 @@
|
||||
#ifndef __EWOL_DEBUG_H__
|
||||
#define __EWOL_DEBUG_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/debugGeneric.h>
|
||||
#include <etk/log.h>
|
||||
|
||||
extern const char * g_ewolLibName;
|
||||
namespace ewol {
|
||||
int32_t getLogId(void);
|
||||
};
|
||||
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
||||
#define EWOL_BASE(info,data) \
|
||||
do { \
|
||||
if (info <= etk::log::getLevel(ewol::getLogId())) { \
|
||||
std::stringbuf sb; \
|
||||
std::ostream tmpStream(&sb); \
|
||||
tmpStream << data; \
|
||||
etk::log::logStream(ewol::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#define EWOL_CRITICAL(data) ETK_CRITICAL(g_ewolLibName, data)
|
||||
#define EWOL_WARNING(data) ETK_WARNING(g_ewolLibName, data)
|
||||
#define EWOL_ERROR(data) ETK_ERROR(g_ewolLibName, data)
|
||||
#define EWOL_INFO(data) ETK_INFO(g_ewolLibName, data)
|
||||
#define EWOL_DEBUG(data) ETK_DEBUG(g_ewolLibName, data)
|
||||
#define EWOL_VERBOSE(data) ETK_VERBOSE(g_ewolLibName, data)
|
||||
#define EWOL_ASSERT(cond, data) ETK_ASSERT(g_ewolLibName, cond, data)
|
||||
#define EWOL_CHECK_INOUT(cond) ETK_CHECK_INOUT(g_ewolLibName, cond)
|
||||
#define EWOL_TODO(cond) ETK_TODO(g_ewolLibName, cond)
|
||||
#define EWOL_CRITICAL(data) EWOL_BASE(1, data)
|
||||
#define EWOL_ERROR(data) EWOL_BASE(2, data)
|
||||
#define EWOL_WARNING(data) EWOL_BASE(3, data)
|
||||
#ifdef DEBUG
|
||||
#define EWOL_INFO(data) EWOL_BASE(4, data)
|
||||
#define EWOL_DEBUG(data) EWOL_BASE(5, data)
|
||||
#define EWOL_VERBOSE(data) EWOL_BASE(6, data)
|
||||
#define EWOL_TODO(data) EWOL_BASE(4, "TODO : " << data)
|
||||
#else
|
||||
#define EWOL_INFO(data) do { } while(false)
|
||||
#define EWOL_DEBUG(data) do { } while(false)
|
||||
#define EWOL_VERBOSE(data) do { } while(false)
|
||||
#define EWOL_TODO(data) do { } while(false)
|
||||
#endif
|
||||
|
||||
#define EWOL_ASSERT(cond,data) \
|
||||
do { \
|
||||
if (!(cond)) { \
|
||||
EWOL_CRITICAL(data); \
|
||||
assert(!#cond); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#undef __class__
|
||||
#define __class__ "event::Entry"
|
||||
|
||||
etk::CCout& ewol::event::operator <<(etk::CCout& _os, const ewol::event::Entry& _obj) {
|
||||
std::ostream& ewol::event::operator <<(std::ostream& _os, const ewol::event::Entry& _obj) {
|
||||
_os << "{type=" << _obj.getType();
|
||||
_os << " status=" << _obj.getStatus();
|
||||
if (_obj.getType() == ewol::key::keyboardChar) {
|
||||
@ -21,7 +21,7 @@ etk::CCout& ewol::event::operator <<(etk::CCout& _os, const ewol::event::Entry&
|
||||
return _os;
|
||||
}
|
||||
|
||||
etk::CCout& ewol::event::operator <<(etk::CCout& _os, const ewol::event::EntrySystem& _obj) {
|
||||
std::ostream& ewol::event::operator <<(std::ostream& _os, const ewol::event::EntrySystem& _obj) {
|
||||
_os << _obj.m_event;
|
||||
return _os;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace ewol {
|
||||
return m_unicodeData;
|
||||
};
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::event::Entry& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::event::Entry& _obj);
|
||||
|
||||
class EntrySystem {
|
||||
public:
|
||||
@ -69,7 +69,7 @@ namespace ewol {
|
||||
};
|
||||
ewol::event::Entry m_event;
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::event::EntrySystem& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::event::EntrySystem& _obj);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#undef __class__
|
||||
#define __class__ "event::Input"
|
||||
|
||||
etk::CCout& ewol::event::operator <<(etk::CCout& _os, const ewol::event::Input& _obj) {
|
||||
std::ostream& ewol::event::operator <<(std::ostream& _os, const ewol::event::Input& _obj) {
|
||||
_os << "{type=" << _obj.getType();
|
||||
_os << " status=" << _obj.getStatus();
|
||||
_os << " id=" << _obj.getId();
|
||||
@ -20,7 +20,7 @@ etk::CCout& ewol::event::operator <<(etk::CCout& _os, const ewol::event::Input&
|
||||
return _os;
|
||||
}
|
||||
|
||||
etk::CCout& ewol::event::operator <<(etk::CCout& _os, const ewol::event::InputSystem& _obj) {
|
||||
std::ostream& ewol::event::operator <<(std::ostream& _os, const ewol::event::InputSystem& _obj) {
|
||||
_os << _obj.m_event;
|
||||
return _os;
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ namespace ewol {
|
||||
// TODO : Call the entry element ant rest it ...
|
||||
}
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::event::Input& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::event::Input& _obj);
|
||||
|
||||
class InputSystem {
|
||||
public:
|
||||
@ -102,7 +102,7 @@ namespace ewol {
|
||||
return m_realIdEvent;
|
||||
};
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::event::InputSystem& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::event::InputSystem& _obj);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#undef __class__
|
||||
#define __class__ "event::Time"
|
||||
|
||||
etk::CCout& ewol::event::operator <<(etk::CCout& _os, const ewol::event::Time& _obj) {
|
||||
std::ostream& ewol::event::operator <<(std::ostream& _os, const ewol::event::Time& _obj) {
|
||||
_os << "{time=" << _obj.getTime();
|
||||
_os << " uptime=" << _obj.getApplUpTime();
|
||||
_os << " delta=" << _obj.getDelta();
|
||||
|
@ -59,7 +59,7 @@ namespace ewol {
|
||||
return m_timeDeltaCall;
|
||||
};
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::event::Time& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::event::Time& _obj);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -201,7 +201,7 @@ void ewol::key::Special::setInsert(bool _value) {
|
||||
}
|
||||
}
|
||||
|
||||
etk::CCout& ewol::key::operator <<(etk::CCout& _os, const ewol::key::Special _obj) {
|
||||
std::ostream& ewol::key::operator <<(std::ostream& _os, const ewol::key::Special _obj) {
|
||||
_os << " capLock=" << _obj.getCapsLock();
|
||||
_os << " shift=" << _obj.getShift();
|
||||
_os << " ctrl=" << _obj.getCtrl();
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef __EWOL_KEY_SPECIAL_H__
|
||||
#define __EWOL_KEY_SPECIAL_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/Stream.h>
|
||||
#include <ewol/debug.h>
|
||||
#include <ewol/key/keyboard.h>
|
||||
|
||||
namespace ewol {
|
||||
@ -113,7 +112,7 @@ namespace ewol {
|
||||
*/
|
||||
void update(enum ewol::key::keyboard _move, bool _isDown);
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::key::Special _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::key::Special _obj);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -49,7 +49,7 @@ static const char* keyboardDescriptionString[ewol::key::keyboardCount+1] = {
|
||||
"keyboardCount"
|
||||
};
|
||||
|
||||
etk::CCout& ewol::key::operator <<(etk::CCout& _os, const enum ewol::key::keyboard _obj) {
|
||||
std::ostream& ewol::key::operator <<(std::ostream& _os, const enum ewol::key::keyboard _obj) {
|
||||
if (_obj >= 0 && _obj <ewol::key::keyboardCount) {
|
||||
_os << keyboardDescriptionString[_obj];
|
||||
} else {
|
||||
@ -70,7 +70,7 @@ static const char* keyboardSystemDescriptionString[ewol::key::keyboardSystemCoun
|
||||
"keyboardSystemCount"
|
||||
};
|
||||
|
||||
etk::CCout& ewol::key::operator <<(etk::CCout& _os, const enum ewol::key::keyboardSystem _obj) {
|
||||
std::ostream& ewol::key::operator <<(std::ostream& _os, const enum ewol::key::keyboardSystem _obj) {
|
||||
if (_obj >= 0 && _obj <ewol::key::keyboardSystemCount) {
|
||||
_os << keyboardSystemDescriptionString[_obj];
|
||||
} else {
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef __EWOL_KEY_KEYBOARD_H__
|
||||
#define __EWOL_KEY_KEYBOARD_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/Stream.h>
|
||||
#include <ewol/debug.h>
|
||||
|
||||
namespace ewol {
|
||||
namespace key {
|
||||
@ -61,7 +60,7 @@ namespace ewol {
|
||||
/**
|
||||
* @brief Debug operator To display the curent element in a Human redeable information
|
||||
*/
|
||||
etk::CCout& operator <<(etk::CCout& _os, const enum ewol::key::keyboard _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const enum ewol::key::keyboard _obj);
|
||||
|
||||
enum keyboardSystem {
|
||||
keyboardSystemUnknow = 0, //!< Unknown keyboard system key
|
||||
@ -74,7 +73,7 @@ namespace ewol {
|
||||
keyboardSystemBack, //!< Hardware Back key
|
||||
keyboardSystemCount //!< number of posible System key
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const enum ewol::key::keyboardSystem _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const enum ewol::key::keyboardSystem _obj);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -26,7 +26,7 @@ static const char* statusDescriptionString[ewol::key::statusCount+1] = {
|
||||
"statusCount"
|
||||
};
|
||||
|
||||
etk::CCout& ewol::key::operator <<(etk::CCout& _os, const enum ewol::key::status _obj) {
|
||||
std::ostream& ewol::key::operator <<(std::ostream& _os, const enum ewol::key::status _obj) {
|
||||
if (_obj >= 0 && _obj <ewol::key::statusCount) {
|
||||
_os << statusDescriptionString[_obj];
|
||||
} else {
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef __EWOL_KEY_STATUS_H__
|
||||
#define __EWOL_KEY_STATUS_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/Stream.h>
|
||||
#include <ewol/debug.h>
|
||||
|
||||
namespace ewol {
|
||||
namespace key {
|
||||
@ -37,7 +36,7 @@ namespace ewol {
|
||||
/**
|
||||
* @brief Debug operator To display the curent element in a Human redeable information
|
||||
*/
|
||||
etk::CCout& operator <<(etk::CCout& _os, const enum ewol::key::status _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const enum ewol::key::status _obj);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -17,7 +17,7 @@ static const char* typeDescriptionString[ewol::key::typeCount+1] = {
|
||||
"typeCount"
|
||||
};
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, const enum ewol::key::type _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, const enum ewol::key::type _obj) {
|
||||
if (_obj >= 0 && _obj < ewol::key::typeCount) {
|
||||
_os << typeDescriptionString[_obj];
|
||||
} else {
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef __EWOL_KEY_TYPE_H__
|
||||
#define __EWOL_KEY_TYPE_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/Stream.h>
|
||||
#include <ewol/debug.h>
|
||||
|
||||
namespace ewol {
|
||||
namespace key {
|
||||
@ -28,7 +27,7 @@ namespace ewol {
|
||||
/**
|
||||
* @brief Debug operator To display the curent element in a Human redeable information
|
||||
*/
|
||||
etk::CCout& operator <<(etk::CCout& _os, const enum ewol::key::type _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const enum ewol::key::type _obj);
|
||||
};
|
||||
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#undef __class__
|
||||
#define __class__ "object::Config"
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, const ewol::object::Config& _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, const ewol::object::Config& _obj) {
|
||||
_os << "{";
|
||||
_os << "config=\"" << _obj.getConfig() << "\"";
|
||||
_os << " data=\"" << _obj.getData() << "\"}";
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef __EWOL_OBJECT_CONFIG_H__
|
||||
#define __EWOL_OBJECT_CONFIG_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/Stream.h>
|
||||
#include <ewol/debug.h>
|
||||
|
||||
namespace ewol {
|
||||
namespace object {
|
||||
@ -39,7 +38,7 @@ namespace ewol {
|
||||
};
|
||||
};
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::object::Config& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::object::Config& _obj);
|
||||
};
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#undef __class__
|
||||
#define __class__ "object::ConfigElement"
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, const ewol::object::ConfigElement& _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, const ewol::object::ConfigElement& _obj) {
|
||||
_os << "{";
|
||||
if (NULL != _obj.getConfig()) {
|
||||
_os << "config=\"" << _obj.getConfig() << "\"";
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef __EWOL_OBJECT_CONFIG_ELEMENT_H__
|
||||
#define __EWOL_OBJECT_CONFIG_ELEMENT_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/Stream.h>
|
||||
#include <ewol/debug.h>
|
||||
|
||||
namespace ewol {
|
||||
namespace object {
|
||||
@ -52,7 +51,7 @@ namespace ewol {
|
||||
};
|
||||
};
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::object::ConfigElement& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::object::ConfigElement& _obj);
|
||||
};
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#undef __class__
|
||||
#define __class__ "object/Message"
|
||||
|
||||
etk::CCout& ewol::object::operator <<(etk::CCout& _os, const ewol::object::Message& _obj) {
|
||||
std::ostream& ewol::object::operator <<(std::ostream& _os, const ewol::object::Message& _obj) {
|
||||
_os << "{";
|
||||
if (NULL != _obj.getMessage()) {
|
||||
_os << "msg=\"" << _obj.getMessage() << "\"";
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef __EWOL_OBJECT_MESSAGE_H__
|
||||
#define __EWOL_OBJECT_MESSAGE_H__
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <etk/Stream.h>
|
||||
#include <ewol/debug.h>
|
||||
|
||||
namespace ewol {
|
||||
namespace object {
|
||||
@ -47,7 +46,7 @@ namespace ewol {
|
||||
return m_data;
|
||||
};
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::object::Message& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::object::Message& _obj);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <vector>
|
||||
#include <ewol/debug.h>
|
||||
#include <ewol/openGL/openGL.h>
|
||||
#include <etk/os/Mutex.h>
|
||||
|
||||
/**
|
||||
* @brief get the draw mutex (ewol render).
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <ewol/context/Context.h>
|
||||
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, enum ewol::font::mode _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, enum ewol::font::mode _obj) {
|
||||
switch(_obj) {
|
||||
default :
|
||||
_os << "error";
|
||||
@ -344,7 +344,7 @@ ewol::GlyphProperty* ewol::resource::TexturedFont::getGlyphPointer(const char32_
|
||||
}
|
||||
|
||||
ewol::resource::TexturedFont* ewol::resource::TexturedFont::keep(const std::string& _filename) {
|
||||
EWOL_INFO("KEEP : TexturedFont : file : '" << _filename << "'");
|
||||
EWOL_VERBOSE("KEEP : TexturedFont : file : '" << _filename << "'");
|
||||
ewol::resource::TexturedFont* object = NULL;
|
||||
ewol::Resource* object2 = getManager().localKeep(_filename);
|
||||
if (NULL != object2) {
|
||||
@ -372,7 +372,7 @@ void ewol::resource::TexturedFont::release(ewol::resource::TexturedFont*& _objec
|
||||
if (NULL == _object) {
|
||||
return;
|
||||
}
|
||||
EWOL_INFO("RELEASE: TexturedFont : file : '" << _object->getName() << "' count=" << _object->getCounter());
|
||||
EWOL_VERBOSE("RELEASE: TexturedFont : file : '" << _object->getName() << "' count=" << _object->getCounter());
|
||||
std::string name = _object->getName();
|
||||
int32_t count = _object->getCounter() - 1;
|
||||
ewol::Resource* object2 = static_cast<ewol::Resource*>(_object);
|
||||
|
@ -25,7 +25,7 @@ namespace ewol {
|
||||
BoldItalic,
|
||||
};
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, enum ewol::font::mode _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, enum ewol::font::mode _obj);
|
||||
|
||||
namespace resource {
|
||||
class TexturedFont : public ewol::resource::Texture {
|
||||
|
@ -15,7 +15,7 @@ static const char* l_listsladingMode[ewol::widget::WSlider::sladingTransition_co
|
||||
"transition horisantal"
|
||||
};
|
||||
|
||||
etk::CCout& operator <<(etk::CCout& _os, const enum ewol::widget::WSlider::sladingMode _obj) {
|
||||
std::ostream& operator <<(std::ostream& _os, const enum ewol::widget::WSlider::sladingMode _obj) {
|
||||
_os << l_listsladingMode[_obj];
|
||||
return _os;
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ namespace ewol {
|
||||
virtual bool onGetConfig(const char* _config, std::string& _result) const;
|
||||
};
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const enum ewol::widget::WSlider::sladingMode _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const enum ewol::widget::WSlider::sladingMode _obj);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -16,7 +16,7 @@
|
||||
#undef __class__
|
||||
#define __class__ "DrawProperty"
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, const ewol::DrawProperty& _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, const ewol::DrawProperty& _obj) {
|
||||
_os << "{ windowsSize=" << _obj.m_windowsSize << " start=" << _obj.m_origin << " stop=" << (_obj.m_origin+_obj.m_size) << "}";
|
||||
return _os;
|
||||
}
|
||||
@ -78,7 +78,7 @@ enum ewol::gravity ewol::stringToGravity(const std::string& _obj) {
|
||||
return ewol::gravityCenter;
|
||||
}
|
||||
|
||||
etk::CCout& ewol::operator <<(etk::CCout& _os, const enum ewol::gravity _obj) {
|
||||
std::ostream& ewol::operator <<(std::ostream& _os, const enum ewol::gravity _obj) {
|
||||
_os << ewol::gravityToString(_obj);
|
||||
return _os;
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ namespace ewol {
|
||||
ivec2 m_size; //!< Windows clipping upper widget (can not be <0 and >m_windowsSize)
|
||||
void limit(const vec2& _origin, const vec2& _size);
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const ewol::DrawProperty& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const ewol::DrawProperty& _obj);
|
||||
/**
|
||||
* @brief Gravity of the widget property
|
||||
* @not-in-doc
|
||||
@ -83,7 +83,7 @@ namespace ewol {
|
||||
gravityButtomLeft=0x0C,
|
||||
gravityLeft=0x08,
|
||||
};
|
||||
etk::CCout& operator <<(etk::CCout& _os, const enum ewol::gravity _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const enum ewol::gravity _obj);
|
||||
std::string gravityToString(const enum ewol::gravity _obj);
|
||||
enum ewol::gravity stringToGravity(const std::string& _obj);
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user