dialogs/BrowseLocationsDialog.py
changeset 1782 5b6ad7a7fd9d
parent 1768 691083b5682a
child 1847 6198190bc121
equal deleted inserted replaced
1781:b112bfdde5cc 1782:5b6ad7a7fd9d
    30 from plcopen.structures import LOCATIONDATATYPES
    30 from plcopen.structures import LOCATIONDATATYPES
    31 from PLCControler import LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
    31 from PLCControler import LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
    32 from util.BitmapLibrary import GetBitmap
    32 from util.BitmapLibrary import GetBitmap
    33 from util.TranslationCatalogs import NoTranslate
    33 from util.TranslationCatalogs import NoTranslate
    34 
    34 
    35 #-------------------------------------------------------------------------------
    35 # -------------------------------------------------------------------------------
    36 #                                   Helpers
    36 #                                   Helpers
    37 #-------------------------------------------------------------------------------
    37 # -------------------------------------------------------------------------------
    38 
    38 
    39 
    39 
    40 def GetDirFilterChoiceOptions():
    40 def GetDirFilterChoiceOptions():
    41     _ = NoTranslate
    41     _ = NoTranslate
    42     return [(_("All"), [LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY]),
    42     return [(_("All"), [LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY]),
    59 LOCATION_SIZES = {}
    59 LOCATION_SIZES = {}
    60 for size, types in LOCATIONDATATYPES.iteritems():
    60 for size, types in LOCATIONDATATYPES.iteritems():
    61     for type in types:
    61     for type in types:
    62         LOCATION_SIZES[type] = size
    62         LOCATION_SIZES[type] = size
    63 
    63 
    64 #-------------------------------------------------------------------------------
    64 # -------------------------------------------------------------------------------
    65 #                            Browse Locations Dialog
    65 #                            Browse Locations Dialog
    66 #-------------------------------------------------------------------------------
    66 # -------------------------------------------------------------------------------
    67 
    67 
    68 
    68 
    69 class BrowseLocationsDialog(wx.Dialog):
    69 class BrowseLocationsDialog(wx.Dialog):
    70 
    70 
    71     def __init__(self, parent, var_type, controller):
    71     def __init__(self, parent, var_type, controller):