Fix presentation of floating point registers.
[kdbg.git] / kdbg / memwindow.h
blobab52ea4b34a1068a41a2e2b35eb525f0c3b7295c
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 MEMWINDOW_H
8 #define MEMWINDOW_H
10 #include <QBoxLayout>
11 #include <QComboBox>
12 #include <QMap>
13 #include <QMenu>
14 #include <QTreeWidget>
15 #include "dbgdriver.h"
17 class KDebugger;
18 class KConfigBase;
20 class MemoryWindow : public QWidget
22 Q_OBJECT
23 public:
24 MemoryWindow(QWidget* parent);
25 ~MemoryWindow();
27 void setDebugger(KDebugger* deb) { m_debugger = deb; }
29 protected:
30 KDebugger* m_debugger;
31 QComboBox m_expression;
33 QTreeWidget m_memory;
34 QMap<QString,QString> m_old_memory;
36 QBoxLayout m_layout;
38 unsigned m_format;
39 QMap<QString,unsigned> m_formatCache;
41 QMenu m_popup;
43 virtual void contextMenuEvent(QContextMenuEvent* ev);
44 void displayNewExpression(const QString& expr);
46 public slots:
47 void slotNewExpression(const QString&);
48 void slotNewExpression();
49 void slotTypeChange(QAction*);
50 void slotNewMemoryDump(const QString&, const std::list<MemoryDump>&);
51 void saveProgramSpecific(KConfigBase* config);
52 void restoreProgramSpecific(KConfigBase* config);
55 #endif // MEMWINDOW_H