def __init__(self, mainwindow): self.mainwindow = mainwindow tracer.setClassName(scriptenv.CLASSNAME) self.settings = QSettings("fh-hagenberg", "ricodebug") self.configStore = ConfigStore(self.settings) self.gdb_connector = GdbConnector() self.signalProxy = SignalProxy(self) self.debugController = DebugController(self) self.actions = Actions(self) self.sessionManager = SessionManager(self) self.breakpointModel, _ = self.buildModelAndView(StoppointModel, BreakpointView, "Breakpoints", Icons.bp) self.variablePool = VariablePool(self) self.editorController = EditorController(self, mainwindow.ui.editorView) scriptView = self.buildView(ScriptView, "Python Console", Icons.python) tracer.setCallback(scriptView.appendTranscript) self.filelistController = FileListController(self) self.stackController = StackController(self) self.threadModel, _ = self.buildModelAndView(ThreadModel, ThreadView, "Threads", Icons.thread) self.watchModel, _ = self.buildModelAndView(WatchModel, WatchView, "Watch", Icons.watch) self.buildModelAndView(LocalsModel, TreeItemView, "Locals", Icons.locals) self.toolTipController = VariableViewToolTipController(self, VariableViewToolTip(self, self.editorController.getView())) self.tracepointController = TracepointController(self) self.buildView(InferiorIoView, "Output", Icons.console) self.buildView(GdbIoView, "GDB Console") self.datagraphController = DataGraphController(self) self.stlvectorParser = StlVectorParser(self) self.tracepointwaveController = TracepointWaveController(self) self.miView = self.buildView(MiTraceView, "MI Trace") self.scriptEnv = scriptenv.ScriptEnv(self)
def __init__(self, mainwindow): self.mainwindow = mainwindow self.settings = QSettings("fh-hagenberg", "ricodebug") self.configStore = ConfigStore(self.settings) self.gdb_connector = GdbConnector() self.signalProxy = SignalProxy(self) self.debugController = DebugController(self) self.actions = Actions(self) self.sessionManager = SessionManager(self) self.breakpointModel, _ = self.buildModelAndView( StoppointModel, BreakpointView, "Breakpoints", Icons.bp) self.variablePool = VariablePool(self) self.editorController = EditorController(self) self.filelistController = FileListController(self) self.stackController = StackController(self) self.threadModel, _ = self.buildModelAndView(ThreadModel, ThreadView, "Threads", Icons.thread) self.watchModel, _ = self.buildModelAndView(WatchModel, WatchView, "Watch", Icons.watch) # watchView = WatchView() # watchController = WatchController(self, watchView) # self.watchModel = watchController.model _1, _2 = self.buildModelAndView(LocalsModel, TreeItemView, "Locals", Icons.locals) # localsView = LocalsView() # localsController = LocalsController(self, localsView) self.toolTipController = ToolTipController( self, ToolTipView(self, self.editorController.editor_view)) self.tracepointController = TracepointController(self) self.buildView(PyIoView, "Python Console", Icons.python) self.buildView(InferiorIoView, "Output", Icons.console) self.buildView(GdbIoView, "GDB Console") self.datagraphController = DataGraphController(self) self.stlvectorParser = StlVectorParser(self) self.tracepointwaveController = TracepointWaveController(self) self.miView = self.buildView(MiTraceView, "MI Trace")
class DistributedObjects: def __init__(self, mainwindow): self.mainwindow = mainwindow tracer.setClassName(scriptenv.CLASSNAME) self.settings = QSettings("fh-hagenberg", "ricodebug") self.configStore = ConfigStore(self.settings) self.gdb_connector = GdbConnector() self.signalProxy = SignalProxy(self) self.debugController = DebugController(self) self.actions = Actions(self) self.sessionManager = SessionManager(self) self.breakpointModel, _ = self.buildModelAndView(StoppointModel, BreakpointView, "Breakpoints", Icons.bp) self.variablePool = VariablePool(self) self.editorController = EditorController(self, mainwindow.ui.editorView) scriptView = self.buildView(ScriptView, "Python Console", Icons.python) tracer.setCallback(scriptView.appendTranscript) self.filelistController = FileListController(self) self.stackController = StackController(self) self.threadModel, _ = self.buildModelAndView(ThreadModel, ThreadView, "Threads", Icons.thread) self.watchModel, _ = self.buildModelAndView(WatchModel, WatchView, "Watch", Icons.watch) self.buildModelAndView(LocalsModel, TreeItemView, "Locals", Icons.locals) self.toolTipController = VariableViewToolTipController(self, VariableViewToolTip(self, self.editorController.getView())) self.tracepointController = TracepointController(self) self.buildView(InferiorIoView, "Output", Icons.console) self.buildView(GdbIoView, "GDB Console") self.datagraphController = DataGraphController(self) self.stlvectorParser = StlVectorParser(self) self.tracepointwaveController = TracepointWaveController(self) self.miView = self.buildView(MiTraceView, "MI Trace") self.scriptEnv = scriptenv.ScriptEnv(self) def buildModelAndView(self, ModelCls, ViewCls, name, icon=None): view = self.buildView(ViewCls, name, icon) model = ModelCls(self) view.setModel(model) return model, view def buildView(self, ViewCls, name, icon=None): dw = self.mainwindow.insertDockWidget(None, name, Qt.BottomDockWidgetArea, True) if icon: dw.setWindowIcon(icon) view = ViewCls(self, dw) dw.setWidget(view) return view