Update version number and build instructions in the spec file.
[kdbg.git] / kdbg / brkpt.h
blobcf8d830bd11ac69bf552a6d600e33a91801466c5
1 /*
2 * Copyright Johannes Sixt
3 * This file is licensed under the GNU General Public License Version 2.
4 * See the file COPYING in the toplevel directory of the source directory.
5 */
7 #ifndef BRKPT_H
8 #define BRKPT_H
10 #include <QIcon>
11 #include <QEvent>
12 #include <vector>
14 #include "ui_brkptbase.h"
16 class KDebugger;
17 class BreakpointItem;
20 class BreakpointTable : public QWidget
22 Q_OBJECT
23 public:
24 BreakpointTable(QWidget* parent);
25 ~BreakpointTable();
26 void setDebugger(KDebugger* deb) { m_debugger = deb; }
28 protected:
29 KDebugger* m_debugger;
30 Ui::BrkPtBase m_ui;
31 std::vector<QIcon> m_icons;
33 void insertBreakpoint(int num, bool temp, bool enabled, QString location,
34 QString fileName = 0, int lineNo = -1,
35 int hits = 0, uint ignoreCount = 0,
36 QString condition = QString());
37 void initListAndIcons();
38 virtual bool eventFilter(QObject* ob, QEvent* ev);
40 friend class BreakpointItem;
42 signals:
43 /**
44 * This signal is emitted when the user wants to go to the source code
45 * where the current breakpoint is in.
47 * @param file specifies the file; this is not necessarily a full path
48 * name, and if it is relative, you won't know relative to what, you
49 * can only guess.
50 * @param lineNo specifies the line number (0-based!).
51 * @param address specifies the exact address of the breakpoint.
53 void activateFileLine(const QString& file, int lineNo, const DbgAddr& address);
54 public slots:
55 void on_btAddBP_clicked();
56 void on_btAddWP_clicked();
57 void on_btRemove_clicked();
58 void on_btEnaDis_clicked();
59 void on_btViewCode_clicked();
60 void on_btConditional_clicked();
61 void updateUI();
62 void updateBreakList();
65 #endif // BRKPT_H