checkbox: Adding third state (Indeterminate) support in checkbox
authorShobhit <s.parashari@samsung.com>
Fri, 17 Apr 2015 08:11:28 +0000 (17:11 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 17 Apr 2015 08:11:28 +0000 (17:11 +0900)
commit0a9ac756d029b524f0cc5ac2b0f6ac5627e6ed47
tree449230d0fe7715dc4cf6b734700e086c65c98cea
parent8e61552bc57e55bf0e50f31bf26daaae076e68af
checkbox: Adding third state (Indeterminate) support in checkbox

Summary:
Checkbox should support a third state "indeterminate" along with "Checked" and "Unchecked"
This third state is a state of checkbox which is shown when checkbox is neither Checked nor Unchecked.

- Added this new feature on the basis of a boolean variable's value.
- By default this boolean variable is disabled and checkbox will treat like old way.
- While adding this, I kept in mind, that applications which are already using checkbox, should not be affected, so I used 0=False=Unchecked, 1=True=Checked, and 2=Indeterminate
- Also added an example check_example_o2.c, which is using checkbox with both ways, using boolean, and using enum.
- Now also values can be set using boolean values, but it will give a type casting warning. As a boolean doen't support third state, so I used an enum int like.

- Added APIs to enable disable third state mode. elm_check_three_state_mode_set(check_obj, bool_val), and elm_check_three_state_mode_get(check_obj)
- Modified old APIs which were setting or getting states of checkbox.
- Added a state in theme of checkbox, with third state image.

Reviewers: seoz, raster, Sergeant_Whitespace, Hermet

Subscribers: Hermet, Sergeant_Whitespace, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2249
legacy/elementary/data/themes/Makefile.am
legacy/elementary/data/themes/edc/elm/check.edc
legacy/elementary/data/themes/img/sym_check_indeterminate.png [new file with mode: 0755]
legacy/elementary/src/examples/check_example_02.c [new file with mode: 0644]
legacy/elementary/src/lib/elm_check.c
legacy/elementary/src/lib/elm_check.eo
legacy/elementary/src/lib/elm_interface_atspi_accessible.h
legacy/elementary/src/lib/elm_widget_check.h