Module field_color
Code to handle setting colors for fields in various BitPim Editor
Dialogs. The idea is to show which fields are supported by the current
phone model, which fields are not, and which fields are unknown
(default).
To use/enable this feature for your phone, define a dict value in your
phone profile that specifies the applicability of various fields. It's
probably best if you copy the default_field_info dict to your phone
profile and set appropriate values. The value of each key can be either:
None (don't know), True (applicable), False (not applicable), 0 (not
applicable), int>0 (number of entries this phone can have).
The name of this dict is 'field_color_data'. An example is included in
module com_lgvx9800.
Function Summary |
|
build_color_field (widget,
klass,
args,
name,
tree)
instantiate the widget, set the color, and return the widget |
|
build_field_info (widget,
name)
Return the dict info for this widget |
|
color (widget,
name,
tree)
Return the appropriate color for this field |
|
get_children_count (widget)
Return the number of sibblings to this widget |
|
get_color_info_from_profile (widget)
Walk up the widget chain to find the one that has the phone
profile |
|
reload_color_info(widget,
widgets)
|
build_color_field(widget,
klass,
args,
name,
tree=None)
instantiate the widget, set the color, and return the widget
-
|
build_field_info(widget,
name=None)
Return the dict info for this widget
-
|
color(widget,
name,
tree=None)
Return the appropriate color for this field
-
|
get_children_count(widget)
Return the number of sibblings to this widget
-
|
get_color_info_from_profile(widget)
Walk up the widget chain to find the one that has the phone
profile
-
|