When an executable is loaded be prepared for some messages from gdb,
[kdbg.git] / kdbg / memwindow.h
bloba7b78051ec19199ac65fdd3a3e1113f43ff9862d
1 // $Id$
3 // Copyright by Johannes Sixt
4 // This file is under GPL, the GNU General Public Licence
6 #ifndef MEMWINDOW_H
7 #define MEMWINDOW_H
9 #include <qpopupmenu.h>
10 #include <qlistview.h>
11 #include <qcombobox.h>
12 #include <qlayout.h>
13 #include <qdict.h>
14 #include <qptrlist.h>
15 #include <qmap.h>
17 class KDebugger;
18 class KConfigBase;
19 struct MemoryDump;
21 class MemoryWindow : public QWidget
23 Q_OBJECT
24 public:
25 MemoryWindow(QWidget* parent, const char* name);
26 ~MemoryWindow();
28 void setDebugger(KDebugger* deb) { m_debugger = deb; }
30 protected:
31 KDebugger* m_debugger;
32 QComboBox m_expression;
34 QListView m_memory;
35 QMap<QString,QString> m_old_memory;
37 QVBoxLayout m_layout;
39 unsigned m_format;
40 QDict<unsigned> m_formatCache;
42 QPopupMenu m_popup;
44 virtual bool eventFilter(QObject* o, QEvent* ev);
45 void handlePopup(QMouseEvent* ev);
46 void displayNewExpression(const QString& expr);
48 public slots:
49 void slotNewExpression(const QString&);
50 void slotTypeChange(int id);
51 void slotNewMemoryDump(const QString&, QList<MemoryDump>&);
52 void saveProgramSpecific(KConfigBase* config);
53 void restoreProgramSpecific(KConfigBase* config);
56 #endif // MEMWINDOW_H