equal
deleted
inserted
replaced
28 |
28 |
29 from controls import CustomGrid, CustomTable |
29 from controls import CustomGrid, CustomTable |
30 from util.BitmapLibrary import GetBitmap |
30 from util.BitmapLibrary import GetBitmap |
31 from PLCControler import _ActionInfos |
31 from PLCControler import _ActionInfos |
32 from util.TranslationCatalogs import NoTranslate |
32 from util.TranslationCatalogs import NoTranslate |
33 #------------------------------------------------------------------------------- |
33 # ------------------------------------------------------------------------------- |
34 # Helpers |
34 # Helpers |
35 #------------------------------------------------------------------------------- |
35 # ------------------------------------------------------------------------------- |
36 |
36 |
37 |
37 |
38 def GetActionTableColnames(): |
38 def GetActionTableColnames(): |
39 _ = NoTranslate |
39 _ = NoTranslate |
40 return [_("Qualifier"), _("Duration"), _("Type"), _("Value"), _("Indicator")] |
40 return [_("Qualifier"), _("Duration"), _("Type"), _("Value"), _("Indicator")] |
42 |
42 |
43 def GetTypeList(): |
43 def GetTypeList(): |
44 _ = NoTranslate |
44 _ = NoTranslate |
45 return [_("Action"), _("Variable"), _("Inline")] |
45 return [_("Action"), _("Variable"), _("Inline")] |
46 |
46 |
47 #------------------------------------------------------------------------------- |
47 # ------------------------------------------------------------------------------- |
48 # Action Table |
48 # Action Table |
49 #------------------------------------------------------------------------------- |
49 # ------------------------------------------------------------------------------- |
50 |
50 |
51 |
51 |
52 class ActionTable(CustomTable): |
52 class ActionTable(CustomTable): |
53 |
53 |
54 def GetValue(self, row, col): |
54 def GetValue(self, row, col): |
112 grid.SetReadOnly(row, col, readonly) |
112 grid.SetReadOnly(row, col, readonly) |
113 |
113 |
114 grid.SetCellBackgroundColour(row, col, wx.WHITE) |
114 grid.SetCellBackgroundColour(row, col, wx.WHITE) |
115 self.ResizeRow(grid, row) |
115 self.ResizeRow(grid, row) |
116 |
116 |
117 #------------------------------------------------------------------------------- |
117 # ------------------------------------------------------------------------------- |
118 # Action Block Dialog |
118 # Action Block Dialog |
119 #------------------------------------------------------------------------------- |
119 # ------------------------------------------------------------------------------- |
120 |
120 |
121 |
121 |
122 class ActionBlockDialog(wx.Dialog): |
122 class ActionBlockDialog(wx.Dialog): |
123 |
123 |
124 def __init__(self, parent): |
124 def __init__(self, parent): |