Ejemplo n.º 1
0
void
BreakpointListView::TableSelectionChanged(Table* table)
{
	if (fListener == NULL)
		return;

	TableSelectionModel* selectionModel = table->SelectionModel();
	UserBreakpoint* breakpoint = fBreakpointsTableModel->BreakpointAt(
		selectionModel->RowAt(0));

	fListener->BreakpointSelectionChanged(breakpoint);
}
Ejemplo n.º 2
0
void
ThreadListView::TableSelectionChanged(Table* table)
{
	if (fListener == NULL)
		return;

	Thread* thread = NULL;
	TableSelectionModel* selectionModel = table->SelectionModel();
	thread = fThreadsTableModel->ThreadAt(selectionModel->RowAt(0));

	fListener->ThreadSelectionChanged(thread);
}
Ejemplo n.º 3
0
void
ImageListView::TableSelectionChanged(Table* table)
{
	if (fListener == NULL)
		return;

	Image* image = NULL;
	if (fImagesTableModel != NULL) {
		TableSelectionModel* selectionModel = table->SelectionModel();
		image = fImagesTableModel->ImageAt(selectionModel->RowAt(0));
	}

	fListener->ImageSelectionChanged(image);
}
Ejemplo n.º 4
0
void
BreakpointListView::TableSelectionChanged(Table* table)
{
	if (fListener == NULL)
		return;

	TableSelectionModel* selectionModel = table->SelectionModel();
	BreakpointProxyList proxyList;
	for (int32 i = 0; i < selectionModel->CountRows(); i++) {
		BreakpointProxy* proxy = fBreakpointsTableModel->BreakpointProxyAt(
			selectionModel->RowAt(i));
		if (proxy == NULL)
			continue;
		if (!proxyList.AddItem(proxy))
			return;
	}

	fListener->BreakpointSelectionChanged(proxyList);
}