void DebuggerManager::init() { //connects the WATCH UI to us connect(m_window->btAddWatch(), SIGNAL(clicked()), this, SLOT(slotAddWatch())); connect(m_window->edAddWatch(), SIGNAL(returnPressed()), this, SLOT(slotAddWatch())); connect(m_window->tabEditor(), SIGNAL(sigAddWatch(const QString&)), this, SLOT(slotAddWatch(const QString&))); connect(m_window->watchList(), SIGNAL(sigWatchRemoved(Variable*)), this, SLOT(slotWatchRemoved(Variable*))); connect(m_window->watchList(), SIGNAL(sigVarModified(Variable*)), this, SLOT(slotLocalVarModified(Variable*))); //connects the STACK UI to us connect(m_window->stackCombo(), SIGNAL(changed(DebuggerExecutionPoint*, DebuggerExecutionPoint*)), this, SLOT(slotComboStackChanged(DebuggerExecutionPoint*, DebuggerExecutionPoint*))); //connects the Variables UI (VariablesList local/global) to us connect(m_window->globalVarList(), SIGNAL(sigVarModified(Variable*)), this, SLOT(slotGlobalVarModified(Variable*))); connect(m_window->localVarList(), SIGNAL(sigVarModified(Variable*)), this, SLOT(slotLocalVarModified(Variable*))); //connects the editor with the BREAKPOINT UI connect(m_window->tabEditor(), SIGNAL(sigBreakpointMarked(const KURL&, int, bool)), m_window->breakpointListView(), SLOT(slotBreakpointMarked(const KURL&, int, bool))); connect(m_window->tabEditor(), SIGNAL(sigBreakpointUnmarked(const KURL&, int )), m_window->breakpointListView(), SLOT(slotBreakpointUnmarked(const KURL&, int))); //connects the editor to us connect(m_window->tabEditor(), SIGNAL(sigNewPage()), this, SLOT(slotNewDocument())); connect(m_window->tabEditor(), SIGNAL(sigEmpty()), this, SLOT(slotNoDocument())); //connects the BREAKPOINT UI to us connect(m_window->breakpointListView(), SIGNAL(sigBreakpointCreated(DebuggerBreakpoint*)), this, SLOT(slotBreakpointCreated(DebuggerBreakpoint*))); connect(m_window->breakpointListView(), SIGNAL(sigBreakpointChanged(DebuggerBreakpoint*)), this, SLOT(slotBreakpointChanged(DebuggerBreakpoint*))); connect(m_window->breakpointListView(), SIGNAL(sigBreakpointRemoved(DebuggerBreakpoint*)), this, SLOT(slotBreakpointRemoved(DebuggerBreakpoint*))); connect(m_window->breakpointListView(), SIGNAL(sigDoubleClick(const KURL&, int)), this, SLOT(slotGotoLineAtFile(const KURL&, int))); //connects the LOG UI to us connect(m_window->messageListView(), SIGNAL(sigDoubleClick(const KURL&, int)), this, SLOT(slotGotoLineAtFile(const KURL&, int))); loadDebuggers(); }
void DebuggerManager::init() { //-----WATCH UI connect(m_window->btAddWatch(), SIGNAL(clicked()), this, SLOT(slotAddWatch())); connect(m_window->edAddWatch(), SIGNAL(returnPressed()), this, SLOT(slotAddWatch())); connect(m_window->tabEditor(), SIGNAL(sigAddWatch(const QString&)), this, SLOT(slotAddWatch(const QString&))); connect(m_window->watchList(), SIGNAL(sigWatchRemoved(Variable*)), this, SLOT(slotWatchRemoved(Variable*))); connect(m_window->watchList(), SIGNAL(sigVarModified(Variable*)), this, SLOT(slotLocalVarModified(Variable*))); //-------STACK UI connect(m_window->stackCombo(), SIGNAL(changed(DebuggerExecutionPoint*, DebuggerExecutionPoint*)), this, SLOT(slotComboStackChanged(DebuggerExecutionPoint*, DebuggerExecutionPoint*))); //-----VARS UI connect(m_window->globalVarList(), SIGNAL(sigVarModified(Variable*)), this, SLOT(slotGlobalVarModified(Variable*))); connect(m_window->localVarList(), SIGNAL(sigVarModified(Variable*)), this, SLOT(slotLocalVarModified(Variable*))); //---BREAKPOINT UI -- TextEditor * BreakpointListview connect(m_window->tabEditor(), SIGNAL(sigBreakpointMarked(const QString&, int )), m_window->breakpointListView(), SLOT(slotBreakpointMarked(const QString&, int))); connect(m_window->tabEditor(), SIGNAL(sigBreakpointUnmarked(const QString&, int )), m_window->breakpointListView(), SLOT(slotBreakpointUnmarked(const QString&, int))); //----documents connect(m_window->tabEditor(), SIGNAL(sigNewDocument()), this, SLOT(slotNewDocument())); connect(m_window->tabEditor(), SIGNAL(sigNoDocument()), this, SLOT(slotNoDocument())); //------BREAKPOINT UI (from listview) connect(m_window->breakpointListView(), SIGNAL(sigBreakpointCreated(DebuggerBreakpoint*)), this, SLOT(slotBreakpointCreated(DebuggerBreakpoint*))); connect(m_window->breakpointListView(), SIGNAL(sigBreakpointChanged(DebuggerBreakpoint*)), this, SLOT(slotBreakpointChanged(DebuggerBreakpoint*))); connect(m_window->breakpointListView(), SIGNAL(sigBreakpointRemoved(DebuggerBreakpoint*)), this, SLOT(slotBreakpointRemoved(DebuggerBreakpoint*))); connect(m_window->breakpointListView(), SIGNAL(sigDoubleClick(const QString&, int)), this, SLOT(slotGotoLineAtFile(const QString&, int))); //-------- LOG connect(m_window->logListView(), SIGNAL(sigDoubleClick(const QString&, int)), this, SLOT(slotGotoLineAtFile(const QString&, int))); /* connect(m_window->breakpointListView(), SIGNAL(sigBrekpointDeleted(DebuggerBreakpoint*)), this, SLOT(slotBrekpointDeleted(DebuggerBreakpoint*))); */ loadDebugger(); }