Rename remove/addItem in the fit controllere to remove/addModule

This commit is contained in:
cncfanatics
2010-09-04 21:32:32 +02:00
parent 635e904a58
commit 410f1db0f1
2 changed files with 4 additions and 4 deletions

View File

@@ -57,14 +57,14 @@ class FittingView(d.Display):
fitID = self.activeFitID
if fitID != None:
cFit = controller.Fit.getInstance()
cFit.appendItem(fitID, itemID)
cFit.appendModule(fitID, itemID)
wx.PostEvent(self.mainFrame, FitChanged(fitID=fitID))
def removeItem(self, event):
row, _ = self.HitTest(event.Position)
if row != -1:
cFit = controller.Fit.getInstance()
cFit.removeItem(self.activeFitID, self.mods[self.GetItemData(row)].position)
cFit.removeModule(self.activeFitID, self.mods[self.GetItemData(row)].position)
wx.PostEvent(self.mainFrame, FitChanged(fitID=self.activeFitID))