dialogs/FBDVariableDialog.py
changeset 1782 5b6ad7a7fd9d
parent 1768 691083b5682a
child 1847 6198190bc121
equal deleted inserted replaced
1781:b112bfdde5cc 1782:5b6ad7a7fd9d
    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