[DEV] WORK
This commit is contained in:
parent
9cb928b973
commit
43505fcc37
2
external/etk
vendored
2
external/etk
vendored
@ -1 +1 @@
|
||||
Subproject commit 4c20238d3c6a6aee05fa2819fefb9c41075510c7
|
||||
Subproject commit 28e619250d6ccab36d4eb33abfdc446b0279b7c8
|
2
external/ewolsa
vendored
2
external/ewolsa
vendored
@ -1 +1 @@
|
||||
Subproject commit 33fe9dfba589f3e8b3d518790397de9828eb7617
|
||||
Subproject commit 875e52574e5012e2ccaf2c6dbc1167b3cfe1129a
|
2
monk
2
monk
@ -1 +1 @@
|
||||
Subproject commit 895e18786ce732e8cc1c282863677c21e1806062
|
||||
Subproject commit 85ebc5ec327c3920264de479c8b1049c1b81596c
|
@ -298,3 +298,20 @@ std::ostream& ewol::operator <<(std::ostream& _os, const ewol::Dimension& _obj)
|
||||
_os << _obj.get(_obj.getType()) << _obj.getType();
|
||||
return _os;
|
||||
}
|
||||
|
||||
|
||||
template<> std::string etk::to_string<ewol::Dimension>(const ewol::Dimension& _obj) {
|
||||
return _obj;
|
||||
}
|
||||
template<> std::u32string etk::to_u32string<ewol::Dimension>(const ewol::Dimension& _obj) {
|
||||
return etk::to_u32string(etk::to_string(_obj));
|
||||
}
|
||||
|
||||
|
||||
template<> bool etk::from_string<ewol::Dimension>(ewol::Dimension& _variableRet, const std::string& _value) {
|
||||
_variableRet = ewol::Dimension(_value);
|
||||
return true;
|
||||
}
|
||||
template<> bool etk::from_string<ewol::Dimension>(ewol::Dimension& _variableRet, const std::u32string& _value) {
|
||||
return from_string(_variableRet, etk::to_string(_value));
|
||||
}
|
||||
|
@ -253,12 +253,12 @@ bool ewol::widget::Button::onEventInput(const ewol::event::Input& _event) {
|
||||
EWOL_VERBOSE(getName() << " : Generate event : " << eventPressed);
|
||||
generateEventId(eventPressed);
|
||||
EWOL_VERBOSE(getName() << " : Generate event : " << eventValue << " val=" << m_value );
|
||||
generateEventId(eventValue, etk::to_string(m_value));
|
||||
generateEventId(eventValue, etk::to_string(m_value.get()));
|
||||
if( false == m_toggleMode
|
||||
&& true == m_value) {
|
||||
setValue(false);
|
||||
EWOL_VERBOSE(getName() << " : Generate event : " << ewol::widget::Button::eventValue << " val=" << m_value);
|
||||
generateEventId(eventValue, etk::to_string(m_value));
|
||||
generateEventId(eventValue, etk::to_string(m_value.get()));
|
||||
}
|
||||
}
|
||||
markToRedraw();
|
||||
|
@ -59,8 +59,10 @@ namespace ewol {
|
||||
void setPositionMark(enum markPosition position, vec2 arrowPos);
|
||||
protected: // Derived function
|
||||
virtual void onDraw();
|
||||
/*
|
||||
virtual bool onSetConfig(const ewol::object::Config& _conf);
|
||||
virtual bool onGetConfig(const char* _config, std::string& _result) const;
|
||||
*/
|
||||
public: // Derived function
|
||||
virtual void onRegenerateDisplay();
|
||||
virtual bool onEventInput(const ewol::event::Input& _event);
|
||||
|
@ -158,9 +158,11 @@ namespace ewol {
|
||||
bool getShowTemporaryFiles() const {
|
||||
return m_showFile;
|
||||
};
|
||||
/*
|
||||
public: // glocal derived functions
|
||||
virtual bool onSetConfig(const ewol::object::Config& _conf);
|
||||
virtual bool onGetConfig(const char* _config, std::string& _result) const;
|
||||
*/
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user