dialogs/BrowseLocationsDialog.py
changeset 1736 7e61baa047f0
parent 1730 64d8f52bc8c8
child 1739 ec153828ded2
equal deleted inserted replaced
1735:c02818d7e29f 1736:7e61baa047f0
    32 from util.BitmapLibrary import GetBitmap
    32 from util.BitmapLibrary import GetBitmap
    33 
    33 
    34 #-------------------------------------------------------------------------------
    34 #-------------------------------------------------------------------------------
    35 #                                   Helpers
    35 #                                   Helpers
    36 #-------------------------------------------------------------------------------
    36 #-------------------------------------------------------------------------------
       
    37 
    37 
    38 
    38 def GetDirFilterChoiceOptions():
    39 def GetDirFilterChoiceOptions():
    39     _ = lambda x : x
    40     _ = lambda x : x
    40     return [(_("All"), [LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY]),
    41     return [(_("All"), [LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY]),
    41             (_("Input"), [LOCATION_VAR_INPUT]),
    42             (_("Input"), [LOCATION_VAR_INPUT]),
    42             (_("Output"), [LOCATION_VAR_OUTPUT]),
    43             (_("Output"), [LOCATION_VAR_OUTPUT]),
    43             (_("Memory"), [LOCATION_VAR_MEMORY])]
    44             (_("Memory"), [LOCATION_VAR_MEMORY])]
    44 DIRFILTERCHOICE_OPTIONS = dict([(_(option), filter) for option, filter in GetDirFilterChoiceOptions()])
    45 DIRFILTERCHOICE_OPTIONS = dict([(_(option), filter) for option, filter in GetDirFilterChoiceOptions()])
    45 
    46 
       
    47 
    46 def GetTypeFilterChoiceOptions():
    48 def GetTypeFilterChoiceOptions():
    47     _ = lambda x : x
    49     _ = lambda x : x
    48     return [_("All"),
    50     return [_("All"),
    49             _("Type and derivated"),
    51             _("Type and derivated"),
    50             _("Type strict")]
    52             _("Type strict")]
    56         LOCATION_SIZES[type] = size
    58         LOCATION_SIZES[type] = size
    57 
    59 
    58 #-------------------------------------------------------------------------------
    60 #-------------------------------------------------------------------------------
    59 #                            Browse Locations Dialog
    61 #                            Browse Locations Dialog
    60 #-------------------------------------------------------------------------------
    62 #-------------------------------------------------------------------------------
       
    63 
    61 
    64 
    62 class BrowseLocationsDialog(wx.Dialog):
    65 class BrowseLocationsDialog(wx.Dialog):
    63 
    66 
    64     def __init__(self, parent, var_type, controller):
    67     def __init__(self, parent, var_type, controller):
    65         wx.Dialog.__init__(self, parent, title=_('Browse Locations'),
    68         wx.Dialog.__init__(self, parent, title=_('Browse Locations'),