static void HistoryListViewItemCellGUI( Rect rect, float rowHeight, string wkPath, RepositorySpec repSpec, HistoryListViewItem item, HistoryListColumn column, Action avatarLoadedAction, bool isSelected, bool isFocused, bool isBoldText) { string columnText = HistoryInfoView.GetColumnText( wkPath, repSpec, item.Revision, HistoryListHeaderState.GetColumnName(column)); if (column == HistoryListColumn.Changeset) { DrawTreeViewItem.ForItemCell( rect, rowHeight, 0, GetRevisionIcon(item.Revision), null, columnText, isSelected, isFocused, isBoldText, false); return; } if (column == HistoryListColumn.CreatedBy) { DrawTreeViewItem.ForItemCell( rect, rowHeight, -1, GetAvatar.ForEmail(columnText, avatarLoadedAction), null, columnText, isSelected, isFocused, isBoldText, false); return; } if (column == HistoryListColumn.Branch) { DrawTreeViewItem.ForSecondaryLabel( rect, columnText, isSelected, isFocused, isBoldText); return; } DrawTreeViewItem.ForLabel( rect, columnText, isSelected, isFocused, isBoldText); }
static void ChangesetsListViewItemCellGUI( Rect rect, float rowHeight, ViewQueryResult queryResult, ChangesetListViewItem item, ChangesetsListColumn column, Action avatarLoadedAction, bool isSelected, bool isFocused, bool isBoldText) { string columnText = RepObjectInfoView.GetColumnText( queryResult.GetRepositorySpec(item.ObjectInfo), queryResult.GetRepObjectInfo(item.ObjectInfo), ChangesetsListHeaderState.GetColumnName(column)); if (column == ChangesetsListColumn.CreatedBy) { DrawTreeViewItem.ForItemCell( rect, rowHeight, -1, GetAvatar.ForEmail(columnText, avatarLoadedAction), null, columnText, isSelected, isFocused, isBoldText, false); return; } if (column == ChangesetsListColumn.Branch || column == ChangesetsListColumn.Repository || column == ChangesetsListColumn.Guid) { DrawTreeViewItem.ForSecondaryLabel( rect, columnText, isSelected, isFocused, isBoldText); return; } DrawTreeViewItem.ForLabel( rect, columnText, isSelected, isFocused, isBoldText); }
static void ErrorListViewItemCellGUI( Rect rect, ErrorListViewItem item, ErrorsListColumn column, bool isSelected, bool isFocused) { ErrorMessage errorMessage = item.ErrorMessage; string label = column == ErrorsListColumn.Path ? errorMessage.Path : errorMessage.Error; if (column == ErrorsListColumn.Path) { DrawTreeViewItem.ForLabel( rect, label, isSelected, isFocused, false); return; } DrawTreeViewItem.ForSecondaryLabel( rect, label, isSelected, isFocused, false); }