controls/VariablePanel.py
changeset 1878 fb73a6b6622d
parent 1853 47a3f39bead0
child 1951 bbd1e1744c91
child 1969 0607c382d73f
equal deleted inserted replaced
1877:da5f1fa46f2b 1878:fb73a6b6622d
   393                                 location = "%Q" + location
   393                                 location = "%Q" + location
   394                             else:
   394                             else:
   395                                 location = "%M" + location
   395                                 location = "%M" + location
   396                         if element_type == "functionBlock":
   396                         if element_type == "functionBlock":
   397                             configs = self.ParentWindow.Controler.GetProjectConfigNames(
   397                             configs = self.ParentWindow.Controler.GetProjectConfigNames(
   398                                                                 self.ParentWindow.Debug)
   398                                 self.ParentWindow.Debug)
   399                             if len(configs) == 0:
   399                             if len(configs) == 0:
   400                                 return
   400                                 return
   401                             if not var_name.upper() in [
   401                             if not var_name.upper() in [
   402                                     name.upper() for name in
   402                                     name.upper() for name in
   403                                     self.ParentWindow.Controler.GetConfigurationVariableNames(configs[0])]:
   403                                     self.ParentWindow.Controler.GetConfigurationVariableNames(configs[0])]:
   617                     row_content.Class = self.DefaultTypes[self.Filter]
   617                     row_content.Class = self.DefaultTypes[self.Filter]
   618                 else:
   618                 else:
   619                     row_content.Class = self.Filter
   619                     row_content.Class = self.Filter
   620 
   620 
   621             row_content.Name = self.Controler.GenerateNewName(
   621             row_content.Name = self.Controler.GenerateNewName(
   622                     self.TagName, None, name + "%d", start_idx)
   622                 self.TagName, None, name + "%d", start_idx)
   623 
   623 
   624             if self.Filter == "All" and len(self.Values) > 0:
   624             if self.Filter == "All" and len(self.Values) > 0:
   625                 self.Values.insert(new_row, row_content)
   625                 self.Values.insert(new_row, row_content)
   626             else:
   626             else:
   627                 self.Values.append(row_content)
   627                 self.Values.append(row_content)