[DEV] update externalisation of signal and property
This commit is contained in:
parent
15ada13bf8
commit
4a685a1c8f
@ -388,7 +388,7 @@ std::shared_ptr<ege::Camera> ege::Environement::getCamera(const std::string& _na
|
||||
}
|
||||
|
||||
|
||||
void ege::Environement::onParameterChangeValue(const ewol::parameter::Ref& _paramPointer) {
|
||||
void ege::Environement::onPropertyChangeValue(const eproperty::Ref& _paramPointer) {
|
||||
if (_paramPointer == m_status) {
|
||||
if (m_status.get() == gameStart) {
|
||||
getObjectManager().periodicCall.bind(shared_from_this(), &ege::Environement::periodicCall);
|
||||
|
@ -23,7 +23,7 @@ class btDynamicsWorld;
|
||||
#include <exml/exml.h>
|
||||
#include <ege/ParticuleEngine.h>
|
||||
#include <ewol/object/Object.h>
|
||||
#include <ewol/signal/Signal.h>
|
||||
#include <esignal/Signal.h>
|
||||
#include <ewol/event/Time.h>
|
||||
#include <ewol/parameter/Value.h>
|
||||
#include <ege/resource/Mesh.h>
|
||||
@ -89,7 +89,7 @@ namespace ege {
|
||||
class Environement : public ewol::Object {
|
||||
public:
|
||||
// extern event
|
||||
ewol::Signal<float> signalPlayTimeChange;
|
||||
esignal::Signal<float> signalPlayTimeChange;
|
||||
private:
|
||||
//std::shared_ptr<btDynamicsWorld> m_dynamicsWorld; //!< curent system world description
|
||||
ege::physics::Engine m_physicEngine; //!< EGE physic engine interface.
|
||||
@ -101,7 +101,7 @@ namespace ege {
|
||||
DECLARE_FACTORY(Environement);
|
||||
virtual ~Environement() { };
|
||||
protected:
|
||||
ewol::parameter::List<enum gameStatus> m_status; //!< the display is running (not in pause)
|
||||
eproperty::List<enum gameStatus> m_status; //!< the display is running (not in pause)
|
||||
public:
|
||||
/**
|
||||
* @brief Get the game status.
|
||||
@ -118,7 +118,7 @@ namespace ege {
|
||||
m_status.set(_value);
|
||||
}
|
||||
protected:
|
||||
ewol::parameter::Value<float> m_ratio; //!< Speed ratio
|
||||
eproperty::Value<float> m_ratio; //!< Speed ratio
|
||||
public:
|
||||
/**
|
||||
* @brief Get the game speed ratio.
|
||||
@ -272,7 +272,7 @@ namespace ege {
|
||||
const std::vector<std::shared_ptr<ege::resource::Mesh>>& getStaticMeshToDraw() {
|
||||
return m_listMeshToDrawFirst;
|
||||
}
|
||||
virtual void onParameterChangeValue(const ewol::parameter::Ref& _paramPointer);
|
||||
virtual void onPropertyChangeValue(const eproperty::Ref& _paramPointer);
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ namespace ege {
|
||||
*/
|
||||
class Mesh :public ewol::Widget {
|
||||
public:
|
||||
ewol::Signal<void> signalPressed;
|
||||
esignal::Signal<void> signalPressed;
|
||||
private:
|
||||
// mesh name :
|
||||
std::string m_meshName;
|
||||
|
@ -185,8 +185,8 @@ void ege::widget::Scene::systemDraw(const ewol::DrawProperty& _displayProp) {
|
||||
#endif
|
||||
}
|
||||
|
||||
void ege::widget::Scene::onParameterChangeValue(const ewol::parameter::Ref& _paramPointer) {
|
||||
ewol::Widget::onParameterChangeValue(_paramPointer);
|
||||
void ege::widget::Scene::onPropertyChangeValue(const eproperty::Ref& _paramPointer) {
|
||||
ewol::Widget::onPropertyChangeValue(_paramPointer);
|
||||
/*
|
||||
if (_paramPointer == m_isRunning) {
|
||||
// nothing to do ...
|
||||
|
@ -30,7 +30,7 @@ class btDynamicsWorld;
|
||||
#include <LinearMath/btScalar.h>
|
||||
class btVector3;
|
||||
#include <ewol/widget/Widget.h>
|
||||
#include <ewol/signal/Signal.h>
|
||||
#include <esignal/Signal.h>
|
||||
|
||||
namespace ege {
|
||||
namespace widget {
|
||||
@ -39,7 +39,7 @@ namespace ege {
|
||||
std::shared_ptr<ege::Environement> m_env;
|
||||
std::shared_ptr<ewol::resource::Colored3DObject> m_debugDrawProperty;
|
||||
public:
|
||||
ewol::Signal<std::shared_ptr<ewol::resource::Colored3DObject>/*, std::shared_ptr<ege::Camera>*/> signalDisplayDebug; //!< emit a signal to the application to draw the debug (@ref setDebugPhysic)
|
||||
esignal::Signal<std::shared_ptr<ewol::resource::Colored3DObject>/*, std::shared_ptr<ege::Camera>*/> signalDisplayDebug; //!< emit a signal to the application to draw the debug (@ref setDebugPhysic)
|
||||
protected:
|
||||
/**
|
||||
* @brief Constructor of the widget classes
|
||||
@ -73,14 +73,14 @@ namespace ege {
|
||||
std::vector<ege::Environement::ResultNearestElement> m_displayElementOrdered;
|
||||
protected: // Derived function
|
||||
virtual void onDraw();
|
||||
virtual void onParameterChangeValue(const ewol::parameter::Ref& _paramPointer);
|
||||
virtual void onPropertyChangeValue(const eproperty::Ref& _paramPointer);
|
||||
public: // Derived function
|
||||
virtual void systemDraw(const ewol::DrawProperty& _displayProp);
|
||||
virtual void onRegenerateDisplay();
|
||||
virtual void periodicCall(const ewol::event::Time& _event);
|
||||
virtual void calculateSize(const vec2& _available);
|
||||
protected:
|
||||
ewol::parameter::Value<bool> m_debugPhysic; //!< display Physic Debug
|
||||
eproperty::Value<bool> m_debugPhysic; //!< display Physic Debug
|
||||
public:
|
||||
/**
|
||||
* @brief Set the debug display of the physic engine
|
||||
@ -97,7 +97,7 @@ namespace ege {
|
||||
return m_debugPhysic.get();
|
||||
}
|
||||
protected:
|
||||
ewol::parameter::Value<bool> m_debugApplication; //!< display Application Debug
|
||||
eproperty::Value<bool> m_debugApplication; //!< display Application Debug
|
||||
public:
|
||||
/**
|
||||
* @brief Set the debug display of the application
|
||||
|
Loading…
x
Reference in New Issue
Block a user