plugins/c_ext/CFileEditor.py
changeset 603 e1ef99c609eb
parent 587 c6354f7fe26e
child 610 00df5b1db283
equal deleted inserted replaced
602:6da88269088d 603:e1ef99c609eb
   527                 
   527                 
   528                 if colname == "Name":
   528                 if colname == "Name":
   529                     editor = wx.grid.GridCellTextEditor()
   529                     editor = wx.grid.GridCellTextEditor()
   530                 elif colname == "Class":
   530                 elif colname == "Class":
   531                     editor = wx.grid.GridCellChoiceEditor()
   531                     editor = wx.grid.GridCellChoiceEditor()
   532                     editor.SetParameters("input,output")
   532                     editor.SetParameters("input,memory,output")
   533                 elif colname == "Type":
   533                 elif colname == "Type":
   534                     pass
   534                     pass
   535                 else:
   535                 else:
   536                     grid.SetReadOnly(row, col, True)
   536                     grid.SetReadOnly(row, col, True)
   537                 
   537                 
   767             num = 0
   767             num = 0
   768             if self.Table.GetValueByName(row, "Class") == "input":
   768             if self.Table.GetValueByName(row, "Class") == "input":
   769                 dir = "%I"
   769                 dir = "%I"
   770                 for i in xrange(row):
   770                 for i in xrange(row):
   771                     if self.Table.GetValueByName(i, "Class") == "input":
   771                     if self.Table.GetValueByName(i, "Class") == "input":
       
   772                         num += 1
       
   773             elif self.Table.GetValueByName(row, "Class") == "memory":
       
   774                 dir = "%M"
       
   775                 for i in xrange(row):
       
   776                     if self.Table.GetValueByName(i, "Class") == "memory":
   772                         num += 1
   777                         num += 1
   773             else:
   778             else:
   774                 dir = "%Q"
   779                 dir = "%Q"
   775                 for i in xrange(row):
   780                 for i in xrange(row):
   776                     if self.Table.GetValueByName(i, "Class") == "output":
   781                     if self.Table.GetValueByName(i, "Class") == "output":