364 self.setAcceptDrops(True) |
364 self.setAcceptDrops(True) |
365 |
365 |
366 # breakpoint handling |
366 # breakpoint handling |
367 self.breakpointModel = self.dbs.getBreakPointModel() |
367 self.breakpointModel = self.dbs.getBreakPointModel() |
368 self.__restoreBreakpoints() |
368 self.__restoreBreakpoints() |
369 self.connect(self.breakpointModel, |
369 self.breakpointModel.rowsAboutToBeRemoved.connect( |
370 SIGNAL("rowsAboutToBeRemoved(const QModelIndex &, int, int)"), |
|
371 self.__deleteBreakPoints) |
370 self.__deleteBreakPoints) |
372 self.connect(self.breakpointModel, |
371 self.breakpointModel.dataAboutToBeChanged.connect( |
373 SIGNAL("dataAboutToBeChanged(const QModelIndex &, const QModelIndex &)"), |
|
374 self.__breakPointDataAboutToBeChanged) |
372 self.__breakPointDataAboutToBeChanged) |
375 self.connect(self.breakpointModel, |
373 self.breakpointModel.dataChanged.connect( |
376 SIGNAL("dataChanged(const QModelIndex &, const QModelIndex &)"), |
|
377 self.__changeBreakPoints) |
374 self.__changeBreakPoints) |
378 self.connect(self.breakpointModel, |
375 self.breakpointModel.rowsInserted.connect( |
379 SIGNAL("rowsInserted(const QModelIndex &, int, int)"), |
|
380 self.__addBreakPoints) |
376 self.__addBreakPoints) |
381 self.connect(self, SIGNAL("linesChanged()"), self.__linesChanged) |
377 self.connect(self, SIGNAL("linesChanged()"), self.__linesChanged) |
382 |
378 |
383 # establish connection to some ViewManager action groups |
379 # establish connection to some ViewManager action groups |
384 self.addActions(self.vm.editorActGrp.actions()) |
380 self.addActions(self.vm.editorActGrp.actions()) |
4721 |
4717 |
4722 for clone in self.__clones[:]: |
4718 for clone in self.__clones[:]: |
4723 self.removeClone(clone) |
4719 self.removeClone(clone) |
4724 clone.removeClone(self) |
4720 clone.removeClone(self) |
4725 |
4721 |
4726 self.disconnect(self.breakpointModel, |
4722 self.breakpointModel.rowsAboutToBeRemoved.disconnect( |
4727 SIGNAL("rowsAboutToBeRemoved(const QModelIndex &, int, int)"), |
|
4728 self.__deleteBreakPoints) |
4723 self.__deleteBreakPoints) |
4729 self.disconnect(self.breakpointModel, |
4724 self.breakpointModel.dataAboutToBeChanged.disconnect( |
4730 SIGNAL("dataAboutToBeChanged(const QModelIndex &, const QModelIndex &)"), |
|
4731 self.__breakPointDataAboutToBeChanged) |
4725 self.__breakPointDataAboutToBeChanged) |
4732 self.disconnect(self.breakpointModel, |
4726 self.breakpointModel.dataChanged.disconnect( |
4733 SIGNAL("dataChanged(const QModelIndex &, const QModelIndex &)"), |
|
4734 self.__changeBreakPoints) |
4727 self.__changeBreakPoints) |
4735 self.disconnect(self.breakpointModel, |
4728 self.breakpointModel.rowsInserted.disconnect( |
4736 SIGNAL("rowsInserted(const QModelIndex &, int, int)"), |
|
4737 self.__addBreakPoints) |
4729 self.__addBreakPoints) |
4738 |
4730 |
4739 self.disconnect(self.project, SIGNAL("projectPropertiesChanged"), |
4731 self.disconnect(self.project, SIGNAL("projectPropertiesChanged"), |
4740 self.__projectPropertiesChanged) |
4732 self.__projectPropertiesChanged) |
4741 |
4733 |