eric6/Debugger/DebugViewer.py

changeset 7533
88261c96484b
parent 7475
33fbefbb5057
child 7564
787684e6f2f3
child 7707
6abcf4275d0e
equal deleted inserted replaced
7532:1358e9d67a1c 7533:88261c96484b
60 super(DebugViewer, self).__init__(parent) 60 super(DebugViewer, self).__init__(parent)
61 61
62 self.debugServer = debugServer 62 self.debugServer = debugServer
63 self.debugUI = None 63 self.debugUI = None
64 64
65 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) 65 self.setWindowIcon(UI.PixmapCache.getIcon("eric"))
66 66
67 self.__mainLayout = QVBoxLayout() 67 self.__mainLayout = QVBoxLayout()
68 self.__mainLayout.setContentsMargins(0, 0, 0, 0) 68 self.__mainLayout.setContentsMargins(0, 0, 0, 0)
69 self.setLayout(self.__mainLayout) 69 self.setLayout(self.__mainLayout)
70 70
103 self.glvWidgetHLayout.addWidget(self.setGlobalsFilterButton) 103 self.glvWidgetHLayout.addWidget(self.setGlobalsFilterButton)
104 self.glvWidgetVLayout.addLayout(self.glvWidgetHLayout) 104 self.glvWidgetVLayout.addLayout(self.glvWidgetHLayout)
105 105
106 index = self.__tabWidget.addTab( 106 index = self.__tabWidget.addTab(
107 self.glvWidget, 107 self.glvWidget,
108 UI.PixmapCache.getIcon("globalVariables.png"), '') 108 UI.PixmapCache.getIcon("globalVariables"), '')
109 self.__tabWidget.setTabToolTip(index, self.globalsViewer.windowTitle()) 109 self.__tabWidget.setTabToolTip(index, self.globalsViewer.windowTitle())
110 110
111 self.setGlobalsFilterButton.clicked.connect( 111 self.setGlobalsFilterButton.clicked.connect(
112 self.setGlobalsFilter) 112 self.setGlobalsFilter)
113 self.globalsFilterEdit.returnPressed.connect(self.setGlobalsFilter) 113 self.globalsFilterEdit.returnPressed.connect(self.setGlobalsFilter)
157 self.lvWidgetHLayout2.addWidget(self.setLocalsFilterButton) 157 self.lvWidgetHLayout2.addWidget(self.setLocalsFilterButton)
158 self.lvWidgetVLayout.addLayout(self.lvWidgetHLayout2) 158 self.lvWidgetVLayout.addLayout(self.lvWidgetHLayout2)
159 159
160 index = self.__tabWidget.addTab( 160 index = self.__tabWidget.addTab(
161 self.lvWidget, 161 self.lvWidget,
162 UI.PixmapCache.getIcon("localVariables.png"), '') 162 UI.PixmapCache.getIcon("localVariables"), '')
163 self.__tabWidget.setTabToolTip(index, self.localsViewer.windowTitle()) 163 self.__tabWidget.setTabToolTip(index, self.localsViewer.windowTitle())
164 164
165 self.sourceButton.clicked.connect(self.__showSource) 165 self.sourceButton.clicked.connect(self.__showSource)
166 self.stackComboBox.currentIndexChanged[int].connect( 166 self.stackComboBox.currentIndexChanged[int].connect(
167 self.__frameSelected) 167 self.__frameSelected)
187 from .CallTraceViewer import CallTraceViewer 187 from .CallTraceViewer import CallTraceViewer
188 # add the call trace viewer 188 # add the call trace viewer
189 self.callTraceViewer = CallTraceViewer(self.debugServer) 189 self.callTraceViewer = CallTraceViewer(self.debugServer)
190 index = self.__tabWidget.addTab( 190 index = self.__tabWidget.addTab(
191 self.callTraceViewer, 191 self.callTraceViewer,
192 UI.PixmapCache.getIcon("callTrace.png"), "") 192 UI.PixmapCache.getIcon("callTrace"), "")
193 self.__tabWidget.setTabToolTip( 193 self.__tabWidget.setTabToolTip(
194 index, self.callTraceViewer.windowTitle()) 194 index, self.callTraceViewer.windowTitle())
195 self.callTraceViewer.sourceFile.connect(self.sourceFile) 195 self.callTraceViewer.sourceFile.connect(self.sourceFile)
196 196
197 from .BreakPointViewer import BreakPointViewer 197 from .BreakPointViewer import BreakPointViewer
198 # add the breakpoint viewer 198 # add the breakpoint viewer
199 self.breakpointViewer = BreakPointViewer() 199 self.breakpointViewer = BreakPointViewer()
200 self.breakpointViewer.setModel(self.debugServer.getBreakPointModel()) 200 self.breakpointViewer.setModel(self.debugServer.getBreakPointModel())
201 index = self.__tabWidget.addTab( 201 index = self.__tabWidget.addTab(
202 self.breakpointViewer, 202 self.breakpointViewer,
203 UI.PixmapCache.getIcon("breakpoints.png"), '') 203 UI.PixmapCache.getIcon("breakpoints"), '')
204 self.__tabWidget.setTabToolTip( 204 self.__tabWidget.setTabToolTip(
205 index, self.breakpointViewer.windowTitle()) 205 index, self.breakpointViewer.windowTitle())
206 self.breakpointViewer.sourceFile.connect(self.sourceFile) 206 self.breakpointViewer.sourceFile.connect(self.sourceFile)
207 207
208 from .WatchPointViewer import WatchPointViewer 208 from .WatchPointViewer import WatchPointViewer
209 # add the watch expression viewer 209 # add the watch expression viewer
210 self.watchpointViewer = WatchPointViewer() 210 self.watchpointViewer = WatchPointViewer()
211 self.watchpointViewer.setModel(self.debugServer.getWatchPointModel()) 211 self.watchpointViewer.setModel(self.debugServer.getWatchPointModel())
212 index = self.__tabWidget.addTab( 212 index = self.__tabWidget.addTab(
213 self.watchpointViewer, 213 self.watchpointViewer,
214 UI.PixmapCache.getIcon("watchpoints.png"), '') 214 UI.PixmapCache.getIcon("watchpoints"), '')
215 self.__tabWidget.setTabToolTip( 215 self.__tabWidget.setTabToolTip(
216 index, self.watchpointViewer.windowTitle()) 216 index, self.watchpointViewer.windowTitle())
217 217
218 from .ExceptionLogger import ExceptionLogger 218 from .ExceptionLogger import ExceptionLogger
219 # add the exception logger 219 # add the exception logger
220 self.exceptionLogger = ExceptionLogger() 220 self.exceptionLogger = ExceptionLogger()
221 index = self.__tabWidget.addTab( 221 index = self.__tabWidget.addTab(
222 self.exceptionLogger, 222 self.exceptionLogger,
223 UI.PixmapCache.getIcon("exceptions.png"), '') 223 UI.PixmapCache.getIcon("exceptions"), '')
224 self.__tabWidget.setTabToolTip( 224 self.__tabWidget.setTabToolTip(
225 index, self.exceptionLogger.windowTitle()) 225 index, self.exceptionLogger.windowTitle())
226 226
227 self.__tabWidget.setCurrentWidget(self.glvWidget) 227 self.__tabWidget.setCurrentWidget(self.glvWidget)
228 228

eric ide

mercurial