Exemple #1
0
qtDLGHandleView::qtDLGHandleView(QWidget *parent, Qt::WFlags flags,qint32 processID)
	: QWidget(parent, flags),
	m_processID(processID),
	m_processCountEntry(0)
{
	setupUi(this);
	this->setAttribute(Qt::WA_DeleteOnClose,true);
	this->setLayout(verticalLayout);

	connect(tblHandleView,SIGNAL(customContextMenuRequested(QPoint)),this,SLOT(OnCustomContextMenuRequested(QPoint)));
	connect(new QShortcut(QKeySequence("F5"),this),SIGNAL(activated()),this,SLOT(OnDisplayHandles()));

	// Init List
	tblHandleView->horizontalHeader()->resizeSection(0,75);
	tblHandleView->horizontalHeader()->resizeSection(1,135);
	tblHandleView->horizontalHeader()->resizeSection(2,135);
	tblHandleView->horizontalHeader()->setFixedHeight(21);

	qtDLGNanomite *myMainWindow = qtDLGNanomite::GetInstance();

	m_processCountEnd = myMainWindow->coreDebugger->PIDs.size();
	for(int i = 0; i < myMainWindow->coreDebugger->PIDs.size(); i++)
	{
		if(myMainWindow->coreDebugger->PIDs[i].dwPID == m_processID)
			m_processCountEntry = i; m_processCountEnd = i + 1;
	}

	OnDisplayHandles();
}
Exemple #2
0
qtDLGHeapView::qtDLGHeapView(QWidget *parent, Qt::WFlags flags,int processID)
	: QWidget(parent, flags),
	m_processID(processID),
	m_processCountEntry(0),
	m_selectedRow(-1)

{
	setupUi(this);
	this->setAttribute(Qt::WA_DeleteOnClose,true);
	this->setLayout(verticalLayout);

	connect(tblHeapBlocks,SIGNAL(customContextMenuRequested(QPoint)),this,SLOT(OnCustomContextMenuRequested(QPoint)));
	connect(tblHeapView,SIGNAL(itemSelectionChanged()),this,SLOT(OnSelectionChanged()));
	connect(new QShortcut(QKeySequence("F5"),this),SIGNAL(activated()),this,SLOT(DisplayHeap()));
	connect(new QShortcut(Qt::Key_Escape,this),SIGNAL(activated()),this,SLOT(close()));

	tblHeapView->horizontalHeader()->resizeSection(0,75);
	tblHeapView->horizontalHeader()->resizeSection(1,75);
	tblHeapView->horizontalHeader()->resizeSection(2,135);
	tblHeapView->horizontalHeader()->resizeSection(3,135);
	tblHeapView->horizontalHeader()->resizeSection(4,135);
	tblHeapView->horizontalHeader()->setFixedHeight(21);
	tblHeapBlocks->horizontalHeader()->setFixedHeight(21);

	m_pMainWindow = qtDLGNanomite::GetInstance();

	m_processCountEnd = m_pMainWindow->coreDebugger->PIDs.size();
	for(size_t i = 0; i < m_pMainWindow->coreDebugger->PIDs.size(); i++)
	{
		if(m_pMainWindow->coreDebugger->PIDs[i].dwPID == m_processID)
			m_processCountEntry = i; m_processCountEnd = i + 1;
	}

	DisplayHeap();
}