Add QTL classes to qt3.kdbgtt.
[kdbg.git] / kdbg / memwindow.h
blob3bc3b98e113bc95393d4ecadd32e8ca5cefb8747
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 <qpopupmenu.h>
11 #include <qlistview.h>
12 #include <qcombobox.h>
13 #include <qlayout.h>
14 #include <qdict.h>
15 #include <qptrlist.h>
16 #include <qmap.h>
18 class KDebugger;
19 class KConfigBase;
20 struct MemoryDump;
22 class MemoryWindow : public QWidget
24 Q_OBJECT
25 public:
26 MemoryWindow(QWidget* parent, const char* name);
27 ~MemoryWindow();
29 void setDebugger(KDebugger* deb) { m_debugger = deb; }
31 protected:
32 KDebugger* m_debugger;
33 QComboBox m_expression;
35 QListView m_memory;
36 QMap<QString,QString> m_old_memory;
38 QVBoxLayout m_layout;
40 unsigned m_format;
41 QDict<unsigned> m_formatCache;
43 QPopupMenu m_popup;
45 virtual bool eventFilter(QObject* o, QEvent* ev);
46 void handlePopup(QMouseEvent* ev);
47 void displayNewExpression(const QString& expr);
49 public slots:
50 void slotNewExpression(const QString&);
51 void slotTypeChange(int id);
52 void slotNewMemoryDump(const QString&, QList<MemoryDump>&);
53 void saveProgramSpecific(KConfigBase* config);
54 void restoreProgramSpecific(KConfigBase* config);
57 #endif // MEMWINDOW_H