blob: af2326595a87f739728a0c20c91d114ae74c2cda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*
* Copyright Johannes Sixt
* This file is licensed under the GNU General Public License Version 2.
* See the file COPYING in the toplevel directory of the source directory.
*/
#ifndef MEMWINDOW_H
#define MEMWINDOW_H
#include <qpopupmenu.h>
#include <qlistview.h>
#include <qcombobox.h>
#include <qlayout.h>
#include <qmap.h>
#include "dbgdriver.h"
class KDebugger;
class KConfigBase;
class MemoryWindow : public QWidget
{
Q_OBJECT
public:
MemoryWindow(QWidget* parent, const char* name);
~MemoryWindow();
void setDebugger(KDebugger* deb) { m_debugger = deb; }
protected:
KDebugger* m_debugger;
QComboBox m_expression;
QListView m_memory;
QMap<QString,QString> m_old_memory;
QVBoxLayout m_layout;
unsigned m_format;
QMap<QString,unsigned> m_formatCache;
QPopupMenu m_popup;
virtual bool eventFilter(QObject* o, QEvent* ev);
void handlePopup(QMouseEvent* ev);
void displayNewExpression(const QString& expr);
public slots:
void slotNewExpression(const QString&);
void slotTypeChange(int id);
void slotNewMemoryDump(const QString&, const std::list<MemoryDump>&);
void saveProgramSpecific(KConfigBase* config);
void restoreProgramSpecific(KConfigBase* config);
};
#endif // MEMWINDOW_H
|