2 // heapallocatorbrowser.h: Memory heap allocation
7 #ifndef __HEAPALLOCATORBROWSER_H__
8 #define __HEAPALLOCATORBROWSER_H__
10 //#define HA_LAYOUTTEXTS // Use a layout with just texts
15 // Error code definitions
16 #define HA_NOERROR 0x00
18 #define HA_WARNING 0x40
19 #define HA_UNABLENEXTMEMORYALLOC (0x01 | HA_ERROR)
20 #define HA_UNABLEALLOCATEMEMORYUSAGE (0x02 | HA_ERROR)
21 #define HA_MEMORYBLOCKSIZEPROBLEM (0x03 | HA_ERROR)
22 #define HA_MEMORYALLOCATIONPROBLEM (0x04 | HA_ERROR)
23 #define HA_HAANDSPSHARESPACE (0x05 | HA_ERROR)
24 #define HA_MEMORYALLOCATORNOTEXIST (0x06 | HA_WARNING)
25 #define HA_MEMORYALLOCATORNOTCOMPATIBLE (0x07 | HA_WARNING)
26 #define HA_MEMORYALLOCATORNOTINITIALIZED (0x08 | HA_WARNING)
30 class HeapAllocatorBrowserWindow
: public QWidget
34 typedef struct HeapAllocation
43 HeapAllocatorBrowserWindow(QWidget
*parent
= 0);
44 ~HeapAllocatorBrowserWindow(void);
47 void RefreshContents(void);
51 void keyPressEvent(QKeyEvent
*);
58 QTableView
*TableView
;
59 QStandardItemModel
*model
;
60 QSortFilterProxyModel
*proxyModel
;
62 QStatusBar
*statusbar
;
66 #endif // __HEAPALLOCATORBROWSER_H__