Commit Graph

8 Commits

Author SHA1 Message Date
Jean-Philippe Andre 832e12e8c4 format: Fixup the string format implementation
Use eina value convert and to_string. Do not fail.
This removes unreachable code by making it active (to_string).

Fixes T6204
2017-12-12 11:38:35 +09:00
Amitesh Singh e8ae4178d8 Efl.Ui.Format: do format check once only. 2017-11-28 17:05:31 +09:00
Amitesh Singh e97d00d598 Efl.Ui.Format: do proper checking for string template.
Add support to take action based on string format specifier.

If string template is '%d' and value type is double, do safe
conversion to int from double.
2017-11-28 12:16:48 +09:00
Amitesh Singh 952593eef2 Efl.Ui.Format: remove the dupicalte code
struct tm check is already done at the beginning of the function.
2017-11-27 16:55:04 +09:00
Amitesh Singh 475ae7ef1b Efl.Ui.Format: add string format checking for user input 2017-11-24 14:58:15 +09:00
Amitesh Singh 302cc259ff Efl.Ui.Format: Add support for "struct tm" in string format. 2017-11-14 10:54:41 +09:00
Amitesh Singh d6c9b37925 Efl.Ui.Slider: implement Slider.part & Ui.format functions
indicator_format_set/get & indicator_format_function_set are
now legacy APIs.
indicator format can be set by using generic Ui.Format function
e.g.
efl_ui_format_string_set(efl_part(sliderObj, "indicator"), "1.0%f");
2017-11-07 17:13:44 +09:00
Amitesh Singh 5298cb59d2 Efl.Ui.Format: implement generic format_string function
This generic format_string would be used in slider,progressbar
and other widgets.This default function handles INT
and DOUBLE eina value types for now.

Ref T6204
2017-10-26 21:11:36 +09:00