dialogs/ActionBlockDialog.py
changeset 1340 7e5702d1f246
parent 1339 6adf05c4508d
child 1347 533741e5075c
equal deleted inserted replaced
1339:6adf05c4508d 1340:7e5702d1f246
   203     def SetActionList(self, list):
   203     def SetActionList(self, list):
   204         self.ActionList = "," + ",".join(list)
   204         self.ActionList = "," + ",".join(list)
   205 
   205 
   206     def SetValues(self, actions):
   206     def SetValues(self, actions):
   207         for action in actions:
   207         for action in actions:
   208             if action.type == "reference" and action.value in self.ActionList:
   208             row = action.copy()
   209                 action.type = "Action"
   209             if row.type == "reference" and row.value in self.ActionList:
   210             elif action.type == "reference" and action.value in self.VariableList:
   210                 row.type = "Action"
   211                 action.type = "Variable"
   211             elif row.type == "reference" and row.value in self.VariableList:
       
   212                 row.type = "Variable"
   212             else:
   213             else:
   213                 action.type = "Inline"
   214                 row.type = "Inline"
   214         self.Table.SetData(actions)
   215             self.Table.AppendRow(row)
   215         self.Table.ResetView(self.ActionsGrid)
   216         self.Table.ResetView(self.ActionsGrid)
   216         if len(actions) > 0:
   217         if len(actions) > 0:
   217             self.ActionsGrid.SetGridCursor(0, 0)
   218             self.ActionsGrid.SetGridCursor(0, 0)
   218         self.ActionsGrid.RefreshButtons()
   219         self.ActionsGrid.RefreshButtons()
   219     
   220