3 // Copyright by Johannes Sixt
4 // This file is under GPL, the GNU General Public Licence
6 // the list of breakpoints
11 #include <qlistview.h>
13 #include <qpushbutton.h>
14 #include <qlineedit.h>
21 class BreakpointTable
: public QWidget
25 BreakpointTable(QWidget
* parent
, const char* name
);
27 void setDebugger(KDebugger
* deb
) { m_debugger
= deb
; }
30 KDebugger
* m_debugger
;
33 QPushButton m_btAddBP
;
34 QPushButton m_btAddWP
;
35 QPushButton m_btRemove
;
36 QPushButton m_btEnaDis
;
37 QPushButton m_btViewCode
;
38 QPushButton m_btConditional
;
40 QVBoxLayout m_listandedit
;
41 QVBoxLayout m_buttons
;
42 ValArray
<QPixmap
> m_icons
;
44 void insertBreakpoint(int num
, bool temp
, bool enabled
, QString location
,
45 QString fileName
= 0, int lineNo
= -1,
46 int hits
= 0, uint ignoreCount
= 0,
47 QString condition
= QString());
48 void initListAndIcons();
49 void updateBreakpointCondition(int id
, const QString
& condition
,
51 virtual bool eventFilter(QObject
* ob
, QEvent
* ev
);
53 friend class BreakpointItem
;
57 * This signal is emitted when the user wants to go to the source code
58 * where the current breakpoint is in.
60 * @param file specifies the file; this is not necessarily a full path
61 * name, and if it is relative, you won't know relative to what, you
63 * @param lineNo specifies the line number (0-based!).
64 * @param address specifies the exact address of the breakpoint.
66 void activateFileLine(const QString
& file
, int lineNo
, const DbgAddr
& address
);
70 virtual void removeBP();
71 virtual void enadisBP();
72 virtual void viewBP();
73 virtual void conditionalBP();
75 void updateBreakList();