void BreakpointListView::TableSelectionChanged(Table* table) { if (fListener == NULL) return; TableSelectionModel* selectionModel = table->SelectionModel(); UserBreakpoint* breakpoint = fBreakpointsTableModel->BreakpointAt( selectionModel->RowAt(0)); fListener->BreakpointSelectionChanged(breakpoint); }
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); }
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); }
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); }