equal
deleted
inserted
replaced
353 #------------------------------------------------------------------------------- |
353 #------------------------------------------------------------------------------- |
354 # Adding element functions |
354 # Adding element functions |
355 #------------------------------------------------------------------------------- |
355 #------------------------------------------------------------------------------- |
356 |
356 |
357 def AddInitialStep(self, pos): |
357 def AddInitialStep(self, pos): |
358 dialog = StepNameDialog(self.ParentWindow, "Add a new initial step", "Please enter step name", "", wx.OK|wx.CANCEL) |
358 dialog = StepNameDialog(self.ParentWindow, "Please enter step name", "Add a new initial step", "", wx.OK|wx.CANCEL) |
359 dialog.SetPouNames(self.Controler.GetProjectPouNames(self.Debug)) |
359 dialog.SetPouNames(self.Controler.GetProjectPouNames(self.Debug)) |
360 dialog.SetVariables(self.Controler.GetEditedElementInterfaceVars(self.TagName, self.Debug)) |
360 dialog.SetVariables(self.Controler.GetEditedElementInterfaceVars(self.TagName, self.Debug)) |
361 dialog.SetStepNames([block.GetName() for block in self.Blocks if isinstance(block, SFC_Step)]) |
361 dialog.SetStepNames([block.GetName() for block in self.Blocks if isinstance(block, SFC_Step)]) |
362 if dialog.ShowModal() == wx.ID_OK: |
362 if dialog.ShowModal() == wx.ID_OK: |
363 id = self.GetNewId() |
363 id = self.GetNewId() |