dialogs/ActionBlockDialog.py
changeset 1736 7e61baa047f0
parent 1730 64d8f52bc8c8
child 1740 b789b695b5c6
equal deleted inserted replaced
1735:c02818d7e29f 1736:7e61baa047f0
    32 
    32 
    33 #-------------------------------------------------------------------------------
    33 #-------------------------------------------------------------------------------
    34 #                                  Helpers
    34 #                                  Helpers
    35 #-------------------------------------------------------------------------------
    35 #-------------------------------------------------------------------------------
    36 
    36 
       
    37 
    37 def GetActionTableColnames():
    38 def GetActionTableColnames():
    38     _ = lambda x: x
    39     _ = lambda x: x
    39     return [_("Qualifier"), _("Duration"), _("Type"), _("Value"), _("Indicator")]
    40     return [_("Qualifier"), _("Duration"), _("Type"), _("Value"), _("Indicator")]
    40 
    41 
       
    42 
    41 def GetTypeList():
    43 def GetTypeList():
    42     _ = lambda x: x
    44     _ = lambda x: x
    43     return [_("Action"), _("Variable"), _("Inline")]
    45     return [_("Action"), _("Variable"), _("Inline")]
    44 
    46 
    45 #-------------------------------------------------------------------------------
    47 #-------------------------------------------------------------------------------
    46 #                               Action Table
    48 #                               Action Table
    47 #-------------------------------------------------------------------------------
    49 #-------------------------------------------------------------------------------
       
    50 
    48 
    51 
    49 class ActionTable(CustomTable):
    52 class ActionTable(CustomTable):
    50 
    53 
    51     def GetValue(self, row, col):
    54     def GetValue(self, row, col):
    52         if row < self.GetNumberRows():
    55         if row < self.GetNumberRows():
   113 
   116 
   114 #-------------------------------------------------------------------------------
   117 #-------------------------------------------------------------------------------
   115 #                            Action Block Dialog
   118 #                            Action Block Dialog
   116 #-------------------------------------------------------------------------------
   119 #-------------------------------------------------------------------------------
   117 
   120 
       
   121 
   118 class ActionBlockDialog(wx.Dialog):
   122 class ActionBlockDialog(wx.Dialog):
   119 
   123 
   120     def __init__(self, parent):
   124     def __init__(self, parent):
   121         wx.Dialog.__init__(self, parent, title=_('Edit action block properties'))
   125         wx.Dialog.__init__(self, parent, title=_('Edit action block properties'))
   122 
   126