2102 Private method to add a new breakpoint. |
2102 Private method to add a new breakpoint. |
2103 |
2103 |
2104 @param line line number of the breakpoint (integer) |
2104 @param line line number of the breakpoint (integer) |
2105 @param temporary flag indicating a temporary breakpoint (boolean) |
2105 @param temporary flag indicating a temporary breakpoint (boolean) |
2106 """ |
2106 """ |
2107 if self.fileName and \ |
2107 if self.fileName and self.isPyFile(): |
2108 (self.isPyFile() or self.isRubyFile()): |
|
2109 self.breakpointModel.addBreakPoint( |
2108 self.breakpointModel.addBreakPoint( |
2110 self.fileName, line, ('', temporary, True, 0)) |
2109 self.fileName, line, ('', temporary, True, 0)) |
2111 self.breakpointToggled.emit(self) |
2110 self.breakpointToggled.emit(self) |
2112 |
2111 |
2113 def __toggleBreakpointEnabled(self, line): |
2112 def __toggleBreakpointEnabled(self, line): |
5106 def __showContextMenuMargin(self): |
5105 def __showContextMenuMargin(self): |
5107 """ |
5106 """ |
5108 Private slot handling the aboutToShow signal of the margins context |
5107 Private slot handling the aboutToShow signal of the margins context |
5109 menu. |
5108 menu. |
5110 """ |
5109 """ |
5111 if self.fileName and (self.isPyFile() or self.isRubyFile()): |
5110 if self.fileName and self.isPyFile(): |
5112 self.marginMenuActs["Breakpoint"].setEnabled(True) |
5111 self.marginMenuActs["Breakpoint"].setEnabled(True) |
5113 self.marginMenuActs["TempBreakpoint"].setEnabled(True) |
5112 self.marginMenuActs["TempBreakpoint"].setEnabled(True) |
5114 if self.markersAtLine(self.line) & self.breakpointMask: |
5113 if self.markersAtLine(self.line) & self.breakpointMask: |
5115 self.marginMenuActs["EditBreakpoint"].setEnabled(True) |
5114 self.marginMenuActs["EditBreakpoint"].setEnabled(True) |
5116 self.marginMenuActs["EnableBreakpoint"].setEnabled(True) |
5115 self.marginMenuActs["EnableBreakpoint"].setEnabled(True) |