[DEV] UPDATE gale infra
This commit is contained in:
parent
84a00bffbe
commit
9dea7c306e
84
.gitignore
vendored
84
.gitignore
vendored
@ -1,28 +1,64 @@
|
|||||||
# Compiled Object files
|
|
||||||
*.slo
|
|
||||||
*.lo
|
|
||||||
*.o
|
|
||||||
*.obj
|
|
||||||
|
|
||||||
# Precompiled Headers
|
###################################
|
||||||
*.gch
|
# folders
|
||||||
*.pch
|
###################################
|
||||||
|
CVS
|
||||||
|
.svn
|
||||||
|
Object_*
|
||||||
|
doxygen/API/
|
||||||
|
doxygen/ALL/
|
||||||
|
|
||||||
# Compiled Dynamic libraries
|
###################################
|
||||||
*.so
|
# backup files
|
||||||
*.dylib
|
###################################
|
||||||
|
*~
|
||||||
|
*.swp
|
||||||
|
*.old
|
||||||
|
*.bck
|
||||||
|
|
||||||
|
###################################
|
||||||
|
# Compiled source #
|
||||||
|
###################################
|
||||||
|
*.com
|
||||||
|
*.class
|
||||||
*.dll
|
*.dll
|
||||||
|
|
||||||
# Fortran module files
|
|
||||||
*.mod
|
|
||||||
|
|
||||||
# Compiled Static libraries
|
|
||||||
*.lai
|
|
||||||
*.la
|
|
||||||
*.a
|
|
||||||
*.lib
|
|
||||||
|
|
||||||
# Executables
|
|
||||||
*.exe
|
*.exe
|
||||||
*.out
|
*.o
|
||||||
*.app
|
*.so
|
||||||
|
*.pyc
|
||||||
|
tags
|
||||||
|
#ewol
|
||||||
|
out
|
||||||
|
ewol_debug
|
||||||
|
ewol_release
|
||||||
|
|
||||||
|
###################################
|
||||||
|
# Packages #
|
||||||
|
###################################
|
||||||
|
# it's better to unpack these files and commit the raw source
|
||||||
|
# git has its own built in compression methods
|
||||||
|
*.7z
|
||||||
|
*.dmg
|
||||||
|
*.gz
|
||||||
|
*.iso
|
||||||
|
*.jar
|
||||||
|
*.rar
|
||||||
|
*.tar
|
||||||
|
*.zip
|
||||||
|
|
||||||
|
###################################
|
||||||
|
# Logs and databases #
|
||||||
|
###################################
|
||||||
|
*.log
|
||||||
|
*.sql
|
||||||
|
*.sqlite
|
||||||
|
|
||||||
|
###################################
|
||||||
|
# OS generated files #
|
||||||
|
###################################
|
||||||
|
.DS_Store?
|
||||||
|
ehthumbs.db
|
||||||
|
Icon?
|
||||||
|
Thumbs.db
|
||||||
|
Sources/libewol/ewol/os/AndroidAbstraction.cpp
|
||||||
|
org_ewol_EwolConstants.h
|
||||||
|
@ -146,3 +146,7 @@ void gale::Application::setOrientation(enum gale::orientation _orientation) {
|
|||||||
enum gale::orientation gale::Application::getOrientation() {
|
enum gale::orientation gale::Application::getOrientation() {
|
||||||
return gale::orientation_screenAuto;
|
return gale::orientation_screenAuto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void gale::Application::onClipboardEvent(enum gale::context::clipBoard::clipboardListe _clipboardId) {
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#include <gale/key/type.h>
|
#include <gale/key/type.h>
|
||||||
#include <gale/key/Special.h>
|
#include <gale/key/Special.h>
|
||||||
#include <gale/context/cursor.h>
|
#include <gale/context/cursor.h>
|
||||||
|
#include <gale/context/clipBoard.h>
|
||||||
|
|
||||||
namespace gale {
|
namespace gale {
|
||||||
class Context;
|
class Context;
|
||||||
@ -187,6 +188,12 @@ namespace gale {
|
|||||||
* @return Current orientation.
|
* @return Current orientation.
|
||||||
*/
|
*/
|
||||||
virtual enum gale::orientation getOrientation();
|
virtual enum gale::orientation getOrientation();
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
* @brief A clipboard data is back (apear after a request of a new clipboard).
|
||||||
|
* @param[in] _clipboardId Id of the clipboard.
|
||||||
|
*/
|
||||||
|
virtual void onClipboardEvent(enum gale::context::clipBoard::clipboardListe _clipboardId);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -237,14 +237,12 @@ void gale::Context::processEvents() {
|
|||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case eSystemMessage::msgClipboardArrive:
|
case eSystemMessage::msgClipboardArrive:
|
||||||
#if 0
|
|
||||||
{
|
{
|
||||||
std::shared_ptr<gale::Widget> tmpWidget = m_widgetManager.focusGet();
|
std::shared_ptr<gale::Application> appl = m_application;
|
||||||
if (tmpWidget != nullptr) {
|
if (appl != nullptr) {
|
||||||
tmpWidget->onEventClipboard(data->clipboardID);
|
appl->onClipboardEvent(data->clipboardID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
case eSystemMessage::msgHide:
|
case eSystemMessage::msgHide:
|
||||||
GALE_DEBUG("Receive MSG : msgHide");
|
GALE_DEBUG("Receive MSG : msgHide");
|
||||||
@ -560,6 +558,8 @@ void gale::Context::clipBoardSet(enum gale::context::clipBoard::clipboardListe _
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool gale::Context::OS_Draw(bool _displayEveryTime) {
|
bool gale::Context::OS_Draw(bool _displayEveryTime) {
|
||||||
|
// TODO : Remove this force at true ...
|
||||||
|
_displayEveryTime = true;
|
||||||
int64_t currentTime = gale::getTime();
|
int64_t currentTime = gale::getTime();
|
||||||
// this is to prevent the multiple display at the a high frequency ...
|
// this is to prevent the multiple display at the a high frequency ...
|
||||||
#if (!defined(__TARGET_OS__Android) && !defined(__TARGET_OS__Windows))
|
#if (!defined(__TARGET_OS__Android) && !defined(__TARGET_OS__Windows))
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include <gale/context/Fps.h>
|
#include <gale/context/Fps.h>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <gale/orientation.h>
|
#include <gale/orientation.h>
|
||||||
|
#include <gale/context/clipBoard.h>
|
||||||
|
|
||||||
#define MAX_MANAGE_INPUT (15)
|
#define MAX_MANAGE_INPUT (15)
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ void gale::resource::Manager::display() {
|
|||||||
std::shared_ptr<gale::Resource> tmpRessource = it.lock();
|
std::shared_ptr<gale::Resource> tmpRessource = it.lock();
|
||||||
if (tmpRessource != nullptr) {
|
if (tmpRessource != nullptr) {
|
||||||
GALE_INFO(" [" << tmpRessource->getId() << "]"
|
GALE_INFO(" [" << tmpRessource->getId() << "]"
|
||||||
<< tmpRessource->getObjectType()
|
<< tmpRessource->getType()
|
||||||
<< "=\"" << tmpRessource->getName() << "\" "
|
<< "=\"" << tmpRessource->getName() << "\" "
|
||||||
<< tmpRessource.use_count() << " elements");
|
<< tmpRessource.use_count() << " elements");
|
||||||
}
|
}
|
||||||
@ -80,7 +80,7 @@ void gale::resource::Manager::reLoadResources() {
|
|||||||
if(tmpRessource != nullptr) {
|
if(tmpRessource != nullptr) {
|
||||||
if (jjj == tmpRessource->getResourceLevel()) {
|
if (jjj == tmpRessource->getResourceLevel()) {
|
||||||
tmpRessource->reload();
|
tmpRessource->reload();
|
||||||
GALE_INFO(" [" << tmpRessource->getId() << "]="<< tmpRessource->getObjectType());
|
GALE_INFO(" [" << tmpRessource->getId() << "]="<< tmpRessource->getType());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -106,6 +106,7 @@ void gale::resource::Manager::update(const std::shared_ptr<gale::Resource>& _obj
|
|||||||
|
|
||||||
// Specific to load or update the data in the openGl context == > system use only
|
// Specific to load or update the data in the openGl context == > system use only
|
||||||
void gale::resource::Manager::updateContext() {
|
void gale::resource::Manager::updateContext() {
|
||||||
|
// TODO : Check the number of call this ... GALE_INFO("update open-gl context ... ");
|
||||||
if (m_contextHasBeenRemoved == true) {
|
if (m_contextHasBeenRemoved == true) {
|
||||||
// need to update all ...
|
// need to update all ...
|
||||||
m_contextHasBeenRemoved = false;
|
m_contextHasBeenRemoved = false;
|
||||||
|
@ -32,7 +32,7 @@ void gale::Resource::init(const std::string& _name) {
|
|||||||
m_name = _name;
|
m_name = _name;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char * const gale::Resource::getObjectType() {
|
const char * const gale::Resource::getType() {
|
||||||
if (m_listType.size() == 0) {
|
if (m_listType.size() == 0) {
|
||||||
return "gale::Resource";
|
return "gale::Resource";
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ namespace gale {
|
|||||||
* @brief get the current type of the Resource
|
* @brief get the current type of the Resource
|
||||||
* @return the last type name of the element
|
* @return the last type name of the element
|
||||||
*/
|
*/
|
||||||
const char* const getObjectType();
|
const char* const getType();
|
||||||
/**
|
/**
|
||||||
* @brief Get the herarchic of the Resource type.
|
* @brief Get the herarchic of the Resource type.
|
||||||
* @return descriptive string.
|
* @return descriptive string.
|
||||||
|
@ -33,9 +33,9 @@ namespace gale {
|
|||||||
bool m_loaded; //!< internal state of the openGl system.
|
bool m_loaded; //!< internal state of the openGl system.
|
||||||
// Gale internal API:
|
// Gale internal API:
|
||||||
public:
|
public:
|
||||||
void updateContext();
|
virtual void updateContext();
|
||||||
void removeContext();
|
virtual void removeContext();
|
||||||
void removeContextToLate();
|
virtual void removeContextToLate();
|
||||||
// middleware interface:
|
// middleware interface:
|
||||||
public:
|
public:
|
||||||
uint32_t getRendererId() const {
|
uint32_t getRendererId() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user