equal
deleted
inserted
replaced
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): |