equal
deleted
inserted
replaced
27 |
27 |
28 from graphics.GraphicCommons import INPUT, INOUT, OUTPUT |
28 from graphics.GraphicCommons import INPUT, INOUT, OUTPUT |
29 from graphics.FBD_Objects import FBD_Variable |
29 from graphics.FBD_Objects import FBD_Variable |
30 from BlockPreviewDialog import BlockPreviewDialog |
30 from BlockPreviewDialog import BlockPreviewDialog |
31 |
31 |
32 #------------------------------------------------------------------------------- |
32 # ------------------------------------------------------------------------------- |
33 # Helpers |
33 # Helpers |
34 #------------------------------------------------------------------------------- |
34 # ------------------------------------------------------------------------------- |
35 |
35 |
36 # Dictionaries containing correspondence between variable block class and string |
36 # Dictionaries containing correspondence between variable block class and string |
37 # to be shown in Class combo box in both sense |
37 # to be shown in Class combo box in both sense |
38 VARIABLE_CLASSES_DICT = { |
38 VARIABLE_CLASSES_DICT = { |
39 INPUT: _("Input"), |
39 INPUT: _("Input"), |
42 } |
42 } |
43 |
43 |
44 VARIABLE_CLASSES_DICT_REVERSE = dict( |
44 VARIABLE_CLASSES_DICT_REVERSE = dict( |
45 [(value, key) for key, value in VARIABLE_CLASSES_DICT.iteritems()]) |
45 [(value, key) for key, value in VARIABLE_CLASSES_DICT.iteritems()]) |
46 |
46 |
47 #------------------------------------------------------------------------------- |
47 # ------------------------------------------------------------------------------- |
48 # Set Variable Parameters Dialog |
48 # Set Variable Parameters Dialog |
49 #------------------------------------------------------------------------------- |
49 # ------------------------------------------------------------------------------- |
50 |
50 |
51 |
51 |
52 class FBDVariableDialog(BlockPreviewDialog): |
52 class FBDVariableDialog(BlockPreviewDialog): |
53 """ |
53 """ |
54 Class that implements a dialog for defining parameters of a FBD variable graphic |
54 Class that implements a dialog for defining parameters of a FBD variable graphic |