Page MenuHomePhabricator

Closed, ResolvedPublic


class Efl.Ui.Timepicker @beta
├ (P) time
├ (P) ampm
├ (E) changed
  • ampm -> is_24hour (WooHyun)
  • changed -> time,changed

Related Objects

bu5hm4n created this task.May 3 2019, 12:05 PM
bu5hm4n triaged this task as TODO priority.
CHAN claimed this task.Jul 7 2019, 10:03 PM
Diffusion closed subtask T7562: efl.input.interface as Resolved.

@bu5hm4n @segfaultxavi @zmike @CHAN

ampm -> 24hour ? How do you think about this ?

Yes, I like 24hour much better. Also, the parameter to the ampm property is already called 24hour :D

woohyun updated the task description. (Show Details)Aug 28 2019, 12:59 AM

Follwing the T7869,

"time -> time_current" would be better ?

woohyun updated the task description. (Show Details)Aug 28 2019, 1:00 AM

I think current_time sounds better. I'll propose it in T7869 too.


Following the comments in T7869, I'll not change to "current_time" :)
I'll just update 24hour, soon.

woohyun added a comment.EditedAug 30 2019, 2:56 AM


While trying to apply "24hour", I noticed that eolian does not allow to include <number> in a property name !!

eolian: /home/woohyun/EFL/efl/src/lib/elementary/efl_ui_timepicker.eo:26:17: '<value>' expected near '<number>'
       @property 24hour {

eolian: could not parse file '../src/lib/elementary/efl_ui_timepicker.eo'
[10/2626] Linking target src/bin/edje/edje_cc.
ninja: build stopped: subcommand failed.

Do you have any idea on this ?

Ooooohhhh... that's interesting. I guess it makes sense, since C does not allow that either.

How about use24hour, use24h, format24hour or format24h ?

Hmm. As you know well, I'm not a good person for naming something. :(

My recommendation -

  1. is_24hour
  2. just keep "ampm" as it is - and change the bool name from "is_24hour" to "ampm" - and make to use "true/false" oppositely.

Let's see what other people think. We have other properties named is_, so is_24hour seems good to me too.

zmike moved this task from Backlog to Evaluating on the efl: api board.Aug 30 2019, 11:11 AM

I like is_24hour since it's very explicit.

Ok. I'll go with is_24hour :)

woohyun updated the task description. (Show Details)Sep 1 2019, 11:05 PM

I think only one thing remained is "changed" which has the same discussion in T7869.

Or any other opinions on this task ?

woohyun updated the task description. (Show Details)Sep 11 2019, 12:30 AM
segfaultxavi updated the task description. (Show Details)Sep 12 2019, 1:34 AM

I think this class is good to go now?

zmike moved this task from Evaluating to Stabilized on the efl: api board.Sep 13 2019, 11:32 AM
zmike closed subtask T7578: efl.ui.view as Resolved.Sep 26 2019, 8:12 AM