dialogs/BrowseLocationsDialog.py
changeset 1749 d73b64672238
parent 1745 f9d32913bad4
child 1762 fcc406143e5b
equal deleted inserted replaced
1748:ba5f64fe0e00 1749:d73b64672238
    40     _ = lambda x: x
    40     _ = lambda x: x
    41     return [(_("All"), [LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY]),
    41     return [(_("All"), [LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY]),
    42             (_("Input"), [LOCATION_VAR_INPUT]),
    42             (_("Input"), [LOCATION_VAR_INPUT]),
    43             (_("Output"), [LOCATION_VAR_OUTPUT]),
    43             (_("Output"), [LOCATION_VAR_OUTPUT]),
    44             (_("Memory"), [LOCATION_VAR_MEMORY])]
    44             (_("Memory"), [LOCATION_VAR_MEMORY])]
       
    45 
       
    46 
    45 DIRFILTERCHOICE_OPTIONS = dict([(_(option), filter) for option, filter in GetDirFilterChoiceOptions()])
    47 DIRFILTERCHOICE_OPTIONS = dict([(_(option), filter) for option, filter in GetDirFilterChoiceOptions()])
    46 
    48 
    47 
    49 
    48 def GetTypeFilterChoiceOptions():
    50 def GetTypeFilterChoiceOptions():
    49     _ = lambda x: x
    51     _ = lambda x: x
    50     return [_("All"),
    52     return [_("All"),
    51             _("Type and derivated"),
    53             _("Type and derivated"),
    52             _("Type strict")]
    54             _("Type strict")]
       
    55 
    53 
    56 
    54 # turn LOCATIONDATATYPES inside-out
    57 # turn LOCATIONDATATYPES inside-out
    55 LOCATION_SIZES = {}
    58 LOCATION_SIZES = {}
    56 for size, types in LOCATIONDATATYPES.iteritems():
    59 for size, types in LOCATIONDATATYPES.iteritems():
    57     for type in types:
    60     for type in types: