41 self.setupUi(self) |
41 self.setupUi(self) |
42 |
42 |
43 self.__dbs = debugServer |
43 self.__dbs = debugServer |
44 |
44 |
45 self.startTraceButton.setIcon( |
45 self.startTraceButton.setIcon( |
46 UI.PixmapCache.getIcon("callTraceStart.png")) |
46 UI.PixmapCache.getIcon("callTraceStart")) |
47 self.stopTraceButton.setIcon( |
47 self.stopTraceButton.setIcon( |
48 UI.PixmapCache.getIcon("callTraceStop.png")) |
48 UI.PixmapCache.getIcon("callTraceStop")) |
49 self.resizeButton.setIcon(UI.PixmapCache.getIcon("resizeColumns.png")) |
49 self.resizeButton.setIcon(UI.PixmapCache.getIcon("resizeColumns")) |
50 self.clearButton.setIcon(UI.PixmapCache.getIcon("editDelete.png")) |
50 self.clearButton.setIcon(UI.PixmapCache.getIcon("editDelete")) |
51 self.saveButton.setIcon(UI.PixmapCache.getIcon("fileSave.png")) |
51 self.saveButton.setIcon(UI.PixmapCache.getIcon("fileSave")) |
52 |
52 |
53 self.__headerItem = QTreeWidgetItem( |
53 self.__headerItem = QTreeWidgetItem( |
54 ["", self.tr("From"), self.tr("To")]) |
54 ["", self.tr("From"), self.tr("To")]) |
55 self.__headerItem.setIcon(0, UI.PixmapCache.getIcon("callReturn.png")) |
55 self.__headerItem.setIcon(0, UI.PixmapCache.getIcon("callReturn")) |
56 self.callTrace.setHeaderItem(self.__headerItem) |
56 self.callTrace.setHeaderItem(self.__headerItem) |
57 |
57 |
58 self.__callStack = [] |
58 self.__callStack = [] |
59 |
59 |
60 self.__entryFormat = "{0}:{1} ({2})" |
60 self.__entryFormat = "{0}:{1} ({2})" |
240 @param toFile name of the target file (string) |
240 @param toFile name of the target file (string) |
241 @param toLine line number in the target file (string) |
241 @param toLine line number in the target file (string) |
242 @param toFunction name of the target function (string) |
242 @param toFunction name of the target function (string) |
243 """ |
243 """ |
244 if isCall: |
244 if isCall: |
245 icon = UI.PixmapCache.getIcon("forward.png") |
245 icon = UI.PixmapCache.getIcon("forward") |
246 else: |
246 else: |
247 icon = UI.PixmapCache.getIcon("back.png") |
247 icon = UI.PixmapCache.getIcon("back") |
248 parentItem = ( |
248 parentItem = ( |
249 self.__callStack[-1] if self.__callStack else self.callTrace) |
249 self.__callStack[-1] if self.__callStack else self.callTrace) |
250 |
250 |
251 if self.__projectMode: |
251 if self.__projectMode: |
252 fromFile = self.__project.getRelativePath(fromFile) |
252 fromFile = self.__project.getRelativePath(fromFile) |