| 59 | } |
| 60 | |
| 61 | static int durationUnitToMultiplier(Duration::Unit u) |
| 62 | { |
| 63 | switch (u) { |
| 64 | case Duration::Unit::SECONDS: |
| 65 | return 1; |
| 66 | case Duration::Unit::MINUTES: |
| 67 | return 60; |
| 68 | case Duration::Unit::HOURS: |
| 69 | return 3600; |
| 70 | case Duration::Unit::DAYS: |
| 71 | return 86400; |
| 72 | default: |
| 73 | break; |
| 74 | } |
| 75 | |
| 76 | return 0; |
| 77 | } |
| 78 | |
| 79 | void DurationSelection::_UnitChanged(int idx) |
| 80 | { |