| 1 | // |
| 2 | // brkWin.h: Breakpoints |
| 3 | // |
| 4 | // by Jean-Paul Mari |
| 5 | // |
| 6 | |
| 7 | #ifndef __BRKWIN_H__ |
| 8 | #define __BRKWIN_H__ |
| 9 | |
| 10 | #include <QtWidgets> |
| 11 | #include <stdint.h> |
| 12 | |
| 13 | |
| 14 | class BrkWindow: public QWidget |
| 15 | { |
| 16 | Q_OBJECT |
| 17 | |
| 18 | // |
| 19 | struct BrkInfo |
| 20 | { |
| 21 | size_t Adr; |
| 22 | bool IsActive; |
| 23 | bool IsReached; |
| 24 | size_t NbrHit; |
| 25 | }S_BrkInfo; |
| 26 | |
| 27 | public: |
| 28 | BrkWindow(QWidget *parent = 0); |
| 29 | ~BrkWindow(void); |
| 30 | |
| 31 | public slots: |
| 32 | // void DefineAllKeys(void); |
| 33 | void RefreshContents(void); |
| 34 | void RefreshBrkList(size_t Adress); |
| 35 | void GoToAddress(void); |
| 36 | |
| 37 | protected: |
| 38 | void keyPressEvent(QKeyEvent *); |
| 39 | |
| 40 | private: |
| 41 | QVBoxLayout *layout; |
| 42 | // QTextBrowser * text; |
| 43 | // QLabel *text; |
| 44 | QTextBrowser *text; |
| 45 | // QPushButton *refresh; |
| 46 | QLineEdit *address; |
| 47 | // QPushButton *go; |
| 48 | // BrkInfo *PtrBrkInfo; |
| 49 | // int32_t memBase; |
| 50 | // size_t NbBrk; |
| 51 | }; |
| 52 | |
| 53 | #endif // __BRKWIN_H__ |